Commit Graph

532 Commits

Author SHA1 Message Date
Thomas Lamprecht
8b349e01b0 pbs: factor out snapshot grid view
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:28:57 +01:00
Thomas Lamprecht
1415738cc3 pbs: hide encryption column
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:22:58 +01:00
Thomas Lamprecht
a090fe1d1d pbs: followup: actually set cbind for all elements
we cannot have xtype nor cbind in the defaults, as moving xtype there
breaks our cbind "when to stop descendant+apply" heuristic and cbind
cannot be moved there as it'd be only copied over by initComponent
and that happens later than the cbind apply step.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:21:16 +01:00
Thomas Lamprecht
158751a3b1 pbs: drop unused reference
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:12:34 +01:00
Thomas Lamprecht
53dea017e3 pbs: top bar UX improvements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:11:34 +01:00
Thomas Lamprecht
a03b1b0e0f pbs: refactor remote edit window
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:09:17 +01:00
Thomas Lamprecht
6618680bc4 pbs: make remote add fully declarative
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:08:56 +01:00
Thomas Lamprecht
dece95c95d pbs: actually use cbind mixin for it to work
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 19:08:14 +01:00
Thomas Lamprecht
2df1316d0a pbs: adapt to API changes + some litte cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 18:11:46 +01:00
Thomas Lamprecht
ad92548117 restore window: adapt for api changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 18:09:49 +01:00
Thomas Lamprecht
7bdb508cc9 pbs: drop beta notice and encryption checkbox
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-17 18:07:07 +01:00
Stoiko Ivanov
d944805ac4 add PBSConfig tab to Backup menu
The PBSConfig panel enables creation/editing/deletion of PBS instances.
Each instance can lists its snapshots and each snapshot can be restored

Inspired by the LDAPConfig panel and PBSEdit from pve-manager.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-17 12:34:03 +01:00
Stoiko Ivanov
7bcc34dbcf refactor RestoreWindow for PBS
by moving the item definition to initComponent, and changing the check
for a provided filename, we can reuse the window for restores from PBS

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-17 12:34:03 +01:00
Stoiko Ivanov
d3ad46bae3 Make Backup/Restore panel a menuentry
Move it away from the tab list in the Configuration entry to a submenu in
preparation for adding PBS integration

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-17 12:34:03 +01:00
Stoiko Ivanov
4eaa2d3607 RegexTester: fix getting reference to regex field
the regular expression field is not necessarily after the regex tester
(mostly it is before). In order to be more robust, use the child
method of the parent window instead of previousSibling of the button.

The child method gets any direct descendant matching the query, the
sibling one is always directional and there's no method for "any
sibling".

Tested with:
* mailproxy whitelist
* match field
* match filename
* who object

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-13 08:10:42 +01:00
Stoiko Ivanov
b067a9d6c3 buildsys: rm -f .lint-incremental
else the build fails if the file does not exist

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-13 08:10:25 +01:00
Thomas Lamprecht
7acfe33c87 mobile: consistent success action message with full UI
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 15:12:59 +01:00
Thomas Lamprecht
d1e4e5cf5a run lint checks during build and allow incremental linting
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 15:11:44 +01:00
Thomas Lamprecht
fbc1a05b4d mobile: fix calendar start/end date labels
Since/Until is not quite correct, especially in other languages
(e.g., in German "from" and "to" was translated to "Von" and "An",
respectively.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 15:03:07 +01:00
Dominik Csapak
0db5cdb140 Utils: add product specific task descriptions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-30 15:00:52 +01:00
Thomas Lamprecht
016ba5abbf mobile: show toast instead of annoying prompt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 15:00:46 +01:00
Thomas Lamprecht
f07b75b056 js/mobile: fix eslint and enable linting on build
lint the build file, as else eslint does not has the full picture.

Add a prelude to define globals once at the top

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 14:24:12 +01:00
Thomas Lamprecht
f1bb77563c buildsys: use separate makefiles
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 14:17:08 +01:00
Thomas Lamprecht
28eb60c0bd eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 14:08:16 +01:00
Thomas Lamprecht
f057ca9085 drop jslint hints
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 14:08:50 +02:00
Thomas Lamprecht
a36756b058 drop jslint hint for Proxmox global
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 14:03:17 +02:00
Thomas Lamprecht
c87d46fbe8 tree wide: eslint --fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:17:15 +02:00
Thomas Lamprecht
92b6c1f300 quarantine action: use shadow for toast "window"
better contrast

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:15:12 +02:00
Thomas Lamprecht
467eb50baa quarantine: make annoying success prompt a toast
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 12:57:20 +02:00
Thomas Lamprecht
6d8b4e26f2 make lint: use eslint
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 12:55:25 +02:00
Thomas Lamprecht
8153da61b4 utils: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 12:09:55 +02:00
Dominik Csapak
b53146333a fix #2844: MailTracker: do not collapse rows with double click
so that users can select words with double click, but can still expand
the logs with it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-09-23 09:04:30 +02:00
Thomas Lamprecht
4ebc52dd2d postfix mailq admin: avoid early load by updating nodename only if changed
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 17:58:17 +02:00
Thomas Lamprecht
bef394fcce PostfixMailQ eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 17:58:17 +02:00
Thomas Lamprecht
9db8595668 deferred mailq: sort initially by arrival time
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 17:58:15 +02:00
Stoiko Ivanov
6cde982f6a fix #1976: enable remoteSort for PostfixMailQueue
The mailq results are potentially very large, why a BufferedStore is used.

BufferedStores only support [0] remote filtering (which is already done) and
remote sorting (which this patch enables).

simpleSortMode (getting sortfield and sortdirection as two parameters instead
of an array with multiple objects containing those fields), is enabled to
work with our API.

[0] quite naturally, since you'd need to have the complete result to sort it,
 however only documented in the source code (and not the reference docs)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-06-04 08:34:55 +02:00
Thomas Lamprecht
22b6f5db77 report: indentation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 08:22:19 +02:00
Thomas Lamprecht
51ef4bbe9c followup: add separator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 08:21:33 +02:00
Moayad Almalat
a5db7653b8 gui: alow to remove subscription
Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
2020-06-04 07:47:57 +02:00
Dominik Csapak
63acd10808 remove Logo.js
it is now in the widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-18 18:51:32 +02:00
Dominik Csapak
23959bb0ff MailTracker: change default emptyText
by default show that the user first has to press search, and
afterwards show the old emptyText

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-24 17:41:22 +02:00
Dominik Csapak
e8e332fe01 MailTracker: do not search when not both datetime parameters are given
in the gui, we always expect an end and starttime, the only case
where we do not get this is when the fields are invalid, so bail out
in that case instead of searching

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-24 17:41:02 +02:00
Dominik Csapak
2e330d4477 MailTracker: buffer onFilterChange
so that the store gets loaded only when the user stops typing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-24 17:41:02 +02:00
Thomas Lamprecht
b9a5e7079d quarantine: display how many mails are selected
Mostly taken from a bigger patch of Dominik, for now lets just show
the count (release is near) and add some padding

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-24 16:16:37 +02:00
Dominik Csapak
3d309d74b9 MailTracker: sort by time by default
so that the mails get shown in correct order

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-24 16:09:56 +02:00
Dominik Csapak
4fd7bd9b44 MailTracker: let panel decide about width
else, the fieldLabels might be cut off

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-24 16:09:56 +02:00
Dominik Csapak
227ddd7a93 Dashboard: remove autoLoad from updateStores
those stores all have 'autoStart' set, which loads the store anyway
as soon as possible. this seems to fix some store load issues

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-24 16:09:56 +02:00
Thomas Lamprecht
8ffa8523c9 mail proxy options: add maxValue config for netmasks
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-20 17:39:53 +02:00
Stoiko Ivanov
62a6bcc8aa MailProxyOptions: add greylist enhancements
This patch adds 3 new configuration settings to the MailProxy Options Tab, for
comfortably enabling greylisting for IPv6 addresses, and configuring the
netmask used for greylist matching

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-04-20 17:37:46 +02:00
Dominik Csapak
853ecba79d add Language selection in user menu for admin view
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-20 12:14:32 +02:00