]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
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>
3 years agofix #2933: correct behaviour of initgpt button
Dominik Csapak [Fri, 14 Aug 2020 08:33:52 +0000 (10:33 +0200)]
fix #2933: correct behaviour of initgpt button

fixes 4 issues:
* use correct /api2/ext url to get the 'success' parameter
* check 'used' property for 'unused' (pbs vs pve)
* use 'name' instead of 'devpath' for id
  (name always contains the correct id for the product,
  e.g. /dev/sdd for pve and sdd for pbs)
* add a reload in taskDone to reload the list of disks when the inti is done

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.2-11
Thomas Lamprecht [Fri, 24 Jul 2020 14:17:10 +0000 (16:17 +0200)]
bump version to 2.2-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.2-10
Thomas Lamprecht [Fri, 24 Jul 2020 14:01:48 +0000 (16:01 +0200)]
bump version to 2.2-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoservice view: allow overwriting restart command
Thomas Lamprecht [Fri, 24 Jul 2020 12:06:58 +0000 (14:06 +0200)]
service view: allow overwriting restart command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoservice view: refactor assembling API path
Thomas Lamprecht [Fri, 24 Jul 2020 12:05:51 +0000 (14:05 +0200)]
service view: refactor assembling API path

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodisplayedit: allow passing an explicit displayConfig
Thomas Lamprecht [Fri, 24 Jul 2020 11:59:47 +0000 (13:59 +0200)]
displayedit: allow passing an explicit displayConfig

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodisplayedit: allow binding editable and value
Thomas Lamprecht [Fri, 24 Jul 2020 11:59:27 +0000 (13:59 +0200)]
displayedit: allow binding editable and value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoonlineHelp: try finding - and _ normalized blockid variants
Thomas Lamprecht [Tue, 21 Jul 2020 14:28:22 +0000 (16:28 +0200)]
onlineHelp: try finding - and _ normalized blockid variants

allows easy support of both separation variants, commonly used in
asciidoc or sphinx.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoAdd focusable pseudo class to edit windows defaultFocus
Fabian Möller [Wed, 8 Jul 2020 08:42:42 +0000 (10:42 +0200)]
Add focusable pseudo class to edit windows defaultFocus

Restricting the defaultFocus of the edit windows to only focusable fields
ensures that windows like "PVE -> Virtual Machine -> Manage HA", which
has a first field of xtype "displayfield", receive focus upon opening.

This allows those windows to be closed with the ESC key, which only
works when an element inside has focus.

In newer versions of ExtJS (>= 6.2.0) this filter could be reduced to
"field:canfocus" or maybe even ":canfocus".

3 years agobump version to 2.2-9
Thomas Lamprecht [Tue, 30 Jun 2020 11:36:09 +0000 (13:36 +0200)]
bump version to 2.2-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: s/storedUser/storedAuth/
Thomas Lamprecht [Tue, 30 Jun 2020 11:27:29 +0000 (13:27 +0200)]
followup: s/storedUser/storedAuth/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadapt auth utils for proxmox token authentication
Tim Marx [Thu, 7 May 2020 12:28:24 +0000 (14:28 +0200)]
adapt auth utils for proxmox token authentication

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd window/ZFSDetail
Dominik Csapak [Thu, 25 Jun 2020 11:59:32 +0000 (13:59 +0200)]
add window/ZFSDetail

inspired by pve's detail window, which used two sub components
(ZFSStatus, ZFSDevices; which were never used elsewhere)
combined into one self-contained window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoadd form/MultiDiskSelector
Dominik Csapak [Thu, 25 Jun 2020 11:59:31 +0000 (13:59 +0200)]
add form/MultiDiskSelector

from pve's ZFSCreate window, refactored to be self-contained using
field mixin, as well as be configureable enough to be used by pve as
well as other products

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoUtils: add render_zfs_health
Dominik Csapak [Thu, 25 Jun 2020 11:59:30 +0000 (13:59 +0200)]
Utils: add render_zfs_health

from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.2-8
Thomas Lamprecht [Tue, 16 Jun 2020 14:49:46 +0000 (16:49 +0200)]
bump version to 2.2-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotask viewer: show task endtime and duration in status
Dominik Csapak [Mon, 15 Jun 2020 14:07:10 +0000 (16:07 +0200)]
task viewer: show task endtime and duration in status

But only when the caller gives us the endtime, since the status API
call does not give us the endtime.

As we stop updating the store once a task isn't running anymore the
fallback to current unix utc timestamp doesn't needs an additional
check, the last one is shown static then.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[ Thomas: improve commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd DiskSmart window and DiskList from PVE
Dominik Csapak [Tue, 16 Jun 2020 09:06:34 +0000 (11:06 +0200)]
add DiskSmart window and DiskList from PVE

for use with other produts.

the models are now all prefixed with 'pmx' instead of pve, so they
should not conflict

includes some changes to the model for remapping some fields and
some small refactors (change to controller for the DiskList,
some cleanup of the initComponent of the DiskSmart window)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoadd DiskSelector from PVE
Dominik Csapak [Tue, 16 Jun 2020 09:06:33 +0000 (11:06 +0200)]
add DiskSelector from PVE

to be usable with other products.
also add a parameter 'typeProperty' to be able to configure
the backend property for the usage type

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoformat_duration_human: say <0.1s instead of 0s
Dominik Csapak [Mon, 15 Jun 2020 14:07:11 +0000 (16:07 +0200)]
format_duration_human: say <0.1s instead of 0s

if we get a duration of <=0.1s it should actually be somewhere
betweeen 0 and 0.1 so return <0.1s

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoshow Task warnings differently
Dominik Csapak [Mon, 15 Jun 2020 14:07:09 +0000 (16:07 +0200)]
show Task warnings differently

tasks can now show also 'WARNINGS: <count>'
filter it out and provide a 'parse_task_status' function for easy reuse

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoProxmoxProxy: add duration fields for proxmox-tasks
Dominik Csapak [Mon, 15 Jun 2020 14:07:08 +0000 (16:07 +0200)]
ProxmoxProxy: add duration fields for proxmox-tasks

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agonetworkedit: display MTU for OVS-bond interfaces too
Thomas Lamprecht [Mon, 8 Jun 2020 14:47:42 +0000 (16:47 +0200)]
networkedit: display MTU for OVS-bond interfaces too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Originally-by: Alexandre Derumier <aderumier@odiso.com>
3 years agod/control: drop rsync from build dependencies
Thomas Lamprecht [Sat, 6 Jun 2020 16:08:01 +0000 (18:08 +0200)]
d/control: drop rsync from build dependencies

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoimprove passing package version down
Thomas Lamprecht [Sat, 6 Jun 2020 16:05:20 +0000 (18:05 +0200)]
improve passing package version down

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodrop leftover utils, moved to src
Thomas Lamprecht [Sat, 6 Jun 2020 15:44:20 +0000 (17:44 +0200)]
drop leftover utils, moved to src

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocleanly separate sources from package build, move to own folder
Thomas Lamprecht [Sat, 6 Jun 2020 15:35:28 +0000 (17:35 +0200)]
cleanly separate sources from package build, move to own folder

compared result with `diffoscope`, saw now difference

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agouse eslint and execute as check target
Thomas Lamprecht [Sat, 6 Jun 2020 15:20:50 +0000 (17:20 +0200)]
use eslint and execute as check target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd pbs to upload target
Thomas Lamprecht [Sat, 6 Jun 2020 15:20:30 +0000 (17:20 +0200)]
add pbs to upload target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agomake eslint 100% happy
Thomas Lamprecht [Sat, 6 Jun 2020 15:15:42 +0000 (17:15 +0200)]
make eslint 100% happy

lots of churn and changes but will allow to enforce linting again in
the build system.

Also switch over from var to let.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosome more eslint fixes
Thomas Lamprecht [Sat, 6 Jun 2020 13:05:48 +0000 (15:05 +0200)]
some more eslint fixes

manually adapted after eslint --fix call due to our damn weird
indentation scheme

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoeslint fixes all over the place
Thomas Lamprecht [Sat, 6 Jun 2020 13:01:33 +0000 (15:01 +0200)]
eslint fixes all over the place

all autofixed by eslint with a slightly reduced base config rule set
to avoid rules which may give some undesired results in our code
base.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: some eslint fixes and refactoring
Thomas Lamprecht [Sat, 6 Jun 2020 11:52:17 +0000 (13:52 +0200)]
utils: some eslint fixes and refactoring

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: some eslint fixes
Thomas Lamprecht [Sat, 6 Jun 2020 11:52:17 +0000 (13:52 +0200)]
utils: some eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotask description: use 'Backup Job' if no id is set
Thomas Lamprecht [Fri, 5 Jun 2020 13:09:35 +0000 (15:09 +0200)]
task description: use 'Backup Job' if no id is set

We set the id for vzdump tasks only for single VM/CT backups, so if
it's undefined we got a job for sure.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoformat task description: avoid printing undefined ID
Thomas Lamprecht [Fri, 5 Jun 2020 12:51:44 +0000 (14:51 +0200)]
format task description: avoid printing undefined ID

fixes and regression for backup jobs which seems to get from empty
string to undefined ID in PVE 6.x - whyever...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.2-7
Thomas Lamprecht [Thu, 4 Jun 2020 16:20:20 +0000 (18:20 +0200)]
bump version to 2.2-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorrd: only move legend to header if both exists
Thomas Lamprecht [Thu, 4 Jun 2020 16:19:16 +0000 (18:19 +0200)]
rrd: only move legend to header if both exists

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobutton: make xtype of parent configurable
Dominik Csapak [Thu, 4 Jun 2020 10:32:02 +0000 (12:32 +0200)]
button: make xtype of parent configurable

to get the selection model of the parent, we use by default the xtype
'grid', but sometimes we want to use something else (e.g. 'treepanel')

to be flexible we make this configurable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.2-6
Thomas Lamprecht [Wed, 3 Jun 2020 09:43:43 +0000 (11:43 +0200)]
bump version to 2.2-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: add updateColumnWidth helper from PVE
Thomas Lamprecht [Fri, 29 May 2020 17:31:02 +0000 (19:31 +0200)]
utils: add updateColumnWidth helper from PVE

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorrd charts: add legend to header for better space usage
Thomas Lamprecht [Fri, 29 May 2020 17:16:18 +0000 (19:16 +0200)]
rrd charts: add legend to header for better space usage

Docking the legend to the bottom took space away from the chart, and
was the just used as the simplest solution when it was implemented.

The panel header has enough spaces for any reasonable number of
different series in a chart, so move it there.

Drop then the legend toggle tool from the header as it isn't required
anymore..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorrd charts: cleanup
Thomas Lamprecht [Fri, 29 May 2020 17:15:52 +0000 (19:15 +0200)]
rrd charts: cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorrd charts: render 3 decimal points for small values
Thomas Lamprecht [Fri, 29 May 2020 17:15:08 +0000 (19:15 +0200)]
rrd charts: render 3 decimal points for small values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: reduce chart legends space impact
Thomas Lamprecht [Fri, 29 May 2020 12:14:26 +0000 (14:14 +0200)]
css: reduce chart legends space impact

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.2-5
Thomas Lamprecht [Thu, 28 May 2020 16:36:40 +0000 (18:36 +0200)]
bump version to 2.2-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoformat_duration_short: rename to format_duration_human and change semantics a bit
Thomas Lamprecht [Thu, 28 May 2020 16:31:21 +0000 (18:31 +0200)]
format_duration_short: rename to format_duration_human and change semantics a bit

The rationale is that things like 11.4d or 22.6h is hard to parse for
humans (base 10 to base 60 or base 24 conversion). So try to emulate
what a human would tell another human to pass a duration information
along with reasonable good but not high accuracy.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoUtils: add duration format/render
Dominik Csapak [Thu, 28 May 2020 11:02:50 +0000 (13:02 +0200)]
Utils: add duration format/render

from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agocss: add icon colors
Dominik Csapak [Thu, 28 May 2020 11:02:51 +0000 (13:02 +0200)]
css: add icon colors

from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoimprove error extraction for monStoreErrors
Dominik Csapak [Tue, 26 May 2020 09:55:10 +0000 (11:55 +0200)]
improve error extraction for monStoreErrors

by printing the whole error body when it cannot be parsed as JSON

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoform/display edit: use the 'fit' layout to avoid width glitch
Thomas Lamprecht [Tue, 26 May 2020 16:26:52 +0000 (18:26 +0200)]
form/display edit: use the 'fit' layout to avoid width glitch

As else we get some issues with inner field adding some space on
outer fieldcontainer, which let a mix of "normal" fields and this one
appear asymmetrical.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoJournalView: avoid null dereference on quick tab switch
Thomas Lamprecht [Tue, 26 May 2020 08:13:04 +0000 (10:13 +0200)]
JournalView: avoid null dereference on quick tab switch

the updateView method can be called through an XHR request callback,
which may get triggered once the user switched already over to
another panel and viewmodel isn't valid (or did not get valid at the
first place) anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.2-4
Thomas Lamprecht [Mon, 25 May 2020 17:04:16 +0000 (19:04 +0200)]
bump version to 2.2-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotask history: better default column width
Thomas Lamprecht [Mon, 25 May 2020 16:56:56 +0000 (18:56 +0200)]
task history: better default column width

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agonode/tasks: eslint fixes
Thomas Lamprecht [Mon, 25 May 2020 16:37:10 +0000 (18:37 +0200)]
node/tasks: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: task history: handle running tasks
Thomas Lamprecht [Mon, 25 May 2020 16:32:00 +0000 (18:32 +0200)]
ui: task history: handle running tasks

normally this is used as strict task history, meaning no running
tasks included. But we can have running tasks in PBS here, so at
least avoid that they're shown as error.

Also add a refresh button as a simple workaround to the auto-refresh
problem, which isn't straightforward to solve with the buffered
reader we have here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: task descriptions: allow to use functions
Thomas Lamprecht [Mon, 25 May 2020 16:27:18 +0000 (18:27 +0200)]
utils: task descriptions: allow to use functions

Useful if we need to split the ID, or do some more complex rendering
for a task type.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: task descriptions: allow to add/override entries
Thomas Lamprecht [Mon, 25 May 2020 16:20:24 +0000 (18:20 +0200)]
utils: task descriptions: allow to add/override entries

Allows having only the common ones here, and more special ones in the
per product code. Sometimes there are simple worker IDs which can
have a very different meaning for one product, with this that clash
can be resolved in a standardized way.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: network: make CIDR & gateway column broader by default
Thomas Lamprecht [Mon, 25 May 2020 16:14:12 +0000 (18:14 +0200)]
ui: network: make CIDR & gateway column broader by default

ensuring they fit at least always a full IPv4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: network: code cleanup
Thomas Lamprecht [Mon, 25 May 2020 16:13:34 +0000 (18:13 +0200)]
ui: network: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorender_upid: fallback to worker_{id,type}
Thomas Lamprecht [Mon, 25 May 2020 13:11:56 +0000 (15:11 +0200)]
render_upid: fallback to worker_{id,type}

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: add proxmox-invalid-row class
Thomas Lamprecht [Mon, 25 May 2020 14:46:48 +0000 (16:46 +0200)]
css: add proxmox-invalid-row class

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoreturn cookie again in authOK
Dominik Csapak [Mon, 25 May 2020 11:46:54 +0000 (13:46 +0200)]
return cookie again in authOK

the calling code did require that authOK returns the cookie if
there is a valid one

make it now very explicit that the cookie gets returned instead
of using implicit short-circuit behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agofix #2758: reject 'tfa' cookies
Dominik Csapak [Mon, 25 May 2020 08:35:02 +0000 (10:35 +0200)]
fix #2758: reject 'tfa' cookies

return false on authOK when the ticket is a tfa ticket
(starts with PVE:tfa!)

when a user now loads the page with only a tfa ticket, it shows the
login window again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.2-3
Thomas Lamprecht [Fri, 22 May 2020 11:08:16 +0000 (13:08 +0200)]
bump version to 2.2-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowindow: edit: eslint fixes
Thomas Lamprecht [Fri, 22 May 2020 11:08:07 +0000 (13:08 +0200)]
window: edit: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowindow: edit: call setValue on all fields
Thomas Lamprecht [Fri, 22 May 2020 11:01:01 +0000 (13:01 +0200)]
window: edit: call setValue on all fields

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowindow password edit: refactor to more schematic code
Thomas Lamprecht [Fri, 22 May 2020 09:27:28 +0000 (11:27 +0200)]
window password edit: refactor to more schematic code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoPendingObjectGrid: mark pending changes as orange
Thomas Lamprecht [Fri, 22 May 2020 07:37:51 +0000 (09:37 +0200)]
PendingObjectGrid: mark pending changes as orange

as red is commonly associated with an error, which pending changes
ain't. But, they should be clearly visible - so use darkorange

3 years agoadd pmxRoleSelector
Dominik Csapak [Tue, 19 May 2020 14:48:36 +0000 (16:48 +0200)]
add pmxRoleSelector

copied+refactored from pve-manager
for use with other projects

also show privs now in the combobox

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoinput panel: call setValue on all fields
Thomas Lamprecht [Tue, 19 May 2020 19:17:22 +0000 (21:17 +0200)]
input panel: call setValue on all fields

Fixes the displayedit field and makes some rarer case much easier to
do. Normally we only need this if there are two viewmodel synced
fields, where only one is enabled at a time..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodisplayedit: fixup to correct version
Thomas Lamprecht [Tue, 19 May 2020 19:14:51 +0000 (21:14 +0200)]
displayedit: fixup to correct version

it seems I made an error and applied an older version..
Apply the correct one[0] with Dominiks comment addressed[1].

[0]: https://pve.proxmox.com/pipermail/pve-devel/2020-April/043037.html
[1]: https://pve.proxmox.com/pipermail/pve-devel/2020-April/043043.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.2-2
Thomas Lamprecht [Mon, 18 May 2020 15:27:05 +0000 (17:27 +0200)]
bump version to 2.2-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd Realm model and RealmComboBox
Dominik Csapak [Fri, 15 May 2020 08:19:26 +0000 (10:19 +0200)]
add Realm model and RealmComboBox

copied from pve-manager, with adaptions for modern js
(let, parameter destructuring,...)

and dropped the not needed 'needOTP' method

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoadd PMX.image.Logo
Dominik Csapak [Fri, 15 May 2020 08:19:25 +0000 (10:19 +0200)]
add PMX.image.Logo

copied from pmg-gui, adapted to be able to set a custom url prefix
when we want to use something other than '/pve2'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>