]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
8 months agofix #4951: accept undefined as value for the MultiDiskSelector
Dominik Csapak [Thu, 7 Sep 2023 12:18:05 +0000 (14:18 +0200)]
fix #4951: accept undefined as value for the MultiDiskSelector

otherwise it tries to string split it and throws an exception

This can happen when there was no initial value and the form is reset.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 months agofix #4531: acme plugins: correct change detection of dirty form fields
Filip Schauer [Wed, 30 Aug 2023 11:57:44 +0000 (13:57 +0200)]
fix #4531: acme plugins: correct change detection of dirty form fields

Fix the ACME plugin edit form only detecting dirtychanges once the
value of a textfield was dirtied and then changed back to the
original.

This behaviour is caused as we cannot reuse the field's
resetOriginalValue method, due to that cause breakage here, e.g., if
the value was edited, then another plugin (without a schema) gets
selected, and then one would switch back again to the previous plugin,
it would cause the (actually still dirty) value to get registered as
new original one by mistake.

So the fix here is to keep the manual originalValue tracking, but add
the missing call to checkDirty after setting the originalValue to
refresh the dirty flag.

Fixes: 45708891 ("ui: add ACMEPluginEdit window") from pve-manager
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
 [TL: record reason for originalValue handling & sligthly reword ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoutils: Remove outdated url in comment
Christian Ebner [Fri, 11 Aug 2023 10:43:54 +0000 (12:43 +0200)]
utils: Remove outdated url in comment

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
9 months agobump version to 4.0.7
Wolfgang Bumiller [Wed, 16 Aug 2023 08:43:13 +0000 (10:43 +0200)]
bump version to 4.0.7

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agonotification: add ui for managing notification filters
Lukas Wagner [Thu, 3 Aug 2023 12:17:18 +0000 (14:17 +0200)]
notification: add ui for managing notification filters

This commit adds a new dialog window, containing all fields necessary
to configure notification filters.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
9 months agonotification: allow to select filter for notification targets
Lukas Wagner [Thu, 3 Aug 2023 12:17:17 +0000 (14:17 +0200)]
notification: allow to select filter for notification targets

This commit adds a new selector field for existing endpoint
configuration where one is able to select a notification filter.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
9 months agonotification: add gui for notification groups
Lukas Wagner [Thu, 3 Aug 2023 12:17:16 +0000 (14:17 +0200)]
notification: add gui for notification groups

The GUI is based on the 'plugin-based' dialog window EndpointEditBase
that was introduced in an earlier commit.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
9 months agonotification: add gui for gotify notification endpoints
Lukas Wagner [Thu, 3 Aug 2023 12:17:15 +0000 (14:17 +0200)]
notification: add gui for gotify notification endpoints

The GUI is based on the 'plugin-based' dialog window EndpointEditBase
that was introduced in an earlier commit.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
9 months agonotification: add gui for sendmail notification endpoints
Lukas Wagner [Thu, 3 Aug 2023 12:17:14 +0000 (14:17 +0200)]
notification: add gui for sendmail notification endpoints

This commit adds a new panel 'NotificationConfigView' that is supposed
to be embedded in the datacenter configuration side-bar.
This new view lists all notification endpoints, allowing to
add/modify/delete/test them.

Furthermore, this commits adds the dialog for adding/modifying
sendmail endpoints. The dialog is 'plugin-in' based, meaning that it
consists of a base window (EndpointEditBase) and a panel that holds
the actual fields for the endpoint type configuration. This will show
be beneficial once the GUI for other endpoint types is added.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
9 months agocertificates: delete: Fix a typo
Filip Schauer [Mon, 14 Aug 2023 10:13:06 +0000 (12:13 +0200)]
certificates: delete: Fix a typo

Fix the UI not refreshing when a successful certificate deletion
requires it.

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
9 months agoutils: add entry for Georgian translation
Thomas Lamprecht [Thu, 3 Aug 2023 14:31:35 +0000 (16:31 +0200)]
utils: add entry for Georgian translation

which got recently submitted as new translation:
https://git.proxmox.com/?p=extjs.git;a=commitdiff;h=6ee3ee85552152132700448eab148a3bf9a30fcc
https://git.proxmox.com/?p=proxmox-i18n.git;a=commitdiff;h=323c79d6b4fb8c7eb4b5eab7fb0f66d9cd970632

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 months agofix #4874: improve error message for invalid hostname
Amin Vakil [Thu, 3 Aug 2023 01:04:13 +0000 (04:34 +0330)]
fix #4874: improve error message for invalid hostname

Current error message is not correct because having underscores in
domain names are perfectly valid, although it's not acceptable at host
names, so it should be changed to "This is not a valid hostname".

https://www.ietf.org/rfc/rfc1123.txt section 2.1 "Host Names and Numbers"
https://www.rfc-editor.org/rfc/rfc2181#section-11

Signed-off-by: Amin Vakil <info@aminvakil.com>
 [TL: s/Host /host/ once more, reflow msg with 70cc & reword subject]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 months agoui: add some missing `htmlEncode`s
Friedrich Weber [Tue, 25 Jul 2023 11:52:45 +0000 (13:52 +0200)]
ui: add some missing `htmlEncode`s

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
10 months agobump version to 4.0.6
Thomas Lamprecht [Mon, 26 Jun 2023 18:25:01 +0000 (20:25 +0200)]
bump version to 4.0.6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agowindow: ldap auth edit forbid specifying a bind_dn without a password
Stefan Sterz [Mon, 26 Jun 2023 09:39:16 +0000 (11:39 +0200)]
window: ldap auth edit forbid specifying a bind_dn without a password

this commit enforces passwords when using an non-anonymous bind.
hence, it removes the possibility of configuring unauthenticated binds
and brings the gui in-line with the backend.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
10 months agotry using 'pve-eslint' if it exists
Dominik Csapak [Fri, 23 Jun 2023 07:08:45 +0000 (09:08 +0200)]
try using 'pve-eslint' if it exists

but fallback to 'eslint' otherwise

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [T: move into www/manager Makefile directly]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 4.0.5
Thomas Lamprecht [Fri, 16 Jun 2023 13:58:33 +0000 (15:58 +0200)]
bump version to 4.0.5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agowindow: addtotp: Increase the size of the quiet zone
Maximiliano Sandoval [Tue, 13 Jun 2023 13:32:22 +0000 (15:32 +0200)]
window: addtotp: Increase the size of the quiet zone

It is recommended that the quiet zone has the width of 4 blocks, since
each block is around 4 pixels each, we need a margin of 16 pixels and a
size of 256 + 2 * 16 pixels.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agoapt repositories: add production ready warnings for Ceph repositories
Fiona Ebner [Fri, 16 Jun 2023 13:42:35 +0000 (15:42 +0200)]
apt repositories: add production ready warnings for Ceph repositories

Could've been done for the test repository already, but now that there
is a split between no-subscription and enterprise it becomes even more
relevant.

Reported-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoutils: add Українська - Ukrainian to language map
Thomas Lamprecht [Wed, 14 Jun 2023 12:18:55 +0000 (14:18 +0200)]
utils: add Українська - Ukrainian to language map

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 4.0.4
Thomas Lamprecht [Fri, 9 Jun 2023 15:29:54 +0000 (17:29 +0200)]
bump version to 4.0.4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapt repositories: avoid potential type error in classifyOrigin helper
Fiona Ebner [Fri, 9 Jun 2023 14:16:26 +0000 (16:16 +0200)]
apt repositories: avoid potential type error in classifyOrigin helper

with undefined (or otherwise falsy) argument.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapt repositories: fix typo for getting the default unknown text
Fiona Ebner [Fri, 9 Jun 2023 14:16:25 +0000 (16:16 +0200)]
apt repositories: fix typo for getting the default unknown text

Could lead to a type error with classifyOrigin when there is a
repository that doesn't have an InRelease file and cannot be detected
as Debian/Proxmox origin from its URL. For me, it triggered with the
element.io repository after changing to bookworm (which currently
doesn't exist yet) and running apt update.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agobump version to 4.0.3
Thomas Lamprecht [Fri, 9 Jun 2023 06:07:45 +0000 (08:07 +0200)]
bump version to 4.0.3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotfa: show 'Locked' in 'Enabled' column if tfa is locked
Wolfgang Bumiller [Tue, 6 Jun 2023 10:03:18 +0000 (12:03 +0200)]
tfa: show 'Locked' in 'Enabled' column if tfa is locked

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agotfa: improve UX for recovery keys and when none are left
Wolfgang Bumiller [Tue, 6 Jun 2023 10:03:17 +0000 (12:03 +0200)]
tfa: improve UX for recovery keys and when none are left

If we get an empty challenge, tell the user to contact an
administrator as it means no 2nd factors and no recovery
keys are available.

Currently if only 1 key was available and it had a high ID,
we'd show something like: "Recovery keys available: 9,
Warning, less than 4 keys available."
Let's start off with the warning, and then be explicit about
the IDs.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11 months agoapt repositories: detect mixed suites before major upgrade
Fiona Ebner [Mon, 5 Jun 2023 15:43:12 +0000 (17:43 +0200)]
apt repositories: detect mixed suites before major upgrade

Usually, differing suites already produce warnings/errors, but before
a major upgrade the current and the next suite are both valid. Mixing
them is an issue though.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapt repositories: just ignore unknown info rather than throwing an error
Fiona Ebner [Mon, 5 Jun 2023 15:43:10 +0000 (17:43 +0200)]
apt repositories: just ignore unknown info rather than throwing an error

This will avoid breaking older UI when extending the backend.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11 months agoapt repositories: add classifyOrigin helper
Fiona Ebner [Mon, 5 Jun 2023 15:43:11 +0000 (17:43 +0200)]
apt repositories: add classifyOrigin helper

to be used again to detect mixed repositories before upgrade.

Needed to convert into an actual function for the 'this' usage.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agodate time field: fixup syntax error
Thomas Lamprecht [Wed, 7 Jun 2023 15:16:27 +0000 (17:16 +0200)]
date time field: fixup syntax error

Fixes: 6883083 ("form: date time field: add alias for backward compat")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoapt repositories: actually ignore ignore-pre-upgrade-warning
Fiona Ebner [Mon, 5 Jun 2023 15:43:09 +0000 (17:43 +0200)]
apt repositories: actually ignore ignore-pre-upgrade-warning

when upgrading is possible rather than throwing an error by reaching
the else branch.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotoolkit/utils: fix whitespace
Max Carrara [Wed, 15 Mar 2023 16:26:28 +0000 (17:26 +0100)]
toolkit/utils: fix whitespace

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
11 months agotoolkit/utils: set SameSite attr of auth cookie to 'strict'
Max Carrara [Wed, 15 Mar 2023 16:26:27 +0000 (17:26 +0100)]
toolkit/utils: set SameSite attr of auth cookie to 'strict'

Overrides 'Ext.util.Cookies', optionally allowing the SameSite
attribute of cookies to be defined. Using this override, the SameSite
attribute of the auth cookie is now set to 'strict', prohibiting the
cookie from being sent along in cross-site sub-requests or when the
user navigates to a different site.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
11 months agoDateTimeField: Extend and refactor to make field value bindable
Christian Ebner [Thu, 23 Mar 2023 14:42:02 +0000 (15:42 +0100)]
DateTimeField: Extend and refactor to make field value bindable

Extends the date time field so that bindings are updated on value changes.
Also adds a config to disable child components and avoid modification of
current values by cloning the referenced object for min/max value calculation.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
11 months agoform: date time field: add alias for backward compat
Thomas Lamprecht [Tue, 6 Jun 2023 14:43:56 +0000 (16:43 +0200)]
form: date time field: add alias for backward compat

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoDateTimeField: fix typo in xtype
Christian Ebner [Thu, 23 Mar 2023 14:42:01 +0000 (15:42 +0100)]
DateTimeField: fix typo in xtype

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
11 months agobump version to 4.0.2
Thomas Lamprecht [Sat, 3 Jun 2023 11:15:09 +0000 (13:15 +0200)]
bump version to 4.0.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomarkdown parser: allow setting target tag for links
Thomas Lamprecht [Sat, 3 Jun 2023 11:07:54 +0000 (13:07 +0200)]
markdown parser: allow setting target tag for links

If one really want's to force a link to open in a new tab (or window,
depending on the browser settings).

Note that we don't set target to _blank by default for links, as
opening in a new tab can already simply be done via a middle-click on
the link without that, but once the target is set opening in the same
tab cannot easily be done, i.e., without a target set the reader has
more freedom and flexibility.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofix #4756: markdown notes: allow any valid URL for a tags
Thomas Lamprecht [Sat, 3 Jun 2023 10:25:36 +0000 (12:25 +0200)]
fix #4756: markdown notes: allow any valid URL for a tags

As anchor elements cannot load things into the current browsing
context and are not necessarily more dangerous to users compared to
HTTP(S) links, which we allowed since adding markdown rendering in
the first place.

Allows adding short-cuts for virtual guest resources, like RDP or SSH
links.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomarkdown parser: normalize tag names and protocol for check
Thomas Lamprecht [Sat, 3 Jun 2023 10:33:48 +0000 (12:33 +0200)]
markdown parser: normalize tag names and protocol for check

As the tag names are often uppercase, and so this was overly strict
and didn't always match correctly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomarkdown parser: correctly remove src & href attribute if not valid URL
Thomas Lamprecht [Sat, 3 Jun 2023 11:04:14 +0000 (13:04 +0200)]
markdown parser: correctly remove src & href attribute if not valid URL

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoship a minified version of the widget-toolkit JS library
Thomas Lamprecht [Sat, 3 Jun 2023 10:36:59 +0000 (12:36 +0200)]
ship a minified version of the widget-toolkit JS library

so use sites can switch between literal and minified version like we
do already for ExtJS via the debug flag.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: avoid whitespace in build info heading
Thomas Lamprecht [Sat, 3 Jun 2023 10:35:42 +0000 (12:35 +0200)]
buildsys: avoid whitespace in build info heading

this is added to the URL as is by most index templates, and literal
(non-URL-encoded) white space might break things.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 4.0.1
Thomas Lamprecht [Thu, 1 Jun 2023 14:35:36 +0000 (16:35 +0200)]
bump version to 4.0.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofix #4551: ui: translate byte unit in `format_size`
Noel Ullreich [Thu, 6 Apr 2023 11:38:06 +0000 (13:38 +0200)]
fix #4551: ui: translate byte unit in `format_size`

Some languages translate byte units like 'GiB' or write them in their
own script.

By `gettext`ing the units in the `format_size` function, we can
translate the units for (almost) all of the web interface.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoparser: adapt to new marked Markdown renderer calling convention
Thomas Lamprecht [Thu, 1 Jun 2023 14:03:57 +0000 (16:03 +0200)]
parser: adapt to new marked Markdown renderer calling convention

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agotfa: paperkey: cleanup iframes for printing after window close
Aaron Lauterer [Mon, 3 Apr 2023 12:28:49 +0000 (14:28 +0200)]
tfa: paperkey: cleanup iframes for printing after window close

similar as recently done for the PBS storage add/edit window in
pve-manager

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
[ TL: refer to same change as done in pve-manager ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: expand clean target
Thomas Lamprecht [Thu, 25 May 2023 08:27:10 +0000 (10:27 +0200)]
buildsys: expand clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 4.0.0
Thomas Lamprecht [Thu, 25 May 2023 08:15:45 +0000 (10:15 +0200)]
bump version to 4.0.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: raise compat level to 13
Thomas Lamprecht [Thu, 25 May 2023 08:15:32 +0000 (10:15 +0200)]
d/control: raise compat level to 13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: improve DSC target & add sbuild convenience target
Thomas Lamprecht [Thu, 25 May 2023 08:15:11 +0000 (10:15 +0200)]
buildsys: improve DSC target & add sbuild convenience target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: use full DEB_VERSION
Thomas Lamprecht [Thu, 25 May 2023 08:14:58 +0000 (10:14 +0200)]
buildsys: use full DEB_VERSION

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: improve resolving package meta info
Thomas Lamprecht [Thu, 25 May 2023 07:47:32 +0000 (09:47 +0200)]
buildsys: improve resolving package meta info

use the full version for the cache invalidation technique and fall
back to the commit ID and current time.

With that we can drop the exports in the top-level makefile, which
would only work for local direct builds anyway, but not for building
from DSC source package.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomakefile: convert to use simple parenthesis
Thomas Lamprecht [Thu, 25 May 2023 07:26:05 +0000 (09:26 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: rework descriptions
Thomas Lamprecht [Thu, 25 May 2023 07:19:18 +0000 (09:19 +0200)]
d/control: rework descriptions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agobump version to 3.7.0
Thomas Lamprecht [Wed, 17 May 2023 12:03:04 +0000 (14:03 +0200)]
bump version to 3.7.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agod/control: define compat level via build-depends
Thomas Lamprecht [Wed, 17 May 2023 09:47:19 +0000 (11:47 +0200)]
d/control: define compat level via build-depends

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agobuildsys: extend clean target
Thomas Lamprecht [Wed, 17 May 2023 09:47:00 +0000 (11:47 +0200)]
buildsys: extend clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agobuildsys: derive upload dist automatically
Thomas Lamprecht [Wed, 17 May 2023 09:45:24 +0000 (11:45 +0200)]
buildsys: derive upload dist automatically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agomakefile: convert to use simple parenthesis
Thomas Lamprecht [Wed, 17 May 2023 09:43:45 +0000 (11:43 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agofix #4618: dark-mode: lighten critical/warning charts/gauges colors
Stefan Sterz [Fri, 14 Apr 2023 13:28:08 +0000 (15:28 +0200)]
fix #4618: dark-mode: lighten critical/warning charts/gauges colors

by increasing the lightness of these colors to to make them have the
same amount of lightness as the primary color.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
12 months agodark-mode: adjust panel header tool icons
Stefan Sterz [Fri, 14 Apr 2023 13:28:07 +0000 (15:28 +0200)]
dark-mode: adjust panel header tool icons

by brigthenening the icons on a more individual basis some darker ones
can now feature higher contrasts while others won't be too bright.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agoform: combo grid: use correct method to initialize the picker
Dominik Csapak [Fri, 31 Mar 2023 10:04:51 +0000 (12:04 +0200)]
form: combo grid: use correct method to initialize the picker

'createPicker' does create the picker, but saves no reference to it
in the owning field, Instead, 'getPicker' should be used for that,
since that does all the necessary initialization, and actually
assigns the created picker to the field's me.picker variable so that
the pickers lifetime can be successfully tracked and enforced.

Without this patch, we leak the picker being created every time a
combo grid is created.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
13 months agodark-mode: improve apt repo group header contrast ratios
Stefan Sterz [Wed, 5 Apr 2023 08:08:05 +0000 (10:08 +0200)]
dark-mode: improve apt repo group header contrast ratios

make the group headers darker, so that they have some contrast with
the surrounding rows. also add back the border at the bottom. both
changes improve the legibility of the table.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: style the icon for the datastore maintenance mode
Stefan Sterz [Wed, 5 Apr 2023 08:08:04 +0000 (10:08 +0200)]
dark-mode: style the icon for the datastore maintenance mode

.. in Proxmox Backup Server

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: fix the focused state for background image grid icons
Stefan Sterz [Wed, 5 Apr 2023 08:08:03 +0000 (10:08 +0200)]
dark-mode: fix the focused state for background image grid icons

some icons in grids are background images for the whole grid element.
so we need to filter the entire element, which also means that any
background or inner border color would get filtered too. this inverts
the focused border on inner elements and the focused background so
that it looks correct when inverted again.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: fix focus and focus-over states for tabs
Stefan Sterz [Wed, 5 Apr 2023 08:08:02 +0000 (10:08 +0200)]
dark-mode: fix focus and focus-over states for tabs

previously the focus and focus-over states weren't styled so the crisp
styling was used, which made them appear too brightly.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agobump version to 3.6.5
Thomas Lamprecht [Tue, 28 Mar 2023 15:56:08 +0000 (17:56 +0200)]
bump version to 3.6.5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agowindow: ldap auth edit: set view-model form data explicitly on edit
Thomas Lamprecht [Tue, 28 Mar 2023 15:47:34 +0000 (17:47 +0200)]
window: ldap auth edit: set view-model form data explicitly on edit

Fix a race that shows up in chrome/chromium by setting the data in
the view-model that is binded to form fields explicitly on edit, this
avoids a race where the default declared in the viewModel data got
applied after the form data was set, thus having the state out of
sync and so marking the field potentially as dirty even if it wasn't.

Reported-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agowindow: ldap auth edit: avoid relying on the default bind property
Thomas Lamprecht [Tue, 28 Mar 2023 15:42:49 +0000 (17:42 +0200)]
window: ldap auth edit: avoid relying on the default bind property

When using a string as bind config ExtJS maps this to the property
defined by the components defaultBindProperty, which is a bit to
subtle for my taste.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agobump version to 3.6.4
Thomas Lamprecht [Sun, 26 Mar 2023 15:53:08 +0000 (17:53 +0200)]
bump version to 3.6.4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agofix #4617: dark-mode: increase brightness of tree arrows
Thomas Lamprecht [Sun, 26 Mar 2023 15:51:26 +0000 (17:51 +0200)]
fix #4617: dark-mode: increase brightness of tree arrows

Increase brightness of tree expand/collapse arrows to avoid overly
low contrast

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agofix #4612: mobile: avoid crash due to missing getProxy method
Friedrich Weber [Fri, 24 Mar 2023 09:02:30 +0000 (10:02 +0100)]
fix #4612: mobile: avoid crash due to missing getProxy method

A previous commit (51083ee) added an override of the internal ExtJS
method `Ext.data.Store.onProxyLoad` in order to fix a race condition.
This override calls `Operation.getProxy`. However, this method is not
available on Sencha Touch. As a consequence, the mobile UI was
broken.

This commit modifies the override such that it has no effect in the
mobile UI.

Fixes: 51083ee54aa98af5a711622e4ed240840dcbbabe
Suggested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
13 months agolanguage selector: increase only picker list view
Thomas Lamprecht [Fri, 24 Mar 2023 10:51:35 +0000 (11:51 +0100)]
language selector: increase only picker list view

As that's what matters for the selection, having parts of the already
selected language cut off is not really a big deal as either one
knows the language and the initial native part is enough or the
picker needs to be opened for changing selection anyway.

But, we can give the field itself a bit more space by reducing the
label width to 75, which is enough for all languages as grepping our
PO files for "Language" and their translation, it seems that the
widest one comes from Euskara (Basque) with its "Hizkuntza" having 9
characters.

This way we avoid having to many different

Fixes: 454ff6e ("language selector: increase field width")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agoutils: use template strings for language map
Thomas Lamprecht [Fri, 24 Mar 2023 10:50:55 +0000 (11:50 +0100)]
utils: use template strings for language map

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agolanguage selector: increase field width
Noel Ullreich [Thu, 23 Mar 2023 14:44:25 +0000 (15:44 +0100)]
language selector: increase field width

With the new translations and layout, the width of the dropdown menu
needs to be increased so that the languages are all on the same line.
This width might need to increased in the future if translations were
to create a line break.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
 [ T: reflow message and reword subject a bit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agolanguage selector: translate entries to both native and localized
Noel Ullreich [Thu, 23 Mar 2023 14:44:24 +0000 (15:44 +0100)]
language selector: translate entries to both native and localized

Languages used to be hardcoded to English, change that to both the
native language plus writing system along with their translation in
the currently selected language.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
 [ T: drop redundant info from subject and reword a bit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agotheme edit: ensure that the saved theme is actually valid
Thomas Lamprecht [Fri, 24 Mar 2023 10:40:43 +0000 (11:40 +0100)]
theme edit: ensure that the saved theme is actually valid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 months agofix #4610: add a small white padding to the totp qr code
Stefan Sterz [Thu, 23 Mar 2023 15:26:56 +0000 (16:26 +0100)]
fix #4610: add a small white padding to the totp qr code

some qr code readers need a white "quiet zone" around the main qr
code. otherwise, they won't be able to scan it at all which made it
impossible to scan the totp qr code on certain devices.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: improve contrast ratios on the mask message
Stefan Sterz [Thu, 23 Mar 2023 15:26:55 +0000 (16:26 +0100)]
dark-mode: improve contrast ratios on the mask message

this removes the transparent background of the masks message box. this
should help improve the contrast between the background and text.
also sets an appropriate border color to make it stand out more.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: set boundlist background
Stefan Sterz [Thu, 23 Mar 2023 15:26:54 +0000 (16:26 +0100)]
dark-mode: set boundlist background

this is only visible when no boundlist items are present, which only
occurs when loading elements for the boundlist (e.g., when adding a
nfs storage)

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: color the custom grid and tree icons
Stefan Sterz [Thu, 23 Mar 2023 15:26:53 +0000 (16:26 +0100)]
dark-mode: color the custom grid and tree icons

this wasn't noticed before because usually vms would either be running
or stopped/offline/unknown etc. and there the colors are set
separately. however, in e.g., the backup view's missing backups
window these weren't colored properly. so this commit sets a default
color.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
13 months agodark-mode: improve contrast on split buttons
Stefan Sterz [Thu, 23 Mar 2023 15:26:52 +0000 (16:26 +0100)]
dark-mode: improve contrast on split buttons

this improves the contrast of the little triangle in split buttons,
making it stand out more especially when focused.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agobump version to 3.6.3
Thomas Lamprecht [Wed, 22 Mar 2023 12:25:10 +0000 (13:25 +0100)]
bump version to 3.6.3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 months agodark-mode: tone down border on ceph install card-like window
Thomas Lamprecht [Wed, 22 Mar 2023 11:38:09 +0000 (12:38 +0100)]
dark-mode: tone down border on ceph install card-like window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 months agodark-mode: style locked guest icons properly
Stefan Sterz [Wed, 22 Mar 2023 11:29:34 +0000 (12:29 +0100)]
dark-mode: style locked guest icons properly

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agodark-mode: style checkboxes that don't use blueish active states
Stefan Sterz [Wed, 22 Mar 2023 11:08:00 +0000 (12:08 +0100)]
dark-mode: style checkboxes that don't use blueish active states

e.g., in the backup job creation window the filter column checkmark

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agodark-mode: set the icon color of filtered column headers properly
Stefan Sterz [Wed, 22 Mar 2023 11:07:59 +0000 (12:07 +0100)]
dark-mode: set the icon color of filtered column headers properly

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agodark-mode: fix highlighting of active elements in drop down menus
Stefan Sterz [Wed, 22 Mar 2023 11:07:58 +0000 (12:07 +0100)]
dark-mode: fix highlighting of active elements in drop down menus

e.g.,: the filter menu item in the backup job creation window

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agobump version to 3.6.2
Thomas Lamprecht [Tue, 21 Mar 2023 15:46:31 +0000 (16:46 +0100)]
bump version to 3.6.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 months agorename "Theme" selector to "Color Scheme"
Thomas Lamprecht [Tue, 21 Mar 2023 15:08:57 +0000 (16:08 +0100)]
rename "Theme" selector to "Color Scheme"

Having "Color" added makes it easier to translate (i.e. Farbschema,
配色) and at least as understandable as Theme, so change it,

Suggested-by: Markus Frank <m.frank@proxmox.com>
 [ T: while Markus suggested Color Scheme, the hive-mind opted for
 this ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 months agodark theme: allow one to distinguish the ceph install mask from the mask
Thomas Lamprecht [Tue, 21 Mar 2023 14:56:10 +0000 (15:56 +0100)]
dark theme: allow one to distinguish the ceph install mask from the mask

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 months agodark-mode: set the background mask to `background-darker` again
Stefan Sterz [Tue, 21 Mar 2023 14:15:41 +0000 (15:15 +0100)]
dark-mode: set the background mask to `background-darker` again

this removes an issue where the mask would look awkward and
inconsistent (e.g., in the quarantine view, the retention tab of a
zfs storage etc). also  makes the shadow a big bigger to be closer to
crisp and also to improve contrast ratios

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agodark-mode: make shadow black
Wolfgang Bumiller [Tue, 21 Mar 2023 10:04:25 +0000 (11:04 +0100)]
dark-mode: make shadow black

Better have a barely visible shadow than a backlight.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agodark-mode: reduce background mask opacity to 0.5
Wolfgang Bumiller [Tue, 21 Mar 2023 10:04:24 +0000 (11:04 +0100)]
dark-mode: reduce background mask opacity to 0.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14 months agoRevert "dark-theme: let the background "shine through" mask more"
Wolfgang Bumiller [Tue, 21 Mar 2023 10:04:23 +0000 (11:04 +0100)]
Revert "dark-theme: let the background "shine through" mask more"

This looks horrible.

A *much* *much* better way to improve readability is to
simply set the opacity down to 0.5.

This reverts commit 2c837f5766b48629a835c62d4b7af6c3ae4dc1c0.

14 months agonetwork edit: add tooltip to bridge ports inputs
Christoph Heiss [Mon, 6 Feb 2023 10:58:13 +0000 (11:58 +0100)]
network edit: add tooltip to bridge ports inputs

.. as the exact format it takes might not be immediately obvious to
users.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
14 months agobump version to 3.6.1
Thomas Lamprecht [Mon, 20 Mar 2023 13:13:46 +0000 (14:13 +0100)]
bump version to 3.6.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 months agodark-theme: let the background "shine through" mask more
Stefan Sterz [Mon, 20 Mar 2023 09:02:09 +0000 (10:02 +0100)]
dark-theme: let the background "shine through" mask more

this makes the background mask a bit brighter and more see-through to
make it possible to read values from behind the mask, if needed. it
also adds a more visible shadow to windows so that the stand out more
at the same time.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
14 months agodark-theme: dim warning and invalid colors more
Stefan Sterz [Mon, 20 Mar 2023 09:02:08 +0000 (10:02 +0100)]
dark-theme: dim warning and invalid colors more

this brings them more in-line with the appearance of crisp.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>