]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
2 years agobump version to 3.4-7
Thomas Lamprecht [Wed, 23 Feb 2022 11:12:16 +0000 (12:12 +0100)]
bump version to 3.4-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix drag&drop for pointerType 'pen'
Dominik Csapak [Wed, 23 Feb 2022 11:05:06 +0000 (12:05 +0100)]
fix drag&drop for pointerType 'pen'

some devices (e.g. vms via novnc, and some laptops) get the pointerType
'pen' under chromium.

the DragZone handler tries to ignore touch input for that by
checking for "=== 'mouse'" which does not include 'pen'
so override that to handle it when the pointerType !== 'touch'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoedit window: make response handling code path more robust
Thomas Lamprecht [Wed, 16 Feb 2022 06:57:54 +0000 (07:57 +0100)]
edit window: make response handling code path more robust

A 2xx error code doesn't necessarily mean we got data we can
dereference

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa view: fix WebAuthn casing
Thomas Lamprecht [Wed, 16 Feb 2022 06:57:43 +0000 (07:57 +0100)]
tfa view: fix WebAuthn casing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.4-6
Thomas Lamprecht [Mon, 14 Feb 2022 10:34:45 +0000 (11:34 +0100)]
bump version to 3.4-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotree-wide typo fixes
Thomas Lamprecht [Mon, 14 Feb 2022 10:23:43 +0000 (11:23 +0100)]
tree-wide typo fixes

found with `codespell`, mostly comments but also a fn parameter and
an error in an exception message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/changelog: fix typos in historic entries
Thomas Lamprecht [Mon, 14 Feb 2022 10:22:38 +0000 (11:22 +0100)]
d/changelog: fix typos in historic entries

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoedit: fix comment typos
Matthias Heiserer [Mon, 14 Feb 2022 10:02:34 +0000 (11:02 +0100)]
edit: fix comment typos

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
2 years agosorters: use correct property 'direction' and keep default 'ASC'
Fabian Ebner [Tue, 7 Dec 2021 11:53:30 +0000 (12:53 +0100)]
sorters: use correct property 'direction' and keep default 'ASC'

Ext.util.Sorter does not have an 'order' property, so 'order: DESC'
didn't have an effect. The default is 'ASC' and it is arguably the
preferred direction for realm anyways.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoutils: render default value correctly
Matthias Heiserer [Thu, 10 Feb 2022 11:57:38 +0000 (12:57 +0100)]
utils: render default value correctly

2 years agobump version to 3.4-5
Thomas Lamprecht [Thu, 13 Jan 2022 11:52:22 +0000 (12:52 +0100)]
bump version to 3.4-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowindow: safe destroy: make note more visible
Fabian Ebner [Mon, 13 Dec 2021 08:25:13 +0000 (09:25 +0100)]
window: safe destroy: make note more visible

by not using a smaller font size and using the pmx-hint class. Also
don't align to the middle, as everything else is left-aligned.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agozfs detail: hide the pool itself in tree view
Fabian Ebner [Fri, 10 Sep 2021 11:45:37 +0000 (13:45 +0200)]
zfs detail: hide the pool itself in tree view

and show the overall health in the grid instead.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agozfs detail: increase window height
Fabian Ebner [Fri, 10 Sep 2021 11:45:36 +0000 (13:45 +0200)]
zfs detail: increase window height

If there are mirrors and log/special vdevs it just feels too small.
It also doesn't help if there are errors in the upper part taking up
space. Make it 600, which was used in PVE before.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agotoolkit: fix noisy ext warning of feature we do not want/use
Thomas Lamprecht [Fri, 10 Dec 2021 12:22:25 +0000 (13:22 +0100)]
toolkit: fix noisy ext warning of feature we do not want/use

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoimprove error handling when adding webauthn entries
Wolfgang Bumiller [Tue, 30 Nov 2021 10:04:03 +0000 (11:04 +0100)]
improve error handling when adding webauthn entries

There are cases where we directly throw a string error
(particularly, when navigator.credentials.create() fails,
for example when trying to register the same WA device to
the same user twice), which would end up with the WA window
simply not closing before.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa login: hide u2f and yubico-otp if not available
Thomas Lamprecht [Mon, 29 Nov 2021 16:19:49 +0000 (17:19 +0100)]
tfa login: hide u2f and yubico-otp if not available

Else it may be to confusing for users to see TFA types they cannot
configure anymore (or never could, in the PBS/PMG case).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.4-4
Thomas Lamprecht [Wed, 24 Nov 2021 17:29:59 +0000 (18:29 +0100)]
bump version to 3.4-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agolog viewer: add heuristic for triggering a new limit load early
Thomas Lamprecht [Wed, 24 Nov 2021 17:26:22 +0000 (18:26 +0100)]
log viewer: add heuristic for triggering a new limit load early

Less latency for the user

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agolog viewer: add heuristic for scroll-direction dependent ratio distribution
Thomas Lamprecht [Wed, 24 Nov 2021 17:23:35 +0000 (18:23 +0100)]
log viewer: add heuristic for scroll-direction dependent ratio distribution

if the user scrolls down make 2/3 of the buffer load the downward
(newer) buffer and only 1/3 the upward (older), and vice versa, if
the user scrolls up load 2/3 of the older messages vs. 1/3 of newer
ones.

If the user scrolls around frantically we're roughly as good as
previously and in all other cases we're better now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agolog view: code cleanup and refactoring
Thomas Lamprecht [Wed, 24 Nov 2021 10:42:07 +0000 (11:42 +0100)]
log view: code cleanup and refactoring

save some lines while trying to keep or even improve readability a
bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: logpanel: catch up to very fast task logs with api calls
Dominik Csapak [Tue, 23 Nov 2021 12:02:29 +0000 (13:02 +0100)]
ui: logpanel: catch up to very fast task logs with api calls

by updating the start to 'total-limit' if we follow the task log live.
to do that, we decouple the 'scroll' event from updating the 'start'
parameter and call that directly after we scrolled down.

to not trigger the scroll event multiple times, suspend the scroll event
while doing that.

while we're touching those lines, remove the 'setTimeout' workaround
for touchscreens, since it seems to work fine since extjs 7.0

this also fixes the issue that the scroll event is not called sometimes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: logpanel: fix glitching fast task logs
Dominik Csapak [Tue, 23 Nov 2021 12:02:28 +0000 (13:02 +0100)]
ui: logpanel: fix glitching fast task logs

if the total we got was bigger than the last line number, we appended
empty lines at the end of the panel, to which we scrolled

the only time we need to do that is when we do not follow the task log
'live' but when we are elsewhere (to keep the scroll position/size)

so give the lines directly to 'updateView' and let it decide
if we append the empty lines at the end

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: journalview: fix wrong first load with timespan
Dominik Csapak [Tue, 23 Nov 2021 09:49:35 +0000 (10:49 +0100)]
ui: journalview: fix wrong first load with timespan

calling updateParams here lead to making an api call with the default
timespan (last 3 days) on pbs/pmg when going to the 'administration'
panel, even though it would never be shown since on tab activate we would
show the 'live mode' which does not use the timespan

on pve this did not happen since the journalview is on its own page and
the change to livemode triggered too fast..

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoutils: format_duration_human: calculate years too
Thomas Lamprecht [Tue, 23 Nov 2021 08:34:41 +0000 (09:34 +0100)]
utils: format_duration_human: calculate years too

Add years and skip showing minute scale once we got over a year,
that's just not relevant anymore at that scale..

Months are just not an ideal thing to show, as they have different
lengths too (leap years have similar issue, but they differ 0.27%
from a normal year, while shortest to longest month is 10.7%
difference!)

Weeks could be done though, they're fixed at 7 days, but for now I
want to avoid unwieldy day numbers like 2634 d as that's just hard to
frame correctly. Also adding years now does not makes adding weeks in
the future impossible anyway..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.4-3
Thomas Lamprecht [Sat, 20 Nov 2021 20:41:41 +0000 (21:41 +0100)]
bump version to 3.4-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobandwidth field: allow to submit auto-scaled size-units as string
Thomas Lamprecht [Sat, 20 Nov 2021 20:39:22 +0000 (21:39 +0100)]
bandwidth field: allow to submit auto-scaled size-units as string

opt-in to avoid breaking existing users and a bit of an experiment in
general..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoutils: add size unit related helpers to parse/auto-scale/format
Thomas Lamprecht [Sat, 20 Nov 2021 20:36:01 +0000 (21:36 +0100)]
utils: add size unit related helpers to parse/auto-scale/format

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobandwidth/utils: move out SizeUnits definition to more common module
Thomas Lamprecht [Sat, 20 Nov 2021 20:35:26 +0000 (21:35 +0100)]
bandwidth/utils: move out SizeUnits definition to more common module

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoform: copy BandwidthSelector/SizeField from PVE
Dominik Csapak [Fri, 19 Nov 2021 14:42:25 +0000 (15:42 +0100)]
form: copy BandwidthSelector/SizeField from PVE

and replace pve with pmx

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoui: OpenID realm: allow to edit acr values
Thomas Lamprecht [Fri, 19 Nov 2021 06:36:46 +0000 (07:36 +0100)]
ui: OpenID realm: allow to edit acr values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: OpenID realm: allow to edit prompt
Thomas Lamprecht [Fri, 19 Nov 2021 06:36:36 +0000 (07:36 +0100)]
ui: OpenID realm: allow to edit prompt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: OpenID realm: allow to edit scopes
Thomas Lamprecht [Fri, 19 Nov 2021 06:36:19 +0000 (07:36 +0100)]
ui: OpenID realm: allow to edit scopes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: OpenID edit: make username-claim field editable for arbitrary values
Thomas Lamprecht [Fri, 19 Nov 2021 06:35:40 +0000 (07:35 +0100)]
ui: OpenID edit: make username-claim field editable for arbitrary values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodata: diffstore: fix autoDestroyRstore option
Dominik Csapak [Thu, 18 Nov 2021 09:50:10 +0000 (10:50 +0100)]
data: diffstore: fix autoDestroyRstore option

the change from extjs 6.0.1 to 7.0.0 removed 'onDestroy' but brought
us 'doDestroy' for stores

we did not notice since 'onDestroy' was a private method and thus
the changelog did not mention this (doDestroy is a public method meant
exactly for our use case)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.4-2
Thomas Lamprecht [Mon, 15 Nov 2021 09:23:39 +0000 (10:23 +0100)]
bump version to 3.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoproxmox checkbox: add clearOnDisable config
Thomas Lamprecht [Mon, 15 Nov 2021 09:22:02 +0000 (10:22 +0100)]
proxmox checkbox: add clearOnDisable config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowindow/TfaWindow: fix text format
Dominik Csapak [Fri, 12 Nov 2021 14:40:04 +0000 (15:40 +0100)]
window/TfaWindow: fix text format

Ext.String.format was missing to show the number correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.4-1
Thomas Lamprecht [Thu, 11 Nov 2021 20:11:19 +0000 (21:11 +0100)]
bump version to 3.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agototp: add location hostname into default issuer
Thomas Lamprecht [Thu, 11 Nov 2021 20:11:01 +0000 (21:11 +0100)]
totp: add location hostname into default issuer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa: yubico otp: nudge users in WebAuthn direction
Thomas Lamprecht [Thu, 11 Nov 2021 18:54:54 +0000 (19:54 +0100)]
tfa: yubico otp: nudge users in WebAuthn direction

to avoid that they have a yubikey in their hands and think they need
to use Yubico/YubiCloud otp for it to work..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoTFA panel: code/style cleanup
Thomas Lamprecht [Thu, 11 Nov 2021 18:53:55 +0000 (19:53 +0100)]
TFA panel: code/style cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa view: avoid showing start of unix epoch when no creation date
Thomas Lamprecht [Thu, 11 Nov 2021 18:26:31 +0000 (19:26 +0100)]
tfa view: avoid showing start of unix epoch when no creation date

as that is a bit unrealistically, rather use N/A (not applicable)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodisk list: allow wiping individual partitions
Fabian Ebner [Wed, 6 Oct 2021 09:18:47 +0000 (11:18 +0200)]
disk list: allow wiping individual partitions

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoadd yubico otp windows & login support
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:21 +0000 (12:27 +0100)]
add yubico otp windows & login support

has to be explicitly enabled since this is only supported in
PVE

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd Proxmox.panel.TfaView
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:20 +0000 (12:27 +0100)]
add Proxmox.panel.TfaView

copied from pbs with s/pbs/pmx/ and s/PBS/Proxmox/

DELETE call changed from using a body to url parameters,
since pve doesn't support a body there currently, and pbs
doesn't care

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd totp, wa and recovery creation and tfa edit windows
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:19 +0000 (12:27 +0100)]
add totp, wa and recovery creation and tfa edit windows

plain copy from pbs with s/pbs/pmx/ and s/PBS/Proxmox/

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd Proxmox.window.TfaLoginWindow
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:18 +0000 (12:27 +0100)]
add Proxmox.window.TfaLoginWindow

copied from pbs and added u2f tab

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd Utils used for u2f and webauthn
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:16 +0000 (12:27 +0100)]
add Utils used for u2f and webauthn

base64url parts copied from pbs
render_u2f_error copied from pve

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd pmxUserSelector
Wolfgang Bumiller [Tue, 9 Nov 2021 11:27:15 +0000 (12:27 +0100)]
add pmxUserSelector

copied from pbs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agocbind: document cbind by adding a small summary and example
Dominik Csapak [Mon, 25 Oct 2021 09:31:44 +0000 (11:31 +0200)]
cbind: document cbind by adding a small summary and example

Explain the use-case, the difference to normal binds, and give an
example that contains all features that can be used with explanations.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agodisk: smart: code & indentation level cleanup
Thomas Lamprecht [Mon, 18 Oct 2021 06:43:26 +0000 (08:43 +0200)]
disk: smart: code & indentation level cleanup

drop some intermediate variables that are 1:1 the original

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3589: show device name in title for SMART values window
Dominik Csapak [Fri, 15 Oct 2021 11:33:55 +0000 (13:33 +0200)]
fix #3589: show device name in title for SMART values window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agocode style: text-width, indentation improvements
Thomas Lamprecht [Mon, 18 Oct 2021 05:06:53 +0000 (07:06 +0200)]
code style: text-width, indentation improvements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years ago(multi) disk selector: allow requesting partitions too
Fabian Ebner [Tue, 28 Sep 2021 11:39:51 +0000 (13:39 +0200)]
(multi) disk selector: allow requesting partitions too

No functional change for existing users is intended.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agopanel/RRDCharts: enable scrolling for RRDCharts on touchscreens
Dominik Csapak [Thu, 5 Aug 2021 10:31:35 +0000 (12:31 +0200)]
panel/RRDCharts: enable scrolling for RRDCharts on touchscreens

quote from extjs docs (AbstractChart.js):

 If you do have a chart inside a scrollable view, even if it has no
 interactions, you have to set its touchAction config to the following:

 touchAction: {
     panX: true,
     panY: true
 }

 Otherwise, if a touch action started on a chart,
 a swipe will not scroll the view.

Since we have RRDCharts always in a scrollable view, and it does not seem to
hurt non-touchscreens, enable it by default so that users on touchscreens
can scroll it.

Reported by users in the forum:
https://forum.proxmox.com/threads/minor-but-annoying-ipad-swipe-bug.93686

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.3-6
Thomas Lamprecht [Tue, 27 Jul 2021 14:41:08 +0000 (16:41 +0200)]
bump version to 3.3-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agonode: network: do not gettext MTU
Thomas Lamprecht [Tue, 27 Jul 2021 14:38:00 +0000 (16:38 +0200)]
node: network: do not gettext MTU

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agonode: add MTU column in NetworkView
Oguz Bektas [Thu, 8 Jul 2021 13:44:28 +0000 (15:44 +0200)]
node: add MTU column in NetworkView

hidden by default since it's an "advanced" setting

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2 years agoadd NodeInfoRepoStatus
Fabian Ebner [Thu, 22 Jul 2021 13:27:34 +0000 (15:27 +0200)]
add NodeInfoRepoStatus

adapted from PMG, because it has an additional fix to avoid setting
undefined in the view model, which still affects PBS (see pmg-gui
commit 774418f08b10c651357d11ccb161ac075e1ae905).

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agofix #3542: node task logs: query correct node for tasks in clusters
Dominik Csapak [Fri, 23 Jul 2021 06:59:35 +0000 (08:59 +0200)]
fix #3542: node task logs: query correct node for tasks in clusters

While refactoring, we forgot to replace the 'localhost' URL (which is
valid for PMG/PBS) with the actual nodename we have in Proxmox VE.

Do this by setting the correct URL in the viewModel right at the
start of the initComponent

We now also have the possibility to overwrite the url if we want

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.3-5
Thomas Lamprecht [Mon, 19 Jul 2021 15:52:16 +0000 (17:52 +0200)]
bump version to 3.3-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agonode: repos: add online help
Fabian Ebner [Wed, 14 Jul 2021 12:55:47 +0000 (14:55 +0200)]
node: repos: add online help

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Reviewed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agoapi-viewer: ensure path starts with slash
Thomas Lamprecht [Mon, 19 Jul 2021 15:38:22 +0000 (17:38 +0200)]
api-viewer: ensure path starts with slash

should always be the case, but this is now an assumption, so better
to ensure it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapi-viewer: drop extra slash in api path
Dominik Csapak [Thu, 15 Jul 2021 11:10:34 +0000 (13:10 +0200)]
api-viewer: drop extra slash in api path

'endpoint' already begins with a slash, so drop it after /api2/json

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoapt: match "Debian Backports" origin
Fabian Grünbichler [Thu, 15 Jul 2021 08:08:48 +0000 (10:08 +0200)]
apt: match "Debian Backports" origin

some users might have that enabled, and we know it is from Debian and
not '?'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd package version window
Thomas Lamprecht [Mon, 19 Jul 2021 13:54:14 +0000 (15:54 +0200)]
add package version window

we want that component in all projects, PVE and PBS have the code
duplicated for now, as PMG is about to receive this too I rather want
to use the chance add add it here for actual reuse.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.3-4
Thomas Lamprecht [Tue, 13 Jul 2021 16:44:16 +0000 (18:44 +0200)]
bump version to 3.3-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoservice view: disable all buttons for masked/not-found/unknown services
Thomas Lamprecht [Tue, 13 Jul 2021 16:39:39 +0000 (18:39 +0200)]
service view: disable all buttons for masked/not-found/unknown services

at least if we have a unit state (atm only PVE and PMG report that)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoservice view: fix stale stop/restart button enabled behavior
Oguz Bektas [Tue, 13 Jul 2021 11:03:15 +0000 (13:03 +0200)]
service view: fix stale stop/restart button enabled behavior

fix an issue where the stop or restart button stays enabled for
elements in 'startOnlyServices' after switching selection from a
service that was not restricted to start-only

note: front-end change only as the backend already refused to stop a
start-only service.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoservice view: avoid showing not installed services as error
Thomas Lamprecht [Tue, 13 Jul 2021 16:29:21 +0000 (18:29 +0200)]
service view: avoid showing not installed services as error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoservice view: code cleanup
Thomas Lamprecht [Tue, 13 Jul 2021 16:15:55 +0000 (18:15 +0200)]
service view: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoacme: allow wildcards as domain
Stoiko Ivanov [Thu, 15 Apr 2021 19:46:21 +0000 (21:46 +0200)]
acme: allow wildcards as domain

allow wildcard dns-names as defined in [0,1] (only the prefix '*.' in
front of a valid dns-name) as domain.

[0] https://tools.ietf.org/html/rfc8555#section-7.1.3
[1] https://community.letsencrypt.org/t/acme-v2-production-environment-wildcards/55578

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agobump version to 3.3-3
Thomas Lamprecht [Mon, 12 Jul 2021 07:52:32 +0000 (09:52 +0200)]
bump version to 3.3-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopanel/AuthView: handle different baseUrls for configuring realms
Dominik Csapak [Mon, 12 Jul 2021 07:48:03 +0000 (09:48 +0200)]
panel/AuthView: handle different baseUrls for configuring realms

we need that for pbs.

also give the option to use the type in the path, like in AuthEditBase

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agowindow/AuthEditBase: handle differenc config api urls
Dominik Csapak [Mon, 12 Jul 2021 07:48:02 +0000 (09:48 +0200)]
window/AuthEditBase: handle differenc config api urls

necessary for pbs. also give an option to use the type as url path
e.g. /config/access/<TYPE>/<ID>

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.3-2
Thomas Lamprecht [Fri, 9 Jul 2021 15:30:47 +0000 (17:30 +0200)]
bump version to 3.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofixup schema
Thomas Lamprecht [Fri, 9 Jul 2021 15:30:26 +0000 (17:30 +0200)]
fixup schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.3-1
Thomas Lamprecht [Fri, 9 Jul 2021 15:01:57 +0000 (17:01 +0200)]
bump version to 3.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoutils: add helper to format node's repository status
Fabian Ebner [Fri, 9 Jul 2021 12:44:14 +0000 (14:44 +0200)]
utils: add helper to format node's repository status

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoauth view: actually use new schema module ...
Thomas Lamprecht [Fri, 9 Jul 2021 14:40:49 +0000 (16:40 +0200)]
auth view: actually use new schema module ...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofixup new schema
Thomas Lamprecht [Fri, 9 Jul 2021 14:21:27 +0000 (16:21 +0200)]
fixup new schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd schema and move authDomains there
Thomas Lamprecht [Fri, 9 Jul 2021 14:11:19 +0000 (16:11 +0200)]
add schema and move authDomains there

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd generic OpenIDInputPanel
Dominik Csapak [Fri, 9 Jul 2021 11:42:24 +0000 (13:42 +0200)]
add generic OpenIDInputPanel

mostly copied from pve, but includes a realm displayeditfield
as well as the comment field

in contrast to the inputpanel in PVE, this is not extended
from a base input panel (where in pve the comment/realm/default/etc.
fields come from)

we do this, since not all products can define a default or tfa

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoadd panel/AuthView from PVE
Dominik Csapak [Fri, 9 Jul 2021 11:42:23 +0000 (13:42 +0200)]
add panel/AuthView from PVE

added the following (necessary) changes:
* use Proxmox.Utils.authSchema
* omit the sync button/handler, but add a possibilty to add extra buttons
* check for an 'edit' property in the authSchema for enabling editing
* removed the onlineHelp property
* removed 'TFA' column (can be added by the caller)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoUtils: add authSchema from PVE and make it overrideable
Dominik Csapak [Fri, 9 Jul 2021 11:42:22 +0000 (13:42 +0200)]
Utils: add authSchema from PVE and make it overrideable

like we do for the task_descriptions.
This way we can have a basic config that is true for all products
and override where necessary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoadd window/AuthEditBase from PVE
Dominik Csapak [Fri, 9 Jul 2021 11:42:21 +0000 (13:42 +0200)]
add window/AuthEditBase from PVE

basically a straight copy, with the exception that it references
Proxmox.Utils.authSchema instead of PVE.Utils.authSchema

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agonode: repos: only show suites warning at the top if enabled repository is affected
Fabian Ebner [Fri, 9 Jul 2021 08:08:22 +0000 (10:08 +0200)]
node: repos: only show suites warning at the top if enabled repository is affected

The warning still shows up for the disabled repository itself, but
having a disabled repository with a bad suite is not problematic for
the configuration status as a whole.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobump version to 3.2-5
Thomas Lamprecht [Thu, 8 Jul 2021 12:32:40 +0000 (14:32 +0200)]
bump version to 3.2-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowindow/SafeDestroy: add taskDone and apiCallDone callbacks
Dominik Csapak [Fri, 4 Jun 2021 09:44:05 +0000 (11:44 +0200)]
window/SafeDestroy: add taskDone and apiCallDone callbacks

like in edit window, so we can reacto to a successful task/api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agonode: tasks: use helper to format status again
Fabian Ebner [Thu, 8 Jul 2021 09:14:54 +0000 (11:14 +0200)]
node: tasks: use helper to format status again

which avoids the all-caps "WARNINGS:" and uses the localized version.
The call was thrown out by the big overhaul in
9e059d560c872f14aef0e586010a6b6a91ce2729.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agonetwork: use std remove button for confirm
Thomas Lamprecht [Tue, 6 Jul 2021 18:55:52 +0000 (20:55 +0200)]
network: use std remove button for confirm

alows to make the code simpler too, but we need to instantiate the
selection model explicitly, as we use a bit of a weird layout here to
be able to show the pending changes at the bottom, if any, so the
main gridpanel is not the parent of the toolbar buttons, so the
std-remove button does not automatically finds the selection model
when searching in the parent

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agocode cleanups, inline more, use arrow-fns
Thomas Lamprecht [Tue, 6 Jul 2021 18:54:59 +0000 (20:54 +0200)]
code cleanups, inline more, use arrow-fns

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: bump eslint requirement
Thomas Lamprecht [Tue, 6 Jul 2021 12:14:09 +0000 (14:14 +0200)]
d/control: bump eslint requirement

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.2-4
Thomas Lamprecht [Mon, 5 Jul 2021 14:50:58 +0000 (16:50 +0200)]
bump version to 3.2-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agonode/Tasks: add 'clear filter' button
Dominik Csapak [Mon, 5 Jul 2021 14:34:02 +0000 (16:34 +0200)]
node/Tasks: add 'clear filter' button

that does two things,

show the user that some filters are active (even if filters are collapsed),
and let the user to reset the filters all at once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agonode/Task: show errors on store load
Dominik Csapak [Mon, 5 Jul 2021 14:34:01 +0000 (16:34 +0200)]
node/Task: show errors on store load

since we use a buffered store on a grid, we cannot use our
normal monStoreErrors from Utils (The store on the grid is a memorystore
without our 'proxmox' proxy, and the store in the viewmodel is not
initialized yet in the init)

simply set the mask in the already existing 'updateLayout' function
which is exactly the right place for the buffered store load

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agonode/Tasks: deselect entries when filter changes
Dominik Csapak [Mon, 5 Jul 2021 14:34:00 +0000 (16:34 +0200)]
node/Tasks: deselect entries when filter changes

since we use a remotefilter on a bufferedstore, the only event where
we can check if the selected element is still there is the 'refresh'
event. Simply deselect if the seleceted element is not in the store

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agonode/Task: remove leftover 'datastore' reference
Dominik Csapak [Mon, 5 Jul 2021 14:33:59 +0000 (16:33 +0200)]
node/Task: remove leftover 'datastore' reference

this does nothing here, since the 'datastore' would be an
'extraFilter' defined in pbs itself

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agonode: repos: always skip "you get updates" on parsing error
Thomas Lamprecht [Mon, 5 Jul 2021 14:39:21 +0000 (16:39 +0200)]
node: repos: always skip "you get updates" on parsing error

As normally that means that the host does not gets updates, as most
apt use will fail too.

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