]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
4 years agoLogView: also reduce log syscall on scrolling
Thomas Lamprecht [Tue, 7 May 2019 15:11:34 +0000 (15:11 +0000)]
LogView: also reduce log syscall on scrolling

move the "return early, because a request is already pending" into
the doLoad function, so that all calls to it underly the request
limiting, but note that such a new request is desired, and if so
schedule it once the current finishes. This ensures that scrolling
will always get honored, but does not produces multiple hanging
workers, at max one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 1.0-27
Thomas Lamprecht [Tue, 7 May 2019 14:22:42 +0000 (14:22 +0000)]
bump version to 1.0-27

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoreduce syslog api calls
Dominik Csapak [Tue, 30 Apr 2019 13:03:35 +0000 (15:03 +0200)]
reduce syslog api calls

do not poll the syslog api call multiple times simultaneously,
since it can be very costly, depending on the journal size

with this, there is always only one per client

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 1.0-26
Thomas Lamprecht [Tue, 16 Apr 2019 05:58:20 +0000 (05:58 +0000)]
bump version to 1.0-26

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agonode/TimeEdit: allow to 'search' time zone
Thomas Lamprecht [Tue, 16 Apr 2019 05:53:06 +0000 (05:53 +0000)]
node/TimeEdit: allow to 'search' time zone

follow the logic we use in file selectors of the PVE gui, i.e., allow
editable but force a match and do not allow blank, this lets
quick filter this big list instead of scrolling, and searching if
something appears or not, even if one is may not be sure if/how this
was sorted...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd ipv6 and ipv4 cidr match vtype
Mira Limbeck [Mon, 15 Apr 2019 13:12:16 +0000 (15:12 +0200)]
add ipv6 and ipv4 cidr match vtype

add additional vtype for combined ipv4 and ipv6 cidr validation.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
5 years agofix #1784: allow to set UTC as Timezone
Thomas Lamprecht [Mon, 15 Apr 2019 11:31:26 +0000 (11:31 +0000)]
fix #1784: allow to set UTC as Timezone

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.0-25
Thomas Lamprecht [Wed, 3 Apr 2019 12:01:18 +0000 (14:01 +0200)]
bump version to 1.0-25

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd helpers required for u2f authentication
Wolfgang Bumiller [Tue, 2 Apr 2019 10:22:09 +0000 (12:22 +0200)]
add helpers required for u2f authentication

With u2f having a ticket doesn't mean we're logged in yet,
so we need to be able to distinguish between the two.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agorework panel/LogView
Dominik Csapak [Tue, 2 Apr 2019 10:16:49 +0000 (12:16 +0200)]
rework panel/LogView

use the view, viewmodel, controller style code, which makes the logic
much more understandable

this adds two features to it, namely a viewBuffer range, which controls
the distance to the end of the data on which the panel loads the next data
and an optional failCallback, which will be used for the cephlog

this also fixes #2151

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agouse <sourcepackage>-<upstreamversion> as build dir, dpkg-source likes it
Thomas Lamprecht [Sat, 30 Mar 2019 12:00:20 +0000 (13:00 +0100)]
use <sourcepackage>-<upstreamversion> as build dir, dpkg-source likes it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agocompat 10 and record rsync as build dependency
Thomas Lamprecht [Sat, 30 Mar 2019 11:59:38 +0000 (12:59 +0100)]
compat 10 and record rsync as build dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoship commit hash and repo we build from
Thomas Lamprecht [Sat, 30 Mar 2019 11:57:19 +0000 (12:57 +0100)]
ship commit hash and repo we build from

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: add dsc target
Thomas Lamprecht [Sat, 30 Mar 2019 11:56:57 +0000 (12:56 +0100)]
buildsys: add dsc target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoreword suspend
Dominik Csapak [Fri, 29 Mar 2019 09:44:32 +0000 (10:44 +0100)]
reword suspend

we have now have two suspend modes:

* pause: leave the process running and pause the guest cpu
* hibernate: save the state (and memory) to disk, stop the vm

since the meanings of suspend and hibernate are too close,
we change the old 'suspend' to 'pause'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agochange allowed v6 prefix-length to 128
Stoiko Ivanov [Thu, 21 Mar 2019 17:20:32 +0000 (18:20 +0100)]
change allowed v6 prefix-length to 128

Currently the frontend validation only allows values 8-120 as prefix-lengths for
ipv6-cidr notations.

Following commit 70ea22506939f9687e1146c0f35247cfbe9225b8 in pve-common, this
patch changes that value to 128, which, while seldomly seen in regular setups
is technically correct.

Problem was reported by a user in the forum - they needed to set a length of
125, because their provider supplies only smaller networks. [0]

[0] https://forum.proxmox.com/threads/lxc-ipv6-why-8-120.52638/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agoMacPrefix: add note about unicast addr. to MacPrefixText
Thomas Lamprecht [Thu, 14 Mar 2019 09:12:47 +0000 (10:12 +0100)]
MacPrefix: add note about unicast addr. to MacPrefixText

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoMacPrefix: prevent multicast MacPrefixes
Stoiko Ivanov [Tue, 12 Mar 2019 15:07:47 +0000 (16:07 +0100)]
MacPrefix: prevent multicast MacPrefixes

provide direct visual feedback for the related commit in pve-cluster.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agobump version to 1.0-24
Thomas Lamprecht [Thu, 14 Mar 2019 06:42:09 +0000 (07:42 +0100)]
bump version to 1.0-24

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agominimal coding style and grammar fixup
Thomas Lamprecht [Thu, 14 Mar 2019 06:41:18 +0000 (07:41 +0100)]
minimal coding style and grammar fixup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd DnsOrIp vtype
Dominik Csapak [Wed, 13 Mar 2019 14:17:09 +0000 (15:17 +0100)]
add DnsOrIp vtype

this is useful for options that can be dns names or ips (e.g. ldap servers)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 1.0-23
Thomas Lamprecht [Thu, 28 Feb 2019 10:25:52 +0000 (11:25 +0100)]
bump version to 1.0-23

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoutils: xtermjs: allow to pass a 'cmd' parameter to the terminal
Tim Marx [Wed, 27 Feb 2019 14:01:17 +0000 (15:01 +0100)]
utils: xtermjs: allow to pass a 'cmd' parameter to the terminal

also, as we already touch this:
Ext.urlEncode is deprecated, use Ext.Object.toQueryString instead

Signed-off-by: Tim Marx <t.marx@proxmox.com>
5 years agofix popup behaviour in firefox with touchscreens on desktop
Dominik Csapak [Thu, 21 Feb 2019 10:34:24 +0000 (11:34 +0100)]
fix popup behaviour in firefox with touchscreens on desktop

when the popup blocker is active, nw is undefined and nw.focus() throws
an error and the touchend event is not finished, causing
extjs to retry the touchevent and click handler, which tries to open
a popup which gets blocked here, and so on

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agotasks: put vzdump into VM/CT category
Fabian Grünbichler [Wed, 28 Nov 2018 09:51:41 +0000 (10:51 +0100)]
tasks: put vzdump into VM/CT category

to allow rendering of guest ID if available.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agobump version to 1.0-22
Thomas Lamprecht [Thu, 29 Nov 2018 11:59:09 +0000 (12:59 +0100)]
bump version to 1.0-22

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix typo
Dominik Csapak [Thu, 29 Nov 2018 11:33:08 +0000 (12:33 +0100)]
fix typo

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoform: proxmox textfield: support binding 'allowBlank'
Thomas Lamprecht [Tue, 27 Nov 2018 14:22:23 +0000 (15:22 +0100)]
form: proxmox textfield: support binding 'allowBlank'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate bump to 1.0-21
Thomas Lamprecht [Thu, 22 Nov 2018 13:59:33 +0000 (14:59 +0100)]
update bump to 1.0-21

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoUtils: storage creation task descriptions
Dominik Csapak [Thu, 22 Nov 2018 13:04:57 +0000 (14:04 +0100)]
Utils: storage creation task descriptions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 1.0-21
Thomas Lamprecht [Thu, 22 Nov 2018 12:23:32 +0000 (13:23 +0100)]
bump version to 1.0-21

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoUtils: fix jslint errors
Thomas Lamprecht [Thu, 22 Nov 2018 12:20:13 +0000 (13:20 +0100)]
Utils: fix jslint errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoUtils: add some task descriptions
Thomas Lamprecht [Thu, 22 Nov 2018 12:19:50 +0000 (13:19 +0100)]
Utils: add some task descriptions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agonode/DNS: render DNS fields htmlEncoded
Dominik Csapak [Fri, 19 Oct 2018 10:36:21 +0000 (12:36 +0200)]
node/DNS: render DNS fields htmlEncoded

and change to a better code formatting of the properties

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.0-20
Dietmar Maurer [Fri, 14 Sep 2018 10:01:38 +0000 (12:01 +0200)]
bump version to 1.0-20

5 years agoadd node/HostsView
Dominik Csapak [Thu, 13 Sep 2018 12:55:54 +0000 (14:55 +0200)]
add node/HostsView

to show/edit /etc/hosts

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofixup: vlan type: use 'Linux VLAN'
Thomas Lamprecht [Tue, 19 Jun 2018 12:22:32 +0000 (14:22 +0200)]
fixup: vlan type: use 'Linux VLAN'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd missing vlan type in network panel
Alexandre Derumier [Tue, 19 Jun 2018 08:47:22 +0000 (10:47 +0200)]
add missing vlan type in network panel

Currently a vlan interface is correctly parsed,
but GUI display it as unknown

5 years agobump version to 1.0-19
Thomas Lamprecht [Tue, 12 Jun 2018 14:45:57 +0000 (16:45 +0200)]
bump version to 1.0-19

5 years agoadd traditional Chinese to language map
Thomas Lamprecht [Tue, 5 Jun 2018 05:49:23 +0000 (07:49 +0200)]
add traditional Chinese to language map

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.0-18
Fabian Grünbichler [Mon, 14 May 2018 09:07:56 +0000 (11:07 +0200)]
bump version to 1.0-18

5 years agoadd missing task description mappings
Dominik Csapak [Fri, 11 May 2018 12:48:26 +0000 (14:48 +0200)]
add missing task description mappings

this includes
* cephmgrcreate/destroy
* acmerenew/register/deactivate/refresh/renew/revoke/update
* clustercreate/join
* move_volume

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 1.0-17
Wolfgang Bumiller [Thu, 3 May 2018 06:26:41 +0000 (08:26 +0200)]
bump version to 1.0-17

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agosave index on keydown and check on keyup
Dominik Csapak [Wed, 2 May 2018 13:28:26 +0000 (15:28 +0200)]
save index on keydown and check on keyup

so that the edit window does not open again when pressing enter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 1.0-16
Thomas Lamprecht [Wed, 2 May 2018 11:50:03 +0000 (13:50 +0200)]
bump version to 1.0-16

5 years agofixup: rename returnCompleteRecord to getRecord
Thomas Lamprecht [Mon, 30 Apr 2018 08:46:12 +0000 (10:46 +0200)]
fixup: rename returnCompleteRecord to getRecord

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd returnCompleteRecord to ObjectStore
Dominik Csapak [Fri, 27 Apr 2018 10:28:32 +0000 (12:28 +0200)]
add returnCompleteRecord to ObjectStore

this can be useful when needing multiple fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd apiCallDone callback for window.edit
Dominik Csapak [Thu, 26 Apr 2018 06:45:49 +0000 (08:45 +0200)]
add apiCallDone callback for window.edit

we sometimes want/need to do something when the api call
finished and need to know whether it was successful or need the result

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoPendingObjectGrid: fix display of deletion of multikey fields
Dominik Csapak [Tue, 10 Apr 2018 14:36:42 +0000 (16:36 +0200)]
PendingObjectGrid: fix display of deletion of multikey fields

we did only check if the first field of a mulitfield key is being deleted,
resulting in showing no pending change at all when deleting any other,
and as long as only deletions were taking place

also when deleting the 'main' key of a multikey field, we
showed the deletion of the whole line, even when already showing
a different pending line

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-15
Dietmar Maurer [Fri, 6 Apr 2018 11:48:36 +0000 (13:48 +0200)]
bump version to 1.0-15

6 years agoallow pressing enter in ObjectGrids to edit a field
Dominik Csapak [Fri, 6 Apr 2018 11:22:44 +0000 (13:22 +0200)]
allow pressing enter in ObjectGrids to edit a field

for this we need to overwrite the 'run_editor' function
of the ObjectGrid if we use a custom one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobetter default focus selection
Dominik Csapak [Fri, 6 Apr 2018 11:11:16 +0000 (13:11 +0200)]
better default focus selection

we do not want to focus on hidden/disabled fields,
because that focus gets lost and prevents some things
e.g. cancelling with ESC

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd a checkbox to edit windows for advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:45 +0000 (16:03 +0200)]
add a checkbox to edit windows for advanced options

if the inputpanel has advanced options, show a checkbox to
show/hide them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd advanced options to the input panel
Dominik Csapak [Thu, 5 Apr 2018 14:03:44 +0000 (16:03 +0200)]
add advanced options to the input panel

with this, you can now put items in the
advancedColumn1/2/B and show/hide it with
setAdvancedVisible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-14
Dietmar Maurer [Thu, 5 Apr 2018 10:19:12 +0000 (12:19 +0200)]
bump version to 1.0-14

6 years ago(partially) fix #1223: add touchscreen override for extjs
Dominik Csapak [Fri, 30 Mar 2018 07:48:41 +0000 (09:48 +0200)]
(partially) fix #1223: add touchscreen override for extjs

the combination of firefox, touchscreen, mouse input and extjs
prevents normal click/touch input for buttons, lists, etc.

the workaround on firefox was to set
dom.w3c_touch_events.enabled
to 0 (in about:config)

or to upgrade to extjs >= 6.5.1 (of which there is no gpl release as of now)

so we introduce that workaround as it seems to not disrupt 'normal'
browsers and non-touchscreen devices

we then still have an issue with scrolling though, since extjs
now expects the user to drag the content instead of using the wheel

but it is still better than a completely non working interface

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agotask view, progress: add taskDone callback
Thomas Lamprecht [Tue, 27 Mar 2018 12:00:49 +0000 (14:00 +0200)]
task view, progress: add taskDone callback

and integrate it into the edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowindow/Edit: allow showing TaskViewer instead of TaskProgress
Thomas Lamprecht [Tue, 27 Mar 2018 05:27:14 +0000 (07:27 +0200)]
window/Edit: allow showing TaskViewer instead of TaskProgress

let our users decide if the want to show a TaskProgress window or a
TaskViewer window, so that they do not always must create the Viewer
their self

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd labelWidth to the fieldDefaults in add_*_row
Dominik Csapak [Fri, 16 Mar 2018 13:53:54 +0000 (14:53 +0100)]
add labelWidth to the fieldDefaults in add_*_row

this resizes the editwindow to the correct size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd an optional renderer for integer rows in ObjectGrid
Dominik Csapak [Fri, 16 Mar 2018 09:52:44 +0000 (10:52 +0100)]
add an optional renderer for integer rows in ObjectGrid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-13
Dietmar Maurer [Thu, 8 Mar 2018 10:38:18 +0000 (11:38 +0100)]
bump version to 1.0-13

6 years agoremove gettext definition in Utils.js
Dominik Csapak [Tue, 6 Mar 2018 08:06:28 +0000 (09:06 +0100)]
remove gettext definition in Utils.js

this should not be here, rather where we include the language files
(like in pve), because this is not ecma conform and behaves very
different in different browsers (e.g. safari ignores the if check
completely and simply uses that function definition)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-12
Thomas Lamprecht [Fri, 23 Feb 2018 10:14:02 +0000 (11:14 +0100)]
bump version to 1.0-12

6 years agoskip config property for cbind mixin
Dominik Csapak [Tue, 20 Feb 2018 08:48:19 +0000 (09:48 +0100)]
skip config property for cbind mixin

if we use a component with cbind in a static declaration,
we do not want to traverse the 'config' property, as this can lead
to properties of base classes which produce errors on copying

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-11
Fabian Grünbichler [Fri, 16 Feb 2018 12:06:57 +0000 (13:06 +0100)]
bump version to 1.0-11

6 years agorename pve(Show|Hide)Help events
Dominik Csapak [Tue, 13 Feb 2018 13:20:10 +0000 (14:20 +0100)]
rename pve(Show|Hide)Help events

we renamed them in the helpButton, we also have to rename them here
this prevented the help button to show up in the vm/ct creation wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agomixin/CBind: allow binding sub elements
Thomas Lamprecht [Fri, 9 Feb 2018 07:28:34 +0000 (08:28 +0100)]
mixin/CBind: allow binding sub elements

allow to access sub elements of configuration items for binding.

E.g., if the following configuration is present:

foo: {
    bar: true
}

one could do:

xtype: 'displayfield',
cbind {
    value: '{foo.bar}'
}
[...]

This mirrors the abillity of ExtJS's 'bind', which can do this also.
Simple implementation mirroring the surrounding code.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobuildsys: prevent parallel deb builds
Wolfgang Bumiller [Fri, 9 Feb 2018 09:13:31 +0000 (10:13 +0100)]
buildsys: prevent parallel deb builds

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agochange the hard coded text against the translated text
Wolfgang Link [Wed, 20 Dec 2017 12:38:27 +0000 (13:38 +0100)]
change the hard coded text against the translated text

6 years agoshow VLAN aware setting in NetworkView.
Wolfgang Link [Wed, 20 Dec 2017 12:38:26 +0000 (13:38 +0100)]
show VLAN aware setting in NetworkView.

6 years agobump version to 1.0-10
Dominik Csapak [Thu, 25 Jan 2018 09:23:20 +0000 (10:23 +0100)]
bump version to 1.0-10

6 years agoTimeEdit: use schematic declaration
Thomas Lamprecht [Tue, 16 Jan 2018 13:20:48 +0000 (14:20 +0100)]
TimeEdit: use schematic declaration

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: remove PVE specific VType
Thomas Lamprecht [Tue, 16 Jan 2018 13:20:47 +0000 (14:20 +0100)]
toolkit: remove PVE specific VType

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: add MacPrefix vtype
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:15 +0000 (08:16 +0100)]
toolkit: add MacPrefix vtype

useful for our PVE dc/options panel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoreintroduce api2request checks for toolkit
Dominik Csapak [Mon, 15 Jan 2018 13:51:24 +0000 (14:51 +0100)]
reintroduce api2request checks for toolkit

6 years agoadd proxmoxlib to the clean target
Dominik Csapak [Mon, 15 Jan 2018 13:13:11 +0000 (14:13 +0100)]
add proxmoxlib to the clean target

6 years agoadd task_desc_table and format_task_description from pve
Dominik Csapak [Mon, 15 Jan 2018 13:11:02 +0000 (14:11 +0100)]
add task_desc_table and format_task_description from pve

since the Task is in the widget-toolkit, passing
a renderer/list a few levels of components down is not nice
and there are not *that* many strings in the task_desc_table,
we put it here, so that either pve and pmg can use them

6 years agoremove unnecessary formatter
Dominik Csapak [Mon, 15 Jan 2018 13:09:53 +0000 (14:09 +0100)]
remove unnecessary formatter

6 years agoadd all languages from pve
Dominik Csapak [Mon, 15 Jan 2018 13:09:41 +0000 (14:09 +0100)]
add all languages from pve

6 years agoComboGrid: open picker also when focusing an editable field
Dominik Csapak [Mon, 8 Jan 2018 12:03:00 +0000 (13:03 +0100)]
ComboGrid: open picker also when focusing an editable field

port commit
851c032d69ad5ae23725dd1add9e4084ebc12650
from pve-manager

commit message:

    ComboBoxes provided by UI frameworks normally show their selection
    possibilities once focused, ExtJS does this too but not on editable
    (and thus filterable) input fields. Add a logic which allows this too
    and streamlines the behavior of ComboGrid/Box like components.

    To avoid a glitch, where clicking the "picker trigger" (the down
    arrow which normally toggles the selection picker) would first focus
    the element - thus expanding it - and only then causing a toggle
    which collapses it again, we overwrite the 'Ext.form.trigger.Trigger'
    onMouseDown so that we can skip a expansion on this event.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoComboGrid: improve setting 'editable' default value
Dominik Csapak [Mon, 8 Jan 2018 11:58:56 +0000 (12:58 +0100)]
ComboGrid: improve setting 'editable' default value

port commit
bff876ecb5f3388b7d65c491680b9a40574e4744
from pve-manager

commit message:

    This allows child classes to use another default, the initialConfig
    didn't allowed that.
    This is also the ExtJS like way to set defaults.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix var assignments
Dominik Csapak [Thu, 4 Jan 2018 10:29:50 +0000 (11:29 +0100)]
fix var assignments

only declare 'grid' once

6 years agoexplicit set button focus respecting the 'dangerous' option
Dominik Csapak [Thu, 4 Jan 2018 10:28:58 +0000 (11:28 +0100)]
explicit set button focus respecting the 'dangerous' option

port commit
4dc6bd326a829d5bf708c4a33722d5a8c6304f9c
from pve-manager

6 years agoplace space on correct side of colon
Dominik Csapak [Tue, 19 Dec 2017 09:37:30 +0000 (10:37 +0100)]
place space on correct side of colon

6 years agochange invalid class
Dominik Csapak [Tue, 19 Dec 2017 09:11:34 +0000 (10:11 +0100)]
change invalid class

so that we can safely create a css style for it
(in our namespace)

6 years agopass given defaults in Edit window
Dominik Csapak [Mon, 18 Dec 2017 09:36:14 +0000 (10:36 +0100)]
pass given defaults in Edit window

this is a port of the change for the Edit window from
pve-manager commit:
ff740ccbeed1e7e2131b14c9ce50f300f24201f6

which passes the given defaults to the items

6 years agoadd the missing explanation of onlineHelp
Dominik Csapak [Mon, 18 Dec 2017 09:34:05 +0000 (10:34 +0100)]
add the missing explanation of onlineHelp

6 years agocheck earlier if the logview is destroyed
Dominik Csapak [Mon, 18 Dec 2017 09:32:22 +0000 (10:32 +0100)]
check earlier if the logview is destroyed

this is a port from pve-manager commit:
bde1efbf66cf8794d99708b41d92b2106c44f192

which fixes a problem with destroying the logview in extjs 6.2

6 years agoadd version as comment to js file
Dominik Csapak [Mon, 18 Dec 2017 09:31:13 +0000 (10:31 +0100)]
add version as comment to js file

this can be used in the proxy to read the installed version
of the widget toolkit (without needing to read the info from
apt/dpkg/etc.)

6 years agotoolkit: fix #1516: mouse-scrolling of overflowhandlers in firefox
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:14 +0000 (08:16 +0100)]
toolkit: fix #1516: mouse-scrolling of overflowhandlers in firefox

this is a workaround for scrolling in toolbars, etc. in firefox with
the mouse.
while the result is not very "pretty", it maintains the old behaviour
for all other browsers and makes it work in firefox

we may drop this when we update to a new extjs release

commit 484bf3f29e58d0f96c65e6dca6b5dd95eaea180c from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: fix #1510: don't scroll back to focus when view refreshes
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:13 +0000 (08:16 +0100)]
toolkit: fix #1510: don't scroll back to focus when view refreshes

adds a workaround, so that we restore the scroll position when we
restore the focus. Fixies an annoying issue where, if a user had an
ellemtn selected, scrolled down and then a store refresh re-rendered
the view it was scrolled back to the selected item and the user lost
his scrolling position.

Add also the 'jumpToFocus' flag to allow enabling the old behaviour

commit e6f2a94f4fff3c125e8406a21d8d6159aca1421e from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: fix #1307: don\'t use language dependent separator
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:12 +0000 (08:16 +0100)]
toolkit: fix #1307: don\'t use language dependent separator

by default, extjs submits the language dependent decimal separator,
e.g., ',' (comma) for german and '.' (dot) for english.

We always want the dot.

commit 5c660b6d1302a5fbb3dcf477cf8b5adc9f798530 from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: remove unneeded applyEmptyText
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:11 +0000 (08:16 +0100)]
toolkit: remove unneeded applyEmptyText

The parent method does this already in ExtJS 6

commit d19ffc1bb078e42a042c5c73797d713aa9cf9bcc from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoHelpButton: be backward compatible with PVE help mapping
Thomas Lamprecht [Mon, 11 Dec 2017 10:18:14 +0000 (11:18 +0100)]
HelpButton: be backward compatible with PVE help mapping

pve-doc-generator used pveOnlineHelp as variable name while the
widget toolkit expects proxmoxOnlineHelp, allow both for now.

As its not quite clear when the switch to the widget toolkit happens
this is more flexible than changing the generator and adding a
versioned build dependency in pve-manager for it.
We normally do not bump pve-docs during releases either.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
CC: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-9
Dietmar Maurer [Mon, 11 Dec 2017 13:43:35 +0000 (14:43 +0100)]
bump version to 1.0-9

6 years agoadd Xtermjs popup helper
Dominik Csapak [Mon, 11 Dec 2017 13:30:53 +0000 (14:30 +0100)]
add Xtermjs popup helper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoUtils: fix some lint errors
Thomas Lamprecht [Wed, 6 Dec 2017 17:39:53 +0000 (18:39 +0100)]
Utils: fix some lint errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotaskviewer: port over extraTite config parameter
Thomas Lamprecht [Wed, 6 Dec 2017 17:39:52 +0000 (18:39 +0100)]
taskviewer: port over extraTite config parameter

commit acc9bf4752972ffd79af1c78510fcce24c2db959 (Close #1268: Show
migration start server and migration end server) introduced the
possibility to display additional information in the TaskViewer
window title. This change happened after the widget toolkit formed
and seems reasonable to have here, thus port it over.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoObjectGrid: add_text_row: allow setting vtype for editor
Thomas Lamprecht [Wed, 6 Dec 2017 13:37:28 +0000 (14:37 +0100)]
ObjectGrid: add_text_row: allow setting vtype for editor

Allow setting a validation type for the editors text field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 1.0-8
Dietmar Maurer [Wed, 29 Nov 2017 11:09:26 +0000 (12:09 +0100)]
bump version to 1.0-8