Commit Graph

300 Commits

Author SHA1 Message Date
Thomas Lamprecht
9f4e985d99 ui: metrics: set default for port
while it may not be always correct, we can only win by setting a
reasonable default, taken from

* graphite:
  https://graphite.readthedocs.io/en/stable/feeding-carbon.html#the-plaintext-protocol
* influxdb, udp port:
  https://docs.influxdata.com/influxdb/v1.8/administration/ports/

Also, changing that is easy for the admin and can always be done
afterwards.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:55:15 +01:00
Thomas Lamprecht
1eb6d2bfdd ui: metrics: move server and port on same line
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:55:04 +01:00
Thomas Lamprecht
eb594f5ca5 ui: metrics: style cleanup: defined xtype first, name second
those are both the most important for what the field is, so they
should come first.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:53:05 +01:00
Thomas Lamprecht
06d157918f ui: metrics: advancedColumn1 may now be empty
we have now improved detection in widget toolkit, not yet packaged
though

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:53:05 +01:00
Thomas Lamprecht
7ba638362b ui: metrics: use icons for add server
we could use the official influxdata one, they provide it in their
branding guide - and the use here would seem to comply with their
rules, and would fall under fair-user, probably.

Still, not 100% clear for me and Graphite is not easy to find a good
one with clear rules, so just reuse the bar-graph Font Awesome one,
better than nothing (looks empty-wrong)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:53:05 +01:00
Thomas Lamprecht
d57f8d9482 ui/api: metrics: move server to subpath, post to path with ID
We actually wanted to use that scheme for more new API paths, lets
see if it is really fitting starting with this.

Use the new widget-toolkit submitUrl helper to add the ID on create.

And unify the edit/create window creation, which may fit better in a
separate commit, it's quite small and was to cumbersome to untangle,
so just go against my one rules here... :(

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:53:05 +01:00
Thomas Lamprecht
71f5bf0a45 ui: metrics: add server base edit window
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:39:33 +01:00
Dominik Csapak
f257dcec26 ui: add MetricServerView to Datacenter
adds ui support for configuring the External Metric servers.
for now, influxdb and graphite edit windows do not share code,
it would be ideal to do that once we add more plugins

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-11-21 20:39:33 +01:00
Thomas Lamprecht
d74c7e80c7 ui: token create: use clipboard icon
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-15 14:51:43 +01:00
Dominic Jäger
5b849276b4 ui: Add verify SSL cert checkbox for active directory
Like for LDAP, the option is too important to be hidden in CLI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2020-10-29 19:22:51 +01:00
Thomas Lamprecht
2dddf3ba59 followup: do not name field as me, which is reserverd for this
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-22 18:24:47 +02:00
Dominic Jäger
a06e43f060 ui: Fix #2827: Add verify SSL cert checkbox for ldap
Because the option is too important to be hidden in CLI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2020-10-22 18:24:47 +02:00
Dominik Csapak
fe1dd5bbbf ui: dc/Backup: disable pveCompressionSelector for pbs storages
like in window/Backup

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-09-03 18:04:25 +02:00
Aaron Lauterer
3183a5531b ui: not backed: add emptyText to search field
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-07-13 12:27:23 +02:00
Thomas Lamprecht
393b74ff27 ui: backup detail: rename button to "Job Detail"
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-09 20:04:32 +02:00
Thomas Lamprecht
386c9ce560 ui: backup detail: some small nits + padding adation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-09 20:04:04 +02:00
Thomas Lamprecht
e4b95752e3 ui: backup detail: move search bar in panel header to save vspace
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-09 20:02:55 +02:00
Aaron Lauterer
7d2fac4af5 fix #2609 gui: backup: add window for not backed guests
In case that there are guests which are not covered by any backup job, a
notification is shown and a window with a grid can be opened to view
these guests.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-07-09 14:12:59 +02:00
Aaron Lauterer
01ad47af9e gui: dc/backup: add new backup job detail view
The new detail view for backup jobs shows the settings similar to the
edit dialog but read only. Additionally it does show a list of all
included guests with their volumes and whether these volumes will be
included in the backup.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-07-09 14:12:59 +02:00
Aaron Lauterer
7f08d0d19f gui: dc/backup: move renderers to Utils.js
Moving the following renderers to Utils.js to be able to use them in
more than one place:
* render_backup_days_of_week
* render_backup_selection

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-07-09 14:12:59 +02:00
Thomas Lamprecht
91d86e8fde dc/Tasks: pass endtime to make duration calculation correct
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-16 17:00:26 +02:00
Thomas Lamprecht
3bbce3b8cd drop jslint lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 18:11:47 +02:00
Dominik Csapak
c46a13b023 ui: fix missing change from 'pve-' to 'pmx-' models
we forgot to change these

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-02 16:53:53 +02:00
Thomas Lamprecht
769d716bcf ui: dc/summary: sync height of first two panels with others
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-02 12:23:51 +02:00
Dominik Csapak
f23e78f4ef use RealmCombobox from widget-toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-22 17:18:19 +02:00
Dominik Csapak
8eb4061bff ui: use RoleSelector from widget-toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-22 17:18:19 +02:00
Thomas Lamprecht
17e852abce ui: refactor pool edit window
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-22 17:16:04 +02:00
Thomas Lamprecht
a6ac82556f ui: TokenEdit: change default focus to tokenide field
Avoids that the user selector always pops up and tokenid is normally
more likely to change as the userid gets pre-selected to the one from
the logged in user.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-19 21:00:59 +02:00
Thomas Lamprecht
fbfe1e39d4 fix #2747: ui: API token create: always reset base submit URL
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-18 18:50:38 +02:00
Dominik Csapak
9e669fa047 ui: dc/ACME: fix not refreshing api column
When using a diffstore, we have to specify all fields that are
displayed, otherwise the store does not know which fields to check for
change

for the acme plugin view, 'api' was missing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-11 17:06:27 +02:00
Thomas Lamprecht
7788262afb ui: cluster join: hide all fields in assited mode until we got some info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-08 13:33:39 +02:00
Tim Marx
4081db0708 ui: clusterjoin: fix cluster network field visibility
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2020-05-08 13:33:37 +02:00
Thomas Lamprecht
9a9f1ac5aa ui: cluster: code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-08 13:33:37 +02:00
Dominik Csapak
f433ad19d2 dc/Realms: fix adding of new ldap realm
we cannot pass 'delete' on create api call, and we have to make
sure that 'default_opts' and 'sync_attributes' are alwyas available,
since they are used in onGetValues
(they were only created during setValues, which is not called
when adding a new realm)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-08 10:20:17 +02:00
Thomas Lamprecht
0f14518fe9 ui: acme view: use "Challenge Plugins" name
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-07 21:40:06 +02:00
Thomas Lamprecht
b0bff8c3af ui: acme plugin edit: allow to overwrite label and add a hint
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-07 20:55:34 +02:00
Thomas Lamprecht
228846472f ui: acme dns plugin edit: wider labels, = as separator
Some API endpoints hvae very long variable names..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-07 20:52:34 +02:00
Thomas Lamprecht
4a566eda62 ui: acme dns plugin edit: add online help
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-07 20:52:01 +02:00
Dominik Csapak
796a8b7483 ui: dc/ACMEClusterView: show TaskProgress on account removal
this is not a synchronous api call, so open a taskprogress window
and reload after the task is done

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-07 14:32:55 +02:00
Dominik Csapak
efca2bbbc6 ui: dc/ACMEClusterView: load the correct store on reload
if we use a diff/update store combo, we have to load the updatestore
not the diff store, else we get spurious empty grids

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-07 14:32:55 +02:00
Dominik Csapak
fc40915c7c ui: ACMEAccountCreate: make name only optional if no default exists
if the 'default' account exists, make the name field required and
remove the emptytext

get the information by querying the grid store. this may be not
up-to-date, but it is less intrusive that an extra api call that
blocks the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-07 14:32:55 +02:00
Dominik Csapak
878dffb7a2 ui: dc/ACMEClusterView: use a diff/update store combo for the grids
so that they are get automatically reloaded with the default interval (3seconds)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-07 12:54:30 +02:00
Dominik Csapak
e666f688ef ui: ACME: add emptyText and add minHeight
without the minHeight, the panel does resize weirdly on the first load

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-07 12:54:30 +02:00
Thomas Lamprecht
ec4bf5c4ec ui: auth base: add onlineHelp
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-06 20:35:45 +02:00
Dominik Csapak
47ea76b2ec ui: dc/SyncWindow: add help button
with link to the LDAP Syncing section of the documentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-06 20:24:34 +02:00
Thomas Lamprecht
1c783f74de ui: switch backup default compression selection to ZSTD
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-06 20:16:39 +02:00
Dominik Csapak
1011b56983 ui: fix missing htmlEncodes
username can include some special characters, so we have
to escape them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-06 16:59:50 +02:00
Thomas Lamprecht
7daaa52c0e ui: acme: minor nits
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-05 19:43:12 +02:00
Thomas Lamprecht
b9cab976b0 ui: acme view: hide data textarea if we got schema fields
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-05 19:43:00 +02:00
Thomas Lamprecht
9994a6f919 ui: acme view: sort fields lexically by id
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-05 19:42:09 +02:00