]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
4 years agowindow/Edit: accept bodyPadding from config
Dominik Csapak [Thu, 9 Apr 2020 14:10:42 +0000 (16:10 +0200)]
window/Edit: accept bodyPadding from config

this is sometimes useful, e.g. when using a tabpanel in an edit window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agowindow/Language Edit: use view controller
Thomas Lamprecht [Fri, 17 Apr 2020 15:57:59 +0000 (17:57 +0200)]
window/Language Edit: use view controller

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd LanguageEditWindow
Dominik Csapak [Fri, 17 Apr 2020 11:23:35 +0000 (13:23 +0200)]
add LanguageEditWindow

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 2.1-4
Thomas Lamprecht [Thu, 16 Apr 2020 16:05:42 +0000 (18:05 +0200)]
bump version to 2.1-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoUpdateStore: fix 'undefined' interval
Dominik Csapak [Wed, 15 Apr 2020 14:30:34 +0000 (16:30 +0200)]
UpdateStore: fix 'undefined' interval

in some cases, we provide a config with interval set to 'undefined',
which gets happily applied to the config, but gets interpreted as '0'
when actually starting the task, resulting in constant api requests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoform: add Proxmox.form.field.DisplayEdit
Thomas Lamprecht [Tue, 31 Mar 2020 16:14:36 +0000 (18:14 +0200)]
form: add Proxmox.form.field.DisplayEdit

This allows to write our often used:

> {
>     xtype: me.isCreate ? 'someEditableField' : 'displayfield',
>     ...
> }

In a more schematic way, as it can now be controlled by either our
CBind mixin or ExtJS native data binding.

Use a Field container to add both, they editable and they display,
variants of a form field. As default use "textfield" for the editable
and "displayfield" xtype for the read only one.

Pass all but the editConfig and editable members of our initial
config to the display field, allow further to configure the editable
field with an editConfig object, which overwrites the config
properties inherited from the displayConfig/parent config.

This gives full control while not enforcing to specify anything extra
for most default cases.

Enforce initial state of the fields even if the databinding would
handle it to avoid glitches after first render for simple boolean expression
cases.

> {
>     xtype: 'pmxDisplayEditField',
>     cbind: {
>         editable: '{isCreate}',
>     },
>     name: 'tokenid',
>     fieldLabel: gettext('Token ID'),
>     value: me.tokenid,
>     allowBlank: false,
> }

Here, cbind could also be a bind or a native boolean expression.

For something else than a texfield one would use the editConfig, e.g.:
> {
>     ....
>     editConfig: {
>         xtype: 'pveUserSelector',
>         allowBlank: false,
>     },
> },

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoopen picker for all comboboxes on focus, even if they are editable
Dominik Csapak [Thu, 16 Apr 2020 11:13:46 +0000 (13:13 +0200)]
open picker for all comboboxes on focus, even if they are editable

when a combobox was editable, a click inside did not open the picker,
but it would if the combobox was not editable.

Since this is
 1. Inconsistent
 2. Inconvenient (the user has to specifically press the arrow)

we already had this implemented for our ComboGrid, but not for
regular comboboxes

This patch moves the code for this to an override for ComboBox, which
our ComboGrid then inherits (so we do not need it there anymore)

while at it, do some non-significant code-cleanup
 * whitespace fixes
 * don't shadow 'me' in the focus callback
 * fix typo in comment

Originally this was implemented in pve-manager, commit
851c032d69ad5ae23725dd1add9e4084ebc12650

https://git.proxmox.com/?p=pve-manager.git;a=commitdiff;h=851c032d69ad5ae23725dd1add9e4084ebc12650

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Originally-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoutils: add 'auth-realm-sync' task description
Thomas Lamprecht [Fri, 3 Apr 2020 07:33:52 +0000 (09:33 +0200)]
utils: add 'auth-realm-sync' task description

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdate store: move store parameter into config, use getter/setter
Thomas Lamprecht [Fri, 3 Apr 2020 06:50:39 +0000 (08:50 +0200)]
update store: move store parameter into config, use getter/setter

this allows to drop setting the default values and ensures that when
interval is updated it actually effects the used update frequency.

Anything which was saved in "me" before, for example me.autoStart, is
still there and gets also updated on a me.setIsStopped(), so there
should be no effects on code using internals.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdate store: refactor do modern syntax
Thomas Lamprecht [Fri, 3 Apr 2020 06:49:43 +0000 (08:49 +0200)]
update store: refactor do modern syntax

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoform: add Proxmox.form.field.ExpireDate
Thomas Lamprecht [Tue, 31 Mar 2020 12:50:34 +0000 (14:50 +0200)]
form: add Proxmox.form.field.ExpireDate

Behaves like a 'datefield' but treats the 0/empty value as "never",
and sets all defaults for behaving like one would expect from a date
expire field.

This allows to replaces hacks (e.g. [0]) from our various expire date
fields, mostly in PVE/PMG user accounts, and also for the soon to be
applied API token gui.

[0]: https://git.proxmox.com/?p=pve-manager.git;a=blob;f=www/manager6/dc/UserEdit.js;h=40c4044fd9364c9bcb8787507068378ed9936f67;hb=806edfe19f049f07db2628c68e4e5702bbedd9d7#l159

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoobject grid: allow to pass online help to row editors
Thomas Lamprecht [Tue, 31 Mar 2020 13:04:25 +0000 (15:04 +0200)]
object grid: allow to pass online help to row editors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoAdd Ar to Languages map - Login page
Moayad Almalat [Tue, 18 Feb 2020 12:46:51 +0000 (13:46 +0100)]
Add Ar to Languages map - Login page

Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
4 years agoadd capitalized NoneText
Dominik Csapak [Wed, 5 Feb 2020 10:59:00 +0000 (11:59 +0100)]
add capitalized NoneText

we want this in some cases

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoComboGrid: fix validation for !allowBlank disabled fields
Stefan Reiter [Mon, 3 Feb 2020 14:14:42 +0000 (15:14 +0100)]
ComboGrid: fix validation for !allowBlank disabled fields

Used in "Add USB to VM" dialog for example.

This was broken before 15206214d9 "ComboGrid: fix on-load validation for blank
values" (only the one you enabled first was validated, the other always showed
as valid), and afterwards too, but in a different way (both are now immediately
marked invalid until you select and unselect them) - which is how I noticed.

With this the validation now works correctly.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agobump version to 2.1-3
Thomas Lamprecht [Thu, 30 Jan 2020 16:49:50 +0000 (17:49 +0100)]
bump version to 2.1-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoindentation cleanup
Thomas Lamprecht [Thu, 30 Jan 2020 16:50:16 +0000 (17:50 +0100)]
indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonet/node: add some "hint" for VLAN add window
Thomas Lamprecht [Thu, 30 Jan 2020 16:36:43 +0000 (17:36 +0100)]
net/node: add some "hint" for VLAN add window

The three naming schemes are not ideal, but well here we are for now.
Add some hint to explain what one can do with which version - try to
keep it rather short. It's not ideal but hopefully better than
nothing :)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode/net: add onlineHelp reference to interface add windows
Thomas Lamprecht [Thu, 30 Jan 2020 16:24:36 +0000 (17:24 +0100)]
node/net: add onlineHelp reference to interface add windows

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode/net: move MTU to advanced section
Thomas Lamprecht [Thu, 30 Jan 2020 16:23:01 +0000 (17:23 +0100)]
node/net: move MTU to advanced section

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode/net: fix indentation a bit
Thomas Lamprecht [Thu, 30 Jan 2020 15:30:19 +0000 (16:30 +0100)]
node/net: fix indentation a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd vlan interface support
Alexandre Derumier [Tue, 28 Jan 2020 10:24:45 +0000 (11:24 +0100)]
add vlan interface support

vlan-raw-device && vlan-id field are only
enabled if interface name is different than interfaceX.Y

I have added a listener on iface,
to enable them live if user want a custom name for vlan interface

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoComboGrid: fix on-load validation for blank values
Stefan Reiter [Wed, 29 Jan 2020 10:27:18 +0000 (11:27 +0100)]
ComboGrid: fix on-load validation for blank values

Commit f32aa3df74 fixed marking multi-select fields with where the store
did not contain a valid value after loading.

However, it introduced a bug for single-select fields where the value
(before the store-load) was explicitly set to be empty (when that should
be invalid because of allowBlank === false).

Fix the logic to correctly detect all scenarios (with def being the
value selected before the store loaded, i.e. undefined or an empty
array):

  !allowBlank &&
    ( def is an array but empty || def is not an array and falsy )

Also use correct error message (localized by ExtJS itself).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agowindow: edit: allow to set submit text for data binding
Thomas Lamprecht [Thu, 30 Jan 2020 14:54:08 +0000 (15:54 +0100)]
window: edit: allow to set submit text for data binding

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocbind: allow to pass "formula" function in binding
Thomas Lamprecht [Thu, 30 Jan 2020 14:51:50 +0000 (15:51 +0100)]
cbind: allow to pass "formula" function in binding

can often ve useful and doesn't hurts, somewhat similar to ExtJS
forumlas in viemodels, but inline.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomixin cbind: avoid undefined cbindData access
Thomas Lamprecht [Thu, 23 Jan 2020 12:42:02 +0000 (13:42 +0100)]
mixin cbind: avoid undefined cbindData access

Else we can fail at the first fallback check in getConfigValue while
we still have the possibility to have the cbinded key available in
"me" (initial config).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocbind: handle properties with undefined value in cloneTemplateObject
Thomas Lamprecht [Wed, 15 Jan 2020 12:09:56 +0000 (13:09 +0100)]
cbind: handle properties with undefined value in cloneTemplateObject

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonetworkedit: add mtu field
Alexandre Derumier [Fri, 10 Jan 2020 02:55:09 +0000 (03:55 +0100)]
networkedit: add mtu field

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agonetworkedit: bond: add bond-primary field
Alexandre Derumier [Fri, 10 Jan 2020 02:55:08 +0000 (03:55 +0100)]
networkedit: bond: add bond-primary field

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agofix Firefox spinner scroller
Thomas Lamprecht [Sat, 11 Jan 2020 14:58:11 +0000 (15:58 +0100)]
fix Firefox spinner scroller

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.1-2
Thomas Lamprecht [Tue, 17 Dec 2019 11:02:59 +0000 (12:02 +0100)]
bump version to 2.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agotask viewer: add new taks_id field as optional row entry
Thomas Lamprecht [Tue, 17 Dec 2019 11:00:46 +0000 (12:00 +0100)]
task viewer: add new taks_id field as optional row entry

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoparse_task_upid: Allow additional (optional) task_id field
Dietmar Maurer [Tue, 17 Dec 2019 10:46:11 +0000 (11:46 +0100)]
parse_task_upid: Allow additional (optional) task_id field

We need that if tasks runs inside multi-threaded applications (several
tasks inside one process).

4 years agotask descriptions: add CT push/pull and HA shutdown
Thomas Lamprecht [Fri, 6 Dec 2019 12:39:42 +0000 (13:39 +0100)]
task descriptions: add CT push/pull and HA shutdown

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-10
Thomas Lamprecht [Tue, 26 Nov 2019 12:00:06 +0000 (13:00 +0100)]
bump version to 2.0-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoExt.Msg: switch from depreacated msg to message property
Thomas Lamprecht [Tue, 26 Nov 2019 11:58:50 +0000 (12:58 +0100)]
Ext.Msg: switch from depreacated msg to message property

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode network: adapt pending changes diff text
Thomas Lamprecht [Tue, 26 Nov 2019 11:13:09 +0000 (12:13 +0100)]
node network: adapt pending changes diff text

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode network: disable revert button if there are no changes
Thomas Lamprecht [Tue, 26 Nov 2019 11:07:06 +0000 (12:07 +0100)]
node network: disable revert button if there are no changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode network: add separators in top bar
Thomas Lamprecht [Tue, 26 Nov 2019 11:06:38 +0000 (12:06 +0100)]
node network: add separators in top bar

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoask for confirmation before hot-applying network changes
Thomas Lamprecht [Tue, 26 Nov 2019 11:06:05 +0000 (12:06 +0100)]
ask for confirmation before hot-applying network changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoNetworkView: add apply config button
Dominik Csapak [Tue, 29 Oct 2019 11:08:48 +0000 (12:08 +0100)]
NetworkView: add apply config button

when the host has ifupdown2 installed, we can hot apply the config
add a button to do this

if the user does not meet the requirements, the api call
will show why and throw an error (without changing anything)

the button has to be enabled via 'showApplyBtn', because for now,
we do not want it for pmg

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoComboGrid: correctly set/mark multiSelect fields
Dominik Csapak [Mon, 25 Nov 2019 10:04:57 +0000 (11:04 +0100)]
ComboGrid: correctly set/mark multiSelect fields

in fields with 'multiSelect: true', we get an array as value instead
of a string, but a check of !![] results in true (since an array
is an object), so we have to explicitely check for arraylength
in 'setValue' (for correctly showing the trigger) and in the
load handler (to not set an empty field wrongfully to invalid)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agofix #2421: ComboGrid: correctly validate multiSelect variant
Dominik Csapak [Mon, 25 Nov 2019 10:04:56 +0000 (11:04 +0100)]
fix #2421: ComboGrid: correctly validate multiSelect variant

on multiSelect we have to check the values that is in the values
array, but we get the 'displaystring' in the validator so we
have to get the 'real' value (aka the underlying array of values)
before checking if they are in the store

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 2.0-9
Thomas Lamprecht [Wed, 20 Nov 2019 19:28:16 +0000 (20:28 +0100)]
bump version to 2.0-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd reboot for containers into task description table
Oguz Bektas [Tue, 12 Nov 2019 16:27:02 +0000 (17:27 +0100)]
add reboot for containers into task description table

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agofix comboBox validation when forceSelection is true
Tim Marx [Fri, 25 Oct 2019 11:06:08 +0000 (13:06 +0200)]
fix comboBox validation when forceSelection is true

Prevent the comboBox from displaying a validation error although
forceSelection is true. If you change a valid selection by removing
characters manually and click somewhere else, the comboBox restores
the selection with the previous value. The validation logic then
checked the restored value, but couldn't find it in the store,
because the store is still filtered with the erroneous query.

We now clear the local filter before the actual check to prevent
this.

[Thomas]:
This was fixed in the 6.2 based GPL release of ExtJS, and can be seen
as backport.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-8
Thomas Lamprecht [Thu, 10 Oct 2019 15:05:10 +0000 (17:05 +0200)]
bump version to 2.0-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd pmx-hint css class
Stoiko Ivanov [Mon, 7 Oct 2019 19:37:33 +0000 (21:37 +0200)]
add pmx-hint css class

since we need it in PMG as well - pull it here (and independently
refactor pve-manager)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 years agoutils: sort language_map in code
Thomas Lamprecht [Sat, 5 Oct 2019 11:48:23 +0000 (13:48 +0200)]
utils: sort language_map in code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agotree-wide trailing whitespace cleanup
Aaron Lauterer [Wed, 18 Sep 2019 15:06:09 +0000 (17:06 +0200)]
tree-wide trailing whitespace cleanup

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd qmreboot task description
Dominik Csapak [Thu, 12 Sep 2019 11:36:29 +0000 (13:36 +0200)]
add qmreboot task description

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoAdd hebrew to list of languages
Dominic Jäger [Fri, 23 Aug 2019 09:30:59 +0000 (11:30 +0200)]
Add hebrew to list of languages

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
4 years agobump version to 2.0-7
Thomas Lamprecht [Fri, 16 Aug 2019 10:45:41 +0000 (12:45 +0200)]
bump version to 2.0-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocombogrid: fix validation if valueField is different than displayField
Thomas Lamprecht [Fri, 16 Aug 2019 10:44:33 +0000 (12:44 +0200)]
combogrid: fix validation if valueField is different than displayField

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-6
Thomas Lamprecht [Tue, 13 Aug 2019 14:00:32 +0000 (16:00 +0200)]
bump version to 2.0-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoComboGrid: add trigger to delete from ComboGrid
Dominik Csapak [Wed, 24 Jul 2019 07:21:12 +0000 (09:21 +0200)]
ComboGrid: add trigger to delete from ComboGrid

when we have a combogrid that may be empty, we now show a
little 'x' where the user can delete the content

this is not shown when the field is not allowed to be empty

we add a new css for this because triggers need a background image
with a very specific layout:

110x22px which is 5 icons in one image for the various states
(normal, hover, active, focused, focused hover)

the icon is taken from the theme-crisp
form/tag-field-item-close.png but rearranged to fit the size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoadd css and image directory to packaging
Dominik Csapak [Wed, 24 Jul 2019 07:21:11 +0000 (09:21 +0200)]
add css and image directory to packaging

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agofollowup code cleanup
Thomas Lamprecht [Thu, 25 Jul 2019 11:22:42 +0000 (13:22 +0200)]
followup code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoFix #582: Add delay to button
Dominic Jäger [Mon, 15 Jul 2019 10:28:19 +0000 (12:28 +0200)]
Fix #582: Add delay to button

The StdRemoveButton can now pass a delay parameter to the API.
It is set undefined as default so that users of the button
can set the parameter themselves.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
4 years agocombogrid: add handling for historic set values currently not available
Thomas Lamprecht [Thu, 18 Jul 2019 13:55:37 +0000 (15:55 +0200)]
combogrid: add handling for historic set values currently not available

We can often run into situations where a value set in the past is not
valid anymore. An example could be a deleted network bridge, e.g., we
set the vNIC of a VM to 'vmbr1' but then we decide to obsolete that
and delete that one, one would now expect that the field gets marked
as invalid when editing the VM's vNIC, so add that behavior.

As sometimes this can be valid and wanted behavior (e.g., usb
passthrough, which is hot-pluggable), also add a switch do restore
the old behavior.

Note that the empty value is not handled by this change, we let the
existing "allowBlank" config switch handle that one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocombogrid: always set the initial value, even if not found
Thomas Lamprecht [Wed, 17 Jul 2019 14:17:55 +0000 (16:17 +0200)]
combogrid: always set the initial value, even if not found

as else one lies to the user and only creates strange behavior,
one should see the values even if not there anymore, if this is a
invalid state is left for a later patch.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-5
Thomas Lamprecht [Thu, 11 Jul 2019 17:34:00 +0000 (19:34 +0200)]
bump version to 2.0-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoKVComboBox: add setComboItems function
Oguz Bektas [Thu, 11 Jul 2019 12:54:06 +0000 (14:54 +0200)]
KVComboBox: add setComboItems function

this allows to change the comboItems of a KVComboBox on the run

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agooverride Ext.Components 'validIdRe' to include '@'
Dominik Csapak [Thu, 11 Jul 2019 12:10:30 +0000 (14:10 +0200)]
override Ext.Components 'validIdRe' to include '@'

we use itemIds with '@' already in the ceph dashboard, and in
non-debug modeit works (as expected) but throws an error
while using ext-all-debug.js so override it to include the '@'

the regex was in place because in html4 the 'id' tag could only consist
letters ofthe mentioned regex, this was lifted in html5 though[0]

0: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agofollouwp: code cleanup for render_bond_mode
Thomas Lamprecht [Wed, 10 Jul 2019 10:40:07 +0000 (12:40 +0200)]
follouwp: code cleanup for render_bond_mode

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollouwp: code cleanup for bond_mode_array
Thomas Lamprecht [Wed, 10 Jul 2019 10:36:57 +0000 (12:36 +0200)]
follouwp: code cleanup for bond_mode_array

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode network: add Bond Mode and Hash Policy columns
Dominik Csapak [Wed, 10 Jul 2019 09:30:52 +0000 (11:30 +0200)]
node network: add Bond Mode and Hash Policy columns

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agonode network: refactor bond mode array generation
Dominik Csapak [Wed, 10 Jul 2019 09:30:51 +0000 (11:30 +0200)]
node network: refactor bond mode array generation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agonode network: hide ip and netmask by default
Dominik Csapak [Wed, 10 Jul 2019 09:30:50 +0000 (11:30 +0200)]
node network: hide ip and netmask by default

CIDR column displays the same information in only on column,
no need to duplicate the information (by default)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agofix syslog resizing
Dominik Csapak [Tue, 2 Jul 2019 11:05:43 +0000 (13:05 +0200)]
fix syslog resizing

makes the logview autosize with the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 2.0-4
Thomas Lamprecht [Fri, 28 Jun 2019 18:31:07 +0000 (20:31 +0200)]
bump version to 2.0-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonetwork selector: allow to select IP too
Thomas Lamprecht [Thu, 27 Jun 2019 19:49:29 +0000 (21:49 +0200)]
network selector: allow to select IP too

not only CIDR.. maybe it could make sense to add a small child class
which  overwrites just the displayField and valueField to address

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocombogrid: add deleteEmpty and skipEmptyText
Thomas Lamprecht [Thu, 27 Jun 2019 12:21:43 +0000 (14:21 +0200)]
combogrid: add deleteEmpty and skipEmptyText

Slightly adapted from the proxmox textfield version of this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agotextfield: validate after allowBlank
Thomas Lamprecht [Thu, 27 Jun 2019 12:20:51 +0000 (14:20 +0200)]
textfield: validate after allowBlank

4 years agocombo grid: add setAllowBlank to help bindings
Thomas Lamprecht [Wed, 26 Jun 2019 14:05:56 +0000 (16:05 +0200)]
combo grid: add setAllowBlank to help bindings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agouse https links to our sites
Thomas Lamprecht [Wed, 26 Jun 2019 14:05:34 +0000 (16:05 +0200)]
use https links to our sites

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-3
Thomas Lamprecht [Mon, 24 Jun 2019 15:54:58 +0000 (17:54 +0200)]
bump version to 2.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agorefactor info/link extraction from onlinehelp to utils
Dominik Csapak [Fri, 21 Jun 2019 10:03:49 +0000 (12:03 +0200)]
refactor info/link extraction from onlinehelp to utils

so that we can reuse that code for getting links from the docs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobump version to 2.0-2
Thomas Lamprecht [Fri, 14 Jun 2019 18:48:02 +0000 (20:48 +0200)]
bump version to 2.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: network selector: refactor cidr6 merge logic
Thomas Lamprecht [Wed, 12 Jun 2019 11:07:32 +0000 (13:07 +0200)]
followup: network selector: refactor cidr6 merge logic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: network selector: reorder columns and adapt widths
Thomas Lamprecht [Wed, 12 Jun 2019 09:46:20 +0000 (11:46 +0200)]
followup: network selector: reorder columns and adapt widths

and use format_boolean to render the active column
also hide the type column by default, it often is not too important,
and can be derived from the interface name, e.g., vmbrX -> bridge,
bondX -> bond, etc.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd network selector widget
Tim Marx [Wed, 12 Jun 2019 08:56:31 +0000 (10:56 +0200)]
add network selector widget

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agonode/APT: whitespace cleanup
Thomas Lamprecht [Mon, 3 Jun 2019 14:37:00 +0000 (16:37 +0200)]
node/APT: whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode/apt updates: show full package description conditionally
Thomas Lamprecht [Mon, 3 Jun 2019 10:59:28 +0000 (12:59 +0200)]
node/apt updates: show full package description conditionally

The full package description is often quite long, and for upgrades
it's not relevant most of the time. But, it can be intresting to
have, if one wonders what a package is even used for.
So add a checkbox in the top bar which allows to switch between
showing and hiding the description, simply done by re-using the
'grid-row-body-hidden' ExtJS CSS class (got the idea from the
RowBody feature source code).
Default it to off, as it's better to not overwhelm users here with a
huge pile of text by default, showing the list of package with the
short one line title is enough most of the times, I'd guess.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Tim Marx <t.marx@proxmox.com>
4 years ago backport fix for ExtJS pie chart tooltip for 0% entries
Dominik Csapak [Wed, 29 May 2019 11:36:04 +0000 (13:36 +0200)]
 backport fix for ExtJS pie chart tooltip for 0% entries

this fixes bug EXTJS_18900 where the tooltip of a piechart was always
shown for the first data entry with 0 percent of the pie chart

the relevant lines for the fix are
...
if (a === b) {
    return false;
}
...

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: switch upload dist over to buster
Thomas Lamprecht [Wed, 22 May 2019 08:23:21 +0000 (10:23 +0200)]
buildsys: switch upload dist over to buster

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-1
Thomas Lamprecht [Wed, 22 May 2019 05:16:44 +0000 (07:16 +0200)]
bump version to 2.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: cleanup before building source package
Thomas Lamprecht [Wed, 22 May 2019 05:13:23 +0000 (07:13 +0200)]
buildsys: cleanup before building source package

makes lintian happier and there's no real reason not to do so.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 22 May 2019 05:12:53 +0000 (07:12 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 1.0-28
Thomas Lamprecht [Wed, 15 May 2019 12:28:44 +0000 (14:28 +0200)]
bump version to 1.0-28

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: elaborate a bit more why there could be no content
Thomas Lamprecht [Wed, 15 May 2019 11:18:08 +0000 (13:18 +0200)]
followup: elaborate a bit more why there could be no content

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup: pull out 'Since/Until' to remove extra whitespace
Thomas Lamprecht [Wed, 15 May 2019 11:14:10 +0000 (13:14 +0200)]
followup: pull out 'Since/Until' to remove extra whitespace

This is similar to how we did in panel/LogView but adds disabling
also to the label, not only the picker field, which is a bit nicer.

And no, it really does not seems like this can be done easier...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd panel/JournalView
Dominik Csapak [Wed, 15 May 2019 09:15:12 +0000 (11:15 +0200)]
add panel/JournalView

similar to LogView, but expects the result from the /node/journal api call,
which is an array of strings, with start/endcursor instead of
an array of objects with line numbers

the new api call also does not accept start line numbers and limit,
so it is necessary to handle it differently

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agochange network input from address/netmask to cidr and change labels
Dominik Csapak [Fri, 3 May 2019 07:28:55 +0000 (09:28 +0200)]
change network input from address/netmask to cidr and change labels

this makes the ui easier and is consistent with the rest of our ui
(container and cloud init)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoshow cidr in network view and optimize renderer
Dominik Csapak [Fri, 3 May 2019 07:28:54 +0000 (09:28 +0200)]
show cidr in network view and optimize renderer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agore-bump version to 1.0-27
Thomas Lamprecht [Tue, 7 May 2019 15:14:32 +0000 (15:14 +0000)]
re-bump version to 1.0-27

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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>
5 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>