]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
3 years agoadd certificate panel
Wolfgang Bumiller [Tue, 16 Mar 2021 10:24:20 +0000 (11:24 +0100)]
add certificate panel

Again, initially copied from PVE but adapted so it can be
used by both. (PVE side still needs to be tested though.)

The 'nodename' property is optional (since on PMG we
currently don't expose them via the UI directly). Instead,
the certificate info URL is required and the 'uploadButtons'
need to be passed, which just contains the certificate
"name", id (filename), url, and whether it is deletable and
whether a GUI reload is required after changing it. If only
1 entry is passed, the button stays a regular button (that
way PVE should still look the same), whereas in PMG we have
a menu to select between API and SMTP certificates.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd ACME forms
Wolfgang Bumiller [Tue, 16 Mar 2021 10:24:19 +0000 (11:24 +0100)]
add ACME forms

Mostly copied from PVE, but the user needs to set the URL
property so their stores can load the data, whereas in PVE
this was hardcoded.

API selector:
  needs its url to point to the challenge-schema url

Acme Account selector:
  needs its url to point to the acme account index

Acme Plugin selector:
  needs its url to point to the plugin index

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoadd ACME related data models
Wolfgang Bumiller [Tue, 16 Mar 2021 10:24:18 +0000 (11:24 +0100)]
add ACME related data models

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoUtils: add ACME related utilities
Wolfgang Bumiller [Tue, 16 Mar 2021 10:24:17 +0000 (11:24 +0100)]
Utils: add ACME related utilities

copied from PVE with linter fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agonode/ServiceView: remove storeid
Dominik Csapak [Thu, 11 Mar 2021 09:14:33 +0000 (10:14 +0100)]
node/ServiceView: remove storeid

it's not needed anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodata/*Store: drop storeid requirement
Dominik Csapak [Thu, 11 Mar 2021 09:14:32 +0000 (10:14 +0100)]
data/*Store: drop storeid requirement

We never use that and it serves no purpose. It probably was meant to
be the upstream config 'storeId' which would add the store to the
Ext.StoreManager. This is unpractical though, since then the store
has to be explicitely destroyed, otherwise the StoreManager retains a
reference and the GC cannot remove the store.

Since donwstream users of the store can simply give the 'storeId'
property anyway if they need to be managed by the StoreManager, drop
the requirement here.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.4-6
Thomas Lamprecht [Fri, 5 Mar 2021 19:22:05 +0000 (20:22 +0100)]
bump version to 2.4-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: advanced: only show advanced fields on invalid temporary
Thomas Lamprecht [Fri, 5 Mar 2021 19:18:02 +0000 (20:18 +0100)]
edit window: advanced: only show advanced fields on invalid temporary

makes no sense to permanently enable them, that makes for weird
experience.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopanel/DiskList: return empty text for status on partitions
Dominik Csapak [Fri, 5 Mar 2021 11:03:54 +0000 (12:03 +0100)]
panel/DiskList: return empty text for status on partitions

instead of returning 'unknown'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotask viewer: increase height
Thomas Lamprecht [Fri, 5 Mar 2021 16:13:31 +0000 (17:13 +0100)]
task viewer: increase height

500 px still fit nicely in our minimum requirements of "HD ready"
(1280 x 720 px) and for any slightly longer running task the extra
pixel are really nice, I frequently find myself resizing the height
immediately after a task window opens so lets up the default a bit...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.4-5
Thomas Lamprecht [Tue, 9 Feb 2021 13:33:12 +0000 (14:33 +0100)]
bump version to 2.4-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovlan edit: Match explicit values to name field
Dominic Jäger [Mon, 8 Feb 2021 12:41:37 +0000 (13:41 +0100)]
vlan edit: Match explicit values to name field

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agovlan edit: Set valid default name
Dominic Jäger [Mon, 8 Feb 2021 12:41:36 +0000 (13:41 +0100)]
vlan edit: Set valid default name

Using find_next_iface_id we get a valid VLAN name.
This way, inserting a vlan raw device is still required (but everything that is
inserted so far is valid).

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agovlan edit: Move example from default value to tooltip
Dominic Jäger [Mon, 8 Feb 2021 12:41:35 +0000 (13:41 +0100)]
vlan edit: Move example from default value to tooltip

We usually choose default values that are valid input for the field.
interfaceX.1 is rejected by the API.

Instead, use a tooltip to demonstrate possible valid inputs for the field.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agovlan edit: Forbid blank vlan raw device
Dominic Jäger [Mon, 8 Feb 2021 12:41:34 +0000 (13:41 +0100)]
vlan edit: Forbid blank vlan raw device

Users certainly have to insert a vlan raw device when the textfield is enabled.
Currently, they only see `invalid network interface name "` when submitting.
Forbidding the blank field shows the problem earlier.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agovlan edit: Fix automatic field disabling
Dominic Jäger [Mon, 8 Feb 2021 12:41:33 +0000 (13:41 +0100)]
vlan edit: Fix automatic field disabling

The regex are are created as literals (with // and not new RegExp).
Therefore
 - The old Vlan_match value with double \\  has matched e.g. vlan\ddd instead
   of e.g. vlan123 and
 - the old VlanInterface_match value with double \\ has matched e.g.
   \www\X\dddd instead of e.g. vmbr0.1234

This fixes automatically disabling the fields vlan-raw-device and vlan-id (VLAN
tag) in the VLAN edit window.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agomove DiskList.js from grid/ to panel/
Fabian Ebner [Mon, 8 Feb 2021 14:23:28 +0000 (15:23 +0100)]
move DiskList.js from grid/ to panel/

because it's a treepanel now.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoconvert disk list to disk tree and conditionally include partitions
Fabian Ebner [Mon, 8 Feb 2021 14:23:27 +0000 (15:23 +0100)]
convert disk list to disk tree and conditionally include partitions

Assigning the store directly to the treepanel doesn't work, more manual
handling is needed. This is mostly based on what we do for PBS's datastore
content view. The store monitoring also needs to be changed slightly.

The buttons are restricted to work on disks only, based on the parent
attribute, that only partitions have.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoprune panel: make keep-last label text like the others
Fabian Ebner [Fri, 27 Nov 2020 10:08:28 +0000 (11:08 +0100)]
prune panel: make keep-last label text like the others

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoinput panel: Add drawing of layout
Dominic Jäger [Fri, 27 Nov 2020 11:08:12 +0000 (12:08 +0100)]
input panel: Add drawing of layout

The drawing makes clear in a few seconds:
 - what columnT and columnB stand for
 - what additional containers and panels are created
 - to which of those the elements of column1, column2... go to

When you're in the JS debugger and lost overview of where in this
element hierarchy you are, you can quickly check xtype + layout. Then
consulting this drawing solves the mistery.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agofix usage of findRecord
Dominik Csapak [Thu, 26 Nov 2020 08:23:39 +0000 (09:23 +0100)]
fix usage of findRecord

findRecord does not match exactly, but only at the beginning and
case insensitive, by default. Change all calls to be case sensiti
and an exactmatch (we never want the default behaviour afaics).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agogrid/DiskList: restore info about ceph
Dominik Csapak [Wed, 25 Nov 2020 15:37:07 +0000 (16:37 +0100)]
grid/DiskList: restore info about ceph

previously we printed this ceph info, but it got lost during
refactoring to widget-toolkit, restore a slightly modified
version of the code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.4-4
Thomas Lamprecht [Fri, 15 Jan 2021 15:24:12 +0000 (16:24 +0100)]
bump version to 2.4-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoreader: JsonObject: cope with empty (null) return value
Thomas Lamprecht [Fri, 15 Jan 2021 15:18:04 +0000 (16:18 +0100)]
reader: JsonObject: cope with empty (null) return value

there may be cases where the backend serialization plumping code
makes it easier to return null instead of a emtpy object if a
(sub)property or whole config is not configured, as it's closer to
the truth (not configured == null, configured but empty would be {})

For objects this resulted in a exception, as the null value was tried
to be dereferenced, avoid that by defaulting to an empty object in
that case.
For arrays we already coped with that by luck, make that more
explicit to avoid future breakage.

Both result to a empty array being returned as values, which means
empty store and is deemed to be OK in that case.

The rowdef.required still applies and adds empty values though, this
could be argued to not be really fitting - for now lets keep it that
way, we could make this opt-in though if it shows that it is not
always correct.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoreader: JsonObject: whitespace fixes
Thomas Lamprecht [Fri, 15 Jan 2021 15:17:35 +0000 (16:17 +0100)]
reader: JsonObject: whitespace fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: network: Remove bond-primary gettext
Dominic Jäger [Thu, 7 Jan 2021 08:32:14 +0000 (09:32 +0100)]
ui: network: Remove bond-primary gettext

The corresponding option  in /etc/network/interfaces is exactly "bond-primary".
Translating this might easily make unclear what is meant.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agobump version to 2.4-3
Thomas Lamprecht [Mon, 23 Nov 2020 17:46:09 +0000 (18:46 +0100)]
bump version to 2.4-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune panel: allow to pass emptyText for keep-last
Thomas Lamprecht [Mon, 23 Nov 2020 17:17:53 +0000 (18:17 +0100)]
prune panel: allow to pass emptyText for keep-last

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune field: use dirtychange event to hide/show clear-trigger
Thomas Lamprecht [Mon, 23 Nov 2020 17:17:23 +0000 (18:17 +0100)]
prune field: use dirtychange event to hide/show clear-trigger

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoinput panel: support convenience top column
Thomas Lamprecht [Mon, 23 Nov 2020 12:13:23 +0000 (13:13 +0100)]
input panel: support convenience top column

mirrors columnB (column bottom) but is placed on the top, i.e.,
columnT.

One can no conveniently set the following layout:

  +-------------------------------------+
  |                                     |
  |               columnT               |
  |                                     |
  +------------------+------------------+
  |                  |                  |
  |                  |                  |
  |   column1        |   column2        |
  |                  |                  |
  |                  |                  |
  +------------------+------------------+
  |                                     |
  |               columnB               |
  |                                     |
  +-------------------------------------+

(4 columns should work too, but we do not use that anywhere FWICT)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.4-2
Thomas Lamprecht [Mon, 23 Nov 2020 07:14:55 +0000 (08:14 +0100)]
bump version to 2.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofixup prune field usage
Thomas Lamprecht [Mon, 23 Nov 2020 07:08:12 +0000 (08:08 +0100)]
fixup prune field usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.4-1
Thomas Lamprecht [Sun, 22 Nov 2020 17:04:39 +0000 (18:04 +0100)]
bump version to 2.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: unify button icon font-size to 14px
Thomas Lamprecht [Sun, 22 Nov 2020 17:12:22 +0000 (18:12 +0100)]
css: unify button icon font-size to 14px

in a central place, we already have some of those set in pve or pbs
css

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: url is optional if both loadUrl and submitUrl are set
Thomas Lamprecht [Sat, 21 Nov 2020 18:42:57 +0000 (19:42 +0100)]
edit window: url is optional if both loadUrl and submitUrl are set

but it cannot be the default identityFn in that case..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: add loadUrl to config
Thomas Lamprecht [Sat, 21 Nov 2020 18:41:01 +0000 (19:41 +0100)]
edit window: add loadUrl to config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: add submitUrl config
Thomas Lamprecht [Sat, 21 Nov 2020 16:17:33 +0000 (17:17 +0100)]
edit window: add submitUrl config

Helps for those cases where the id is in the API path itself.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoinput panel: make advanced column check more flexible
Thomas Lamprecht [Sat, 21 Nov 2020 16:15:13 +0000 (17:15 +0100)]
input panel: make advanced column check more flexible

allow that any of the three column/docked definitions can be set,
without setting the first one to an empty array to go in that if
branch.

Note, column2 works fine, but I did not greatly test a sole
advancedColumnB definition, so there may be still some improvements
for fixes - but at that point the user could also use advancedItems
to have full control.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotoolkit: drop old jslint control comments
Thomas Lamprecht [Sat, 21 Nov 2020 16:14:15 +0000 (17:14 +0100)]
toolkit: drop old jslint control comments

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopanel: add PruneInputPanel
Thomas Lamprecht [Sat, 21 Nov 2020 19:02:28 +0000 (20:02 +0100)]
panel: add PruneInputPanel

over from PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoform: add PruneKeepField
Thomas Lamprecht [Sat, 21 Nov 2020 19:02:00 +0000 (20:02 +0100)]
form: add PruneKeepField

over from PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoInputPanel: remove old code for useFieldContainer
Aaron Lauterer [Tue, 17 Nov 2020 13:50:43 +0000 (14:50 +0100)]
InputPanel: remove old code for useFieldContainer

`useFieldContainer` doesn't seem to be used anymore in any of our
products:
* PVE
* PMG
* PBS

it therefore can be considered dead code.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoInputPanel: fix column scaling behavior
Aaron Lauterer [Tue, 17 Nov 2020 13:50:42 +0000 (14:50 +0100)]
InputPanel: fix column scaling behavior

When scaling the browsers content either via the browser itself or
because the OS has a different scaling / DPI setting, it can happen that
not all columns have enough space next to each other and thus the last
column is moved further below.

This happens especially on chromium bases browsers (e.g. chrome, edge).

Changing the layout to use extjs HBOXes with flex instead of columns
solves works well.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agobuildsys: add lint incremental mode, use stricter check mode for full build
Thomas Lamprecht [Thu, 12 Nov 2020 09:10:19 +0000 (10:10 +0100)]
buildsys: add lint incremental mode, use stricter check mode for full build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-10
Thomas Lamprecht [Tue, 10 Nov 2020 15:29:15 +0000 (16:29 +0100)]
bump version to 2.3-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: get help info: fix normalization with multiple minuses
Thomas Lamprecht [Tue, 10 Nov 2020 15:27:43 +0000 (16:27 +0100)]
utils: get help info: fix normalization with multiple minuses

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRevert "Utils: fix help section normalization"
Thomas Lamprecht [Tue, 10 Nov 2020 15:26:27 +0000 (16:26 +0100)]
Revert "Utils: fix help section normalization"

replaceAll is not supported by all browser we try to guarantee to
support.

This reverts commit f7b816a39987b37ebcc976eb78cf33da2ad37bf3.

3 years agobump version to 2.3-9
Thomas Lamprecht [Tue, 10 Nov 2020 11:09:02 +0000 (12:09 +0100)]
bump version to 2.3-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoUtils: fix help section normalization
Aaron Lauterer [Tue, 10 Nov 2020 09:34:13 +0000 (10:34 +0100)]
Utils: fix help section normalization

We need to replace all occurences when normalizing underscores or
dashes.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agocomboGrid: set errorMask on store load failure
Dominik Csapak [Wed, 4 Nov 2020 14:17:40 +0000 (15:17 +0100)]
comboGrid: set errorMask on store load failure

if there occured an error in the api call of the store, show this error
on the picker when opened, instead of just showing an empty picker

this makes it possible to see that there was an error while accessing the api

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoenable ARIA again
Thomas Lamprecht [Mon, 9 Nov 2020 06:56:34 +0000 (07:56 +0100)]
enable ARIA again

we have everything updated to ExtJS 6.x since quite a bit, and some
quick checks on various components did not show any error - lets
enable this again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-8
Thomas Lamprecht [Tue, 3 Nov 2020 16:52:09 +0000 (17:52 +0100)]
bump version to 2.3-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRevert "css: avoid inherit of font-size on .fa class, set to 14px"
Thomas Lamprecht [Tue, 3 Nov 2020 16:51:12 +0000 (17:51 +0100)]
Revert "css: avoid inherit of font-size on .fa class, set to 14px"

this is not yet safe everywhere, makes some dashboard icons quite
small

This reverts commit 96ffa5693e0eeb4b6a9664832035fbc154bc92d6.

3 years agotask type selector: add clear trigger
Thomas Lamprecht [Tue, 3 Nov 2020 12:58:12 +0000 (13:58 +0100)]
task type selector: add clear trigger

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoUtils: remove product specific task descriptions
Dominik Csapak [Fri, 30 Oct 2020 13:02:55 +0000 (14:02 +0100)]
Utils: remove product specific task descriptions

we use 'override_task_descriptions' in the specific products to
add the ones that are not used everywhere

took the chance and sorted the remaining alphabetically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agocss: avoid inherit of font-size on .fa class, set to 14px
Thomas Lamprecht [Tue, 3 Nov 2020 11:40:14 +0000 (12:40 +0100)]
css: avoid inherit of font-size on .fa class, set to 14px

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-7
Thomas Lamprecht [Mon, 2 Nov 2020 06:49:27 +0000 (07:49 +0100)]
bump version to 2.3-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: improve clean target
Thomas Lamprecht [Mon, 2 Nov 2020 06:41:30 +0000 (07:41 +0100)]
buildsys: improve clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: improve icon rendering
Thomas Lamprecht [Sat, 31 Oct 2020 08:52:10 +0000 (09:52 +0100)]
css: improve icon rendering

Font Awesome is intended to be used at 14px font-size, we set that
already over product specific CSS for some elements like buttons.

But, for tab panel icons and tree navigation views it was often
overruled by ExtJS to 13px which made look them quite blurry and even
the position was a bit off (to high when compared to the texts
baseline.

Fix that by overwriting the font-size to 14px of the
x-treelist-item-icon and x-tab-icon-el-default class, for the latter
improve the icon to text possition by setting a slight top margin.

Setting the color to black was already done by each product, so move
that over here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd form/TaskTypeSelector
Dominik Csapak [Fri, 30 Oct 2020 14:02:09 +0000 (15:02 +0100)]
add form/TaskTypeSelector

for suggesting workery types when we want to filter by them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agomake subscription status check compare lower case
Thomas Lamprecht [Thu, 29 Oct 2020 13:18:42 +0000 (14:18 +0100)]
make subscription status check compare lower case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-6
Thomas Lamprecht [Wed, 28 Oct 2020 17:39:44 +0000 (18:39 +0100)]
bump version to 2.3-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd PermissionView
Fabian Grünbichler [Wed, 28 Oct 2020 11:36:22 +0000 (12:36 +0100)]
add PermissionView

copied from pve-manager, but handling both '1' and 'true' as propagate
values, and making the authentication ID name/parameter configurable.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoedit window: add extraParams config
Thomas Lamprecht [Wed, 28 Oct 2020 11:54:25 +0000 (12:54 +0100)]
edit window: add extraParams config

For passing some default params which are passed along automatically
when calling load and doing the submit.

Useful in PBS, as there we often have the snapshot ID in multiple
parameters, not included in the request path, required for various
API call.

The params take low precendence, and are overwritten by values in
form fields with the same name for submit, or explicit params passed
to load calls

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: whitespace/newline cleanups
Thomas Lamprecht [Wed, 28 Oct 2020 11:53:52 +0000 (12:53 +0100)]
edit window: whitespace/newline cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowindow/edit: add autoLoadOptions to control API call
Thomas Lamprecht [Wed, 28 Oct 2020 10:36:14 +0000 (11:36 +0100)]
window/edit: add autoLoadOptions to control API call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-5
Thomas Lamprecht [Tue, 27 Oct 2020 17:34:44 +0000 (18:34 +0100)]
bump version to 2.3-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoHostPort vtype: improve error message
Thomas Lamprecht [Thu, 1 Oct 2020 08:30:58 +0000 (10:30 +0200)]
HostPort vtype: improve error message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoInfoWidget: add setData, so that we can bind it
Dominik Csapak [Fri, 23 Oct 2020 14:29:54 +0000 (16:29 +0200)]
InfoWidget: add setData, so that we can bind it

with a setData function that calls our updateValue, we can now use
viewModel bind to update those widgets

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoInfoWidget: eslint fixes
Dominik Csapak [Fri, 23 Oct 2020 14:29:53 +0000 (16:29 +0200)]
InfoWidget: eslint fixes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoadd info widget from pve
Dominik Csapak [Fri, 23 Oct 2020 14:29:52 +0000 (16:29 +0200)]
add info widget from pve

we want to reuse that, so copy it here and rename it to pmxInfoWidget

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoimprove multiselect behaviour for checkboxmodel
Dominik Csapak [Wed, 22 Apr 2020 07:26:23 +0000 (09:26 +0200)]
improve multiselect behaviour for checkboxmodel

when using the mode 'MULTI' for the checkbox selection model,
clicking a row would deselect all others, only clicking exactly on the
checkbox would select multiple rows

this override makes the whole cell of the checkbox behave like the
checkbox. This minimizes misclicks from the user.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoeslint fixup
Thomas Lamprecht [Thu, 22 Oct 2020 10:27:23 +0000 (12:27 +0200)]
eslint fixup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-4
Dietmar Maurer [Thu, 22 Oct 2020 10:13:01 +0000 (12:13 +0200)]
bump version to 2.3-4

3 years agoimplement and use systemd_unescape
Dietmar Maurer [Thu, 22 Oct 2020 10:09:16 +0000 (12:09 +0200)]
implement and use systemd_unescape

3 years agobump version to 2.3-3
Thomas Lamprecht [Thu, 22 Oct 2020 06:53:21 +0000 (08:53 +0200)]
bump version to 2.3-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: add task description for directory removal
Hannes Laimer [Tue, 15 Sep 2020 09:54:16 +0000 (11:54 +0200)]
utils: add task description for directory removal

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: add possibility to show a small note
Hannes Laimer [Tue, 15 Sep 2020 09:54:15 +0000 (11:54 +0200)]
safe-destroy: add possibility to show a small note

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: replace var with let/const
Hannes Laimer [Tue, 15 Sep 2020 09:54:14 +0000 (11:54 +0200)]
safe-destroy: replace var with let/const

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: replace type with purgeable and taskName
Hannes Laimer [Tue, 15 Sep 2020 09:54:13 +0000 (11:54 +0200)]
safe-destroy: replace type with purgeable and taskName

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: eslint --fix
Hannes Laimer [Tue, 15 Sep 2020 09:54:12 +0000 (11:54 +0200)]
safe-destroy: eslint --fix

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: move SafeDestroy from pve-manager here
Hannes Laimer [Tue, 15 Sep 2020 09:54:11 +0000 (11:54 +0200)]
safe-destroy: move SafeDestroy from pve-manager here

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agocorrectly encode upid paramenter (use encodeURIComponent)
Dietmar Maurer [Thu, 22 Oct 2020 06:38:17 +0000 (08:38 +0200)]
correctly encode upid paramenter (use encodeURIComponent)

3 years agobump version to 2.3-2
Thomas Lamprecht [Thu, 15 Oct 2020 11:27:34 +0000 (13:27 +0200)]
bump version to 2.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd Korean as translation choice
Thomas Lamprecht [Thu, 15 Oct 2020 11:24:43 +0000 (13:24 +0200)]
add Korean as translation choice

it was recently contributed by 김 주철

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-1
Thomas Lamprecht [Thu, 1 Oct 2020 13:27:25 +0000 (15:27 +0200)]
bump version to 2.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoToolkit: add HostPort vtype
Dominik Csapak [Thu, 1 Oct 2020 07:57:55 +0000 (09:57 +0200)]
Toolkit: add HostPort vtype

for easy checking textfield for a single host:port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoUtils: improve matching groups of ip/host regexes
Dominik Csapak [Thu, 1 Oct 2020 07:57:54 +0000 (09:57 +0200)]
Utils: improve matching groups of ip/host regexes

we only ever want to match the whole hostname/ip, never just some part of it
and we do not want to have the ':' as part of the port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agofix autoscrolling on browser zoom
Dominik Csapak [Wed, 30 Sep 2020 12:04:39 +0000 (14:04 +0200)]
fix autoscrolling on browser zoom

when browser zoom is activated, our scrollposition can be a little bit off
increase the boundary by a few pixels (5px are ~1/3 of a line)
so that the auto-scrolling still works

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.2-14
Thomas Lamprecht [Tue, 29 Sep 2020 08:18:10 +0000 (10:18 +0200)]
bump version to 2.2-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agonode tasks: add duration column, hide by default
Thomas Lamprecht [Tue, 29 Sep 2020 08:15:41 +0000 (10:15 +0200)]
node tasks: add duration column, hide by default

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotask viewer: render tokenid as part of username
Thomas Lamprecht [Tue, 29 Sep 2020 07:46:02 +0000 (09:46 +0200)]
task viewer: render tokenid as part of username

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agonode/Tasks: improve scroller behaviour on datastore loading
Dominik Csapak [Fri, 25 Sep 2020 14:13:27 +0000 (16:13 +0200)]
node/Tasks: improve scroller behaviour on datastore loading

when we have a fixed totalcount, the scrollbar behaves nicely,
but sometimes we do not have a fixed total, so the api will return
'+1' if there are more elments to load

when doing this, the scrollbar has a weird behaviour where it changes
size frequently the more one scrolls down.

instead, tell the grid to update its layout as soon as the store
prefetches the data, which triggers an update of the scrollbar

this still lets it jump around a little, but only once per load and
more consistent

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotasks: include API token ID if available
Fabian Grünbichler [Wed, 23 Sep 2020 08:38:49 +0000 (10:38 +0200)]
tasks: include API token ID if available

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agobump version to 2.2-12
Thomas Lamprecht [Mon, 7 Sep 2020 11:51:06 +0000 (13:51 +0200)]
bump version to 2.2-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate copyright
Thomas Lamprecht [Mon, 7 Sep 2020 11:49:32 +0000 (13:49 +0200)]
update copyright

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agolanguage_map: add Dutch
Thomas Lamprecht [Thu, 27 Aug 2020 12:52:50 +0000 (14:52 +0200)]
language_map: add Dutch

Contributed-by: Jorren Schauwaert <jorren.schauwaert@gmail.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: order languages after rendered name
Thomas Lamprecht [Thu, 27 Aug 2020 12:52:44 +0000 (14:52 +0200)]
utils: order languages after rendered name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoeslint fixes
Thomas Lamprecht [Wed, 26 Aug 2020 18:01:36 +0000 (20:01 +0200)]
eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: improve indentation and better check API result
Thomas Lamprecht [Wed, 26 Aug 2020 18:02:35 +0000 (20:02 +0200)]
utils: improve indentation and better check API result

to avoid dereferencing a null/undefined value.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>