]> git.proxmox.com Git - pmg-gui.git/log
pmg-gui.git
11 months agomail-proxy-relaying: add help to Default Relay
Maximiliano Sandoval [Thu, 14 Sep 2023 13:18:13 +0000 (15:18 +0200)]
mail-proxy-relaying: add help to Default Relay

Add link to [1].

[1] https://pmg.proxmox.com/pmg-docs/chapter-pmgconfig.html#pmgconfig_mailproxy_relaying

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agomail-proxy-relaying: format function arguments
Maximiliano Sandoval [Thu, 14 Sep 2023 13:18:12 +0000 (15:18 +0200)]
mail-proxy-relaying: format function arguments

In the next commit we add a new parameter.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agoNavigationTree: Remove extra space
Maximiliano Sandoval [Wed, 29 Nov 2023 13:25:22 +0000 (14:25 +0100)]
NavigationTree: Remove extra space

The new string already is in our .po file. This change will remove the
wrong string without requiring newer translations.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agogui: Mark missing strings as translatable
Maximiliano Sandoval [Wed, 29 Nov 2023 13:25:21 +0000 (14:25 +0100)]
gui: Mark missing strings as translatable

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agoui: node summary: use SI units for HD usage
Christian Ebner [Tue, 21 Nov 2023 11:37:31 +0000 (12:37 +0100)]
ui: node summary: use SI units for HD usage

SI units are used for storage size information, as typically used by
hard disk manufacturers.

Change the root filesystem usage values in the node summary to be
consistent

12 months agod/control: bump versioned dependency of proxmox-widget-toolkit to 4.1.0
Thomas Lamprecht [Tue, 14 Nov 2023 15:47:59 +0000 (16:47 +0100)]
d/control: bump versioned dependency of proxmox-widget-toolkit to 4.1.0

to ensure the tracking center date-time selectors can work with the
recent revert of a stop-gap fix.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agoRevert "fix tracking center with newer proxmox-widget-toolkit"
Christian Ebner [Wed, 9 Aug 2023 10:55:29 +0000 (12:55 +0200)]
Revert "fix tracking center with newer proxmox-widget-toolkit"

The DateTimeField now defines its own ViewModel, therefore the
MailTrackerFilter container doesn't need one to be inherited to the
child.

This reverts commit 6f3f8ac5cc88ac3c71aed4269688193e5dd6c728.

14 months agobackup config: add icons to tab buttons
Maximiliano Sandoval [Wed, 6 Sep 2023 13:09:07 +0000 (15:09 +0200)]
backup config: add icons to tab buttons

From a UX perspective flat buttons, i.e. buttons without a frame or
background, are not obviously clickable without an icon.

The choice of icons was taken from the storageSchema map in PVE.Utils
module currently residing in the pve-manager repo.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
 [TL: clarify where the choice come from and other small nits]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agoutils: fix typo in url
Christian Ebner [Fri, 11 Aug 2023 11:04:03 +0000 (13:04 +0200)]
utils: fix typo in url

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
16 months agotry using 'pve-eslint' if it exists
Dominik Csapak [Thu, 22 Jun 2023 08:23:05 +0000 (10:23 +0200)]
try using 'pve-eslint' if it exists

but fallback to 'eslint' otherwise

introduce the defines.mk for this

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
16 months agobump version to 4.0.2
Thomas Lamprecht [Wed, 28 Jun 2023 09:34:26 +0000 (11:34 +0200)]
bump version to 4.0.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agouser view: disable unlock TFA button initially
Thomas Lamprecht [Wed, 28 Jun 2023 09:32:48 +0000 (11:32 +0200)]
user view: disable unlock TFA button initially

set the initial state to disabled and let the selection model, which
is backing the enableFn, handle it when actually selected, like the
other buttons here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agoadd Unlock TFA button
Wolfgang Bumiller [Wed, 28 Jun 2023 07:53:28 +0000 (09:53 +0200)]
add Unlock TFA button

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agoshow TFA lock status in user view
Wolfgang Bumiller [Wed, 28 Jun 2023 07:53:22 +0000 (09:53 +0200)]
show TFA lock status in user view

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agobump version to 4.0.1
Thomas Lamprecht [Tue, 27 Jun 2023 11:43:21 +0000 (13:43 +0200)]
bump version to 4.0.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agofix tracking center with newer proxmox-widget-toolkit
Dominik Csapak [Mon, 26 Jun 2023 14:52:53 +0000 (16:52 +0200)]
fix tracking center with newer proxmox-widget-toolkit

newer widget-toolkit versions did change the DateTimeField a bit, and
now breaks when there is no viewModel anywhere, so add one as a stopgap
fix for now in the tracking center.

the real fix would have to be in DateTimeField itself, probably checking
if there is a bind.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
16 months agobump version to 4.0.0
Thomas Lamprecht [Mon, 26 Jun 2023 16:11:46 +0000 (18:11 +0200)]
bump version to 4.0.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agospam: options: adapt do new defaults for bayes/awl
Dominik Csapak [Fri, 23 Jun 2023 12:21:04 +0000 (14:21 +0200)]
spam: options: adapt do new defaults for bayes/awl

both options default to false now in the backend

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
16 months agoconfiguration: options: adapt to new advanced statistic filter default
Dominik Csapak [Fri, 23 Jun 2023 12:21:03 +0000 (14:21 +0200)]
configuration: options: adapt to new advanced statistic filter default

default in the backend is now false

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
16 months agobuildsys: make clean target more robust / safer
Thomas Lamprecht [Mon, 26 Jun 2023 13:26:57 +0000 (15:26 +0200)]
buildsys: make clean target more robust / safer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agod/control: avoid versioned build-dependencies with a -1 revision
Thomas Lamprecht [Mon, 26 Jun 2023 13:26:41 +0000 (15:26 +0200)]
d/control: avoid versioned build-dependencies with a -1 revision

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agobuildsys: don't require build-dependencies for source package build
Thomas Lamprecht [Mon, 26 Jun 2023 13:25:42 +0000 (15:25 +0200)]
buildsys: don't require build-dependencies for source package build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agod/control: add dependency on misc:Depends
Stoiko Ivanov [Mon, 19 Jun 2023 19:02:12 +0000 (21:02 +0200)]
d/control: add dependency on misc:Depends

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agod/control: raise standards version compliance to 4.6.2
Stoiko Ivanov [Tue, 30 May 2023 15:12:44 +0000 (17:12 +0200)]
d/control: raise standards version compliance to 4.6.2

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agod/control: define compat level via build-depends and raise to 13
Stoiko Ivanov [Tue, 30 May 2023 15:12:19 +0000 (17:12 +0200)]
d/control: define compat level via build-depends and raise to 13

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agobuildsys: derive upload dist automatically
Stoiko Ivanov [Tue, 30 May 2023 15:15:22 +0000 (17:15 +0200)]
buildsys: derive upload dist automatically

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agobuildsys: add dsc and sbuild targets
Stoiko Ivanov [Tue, 30 May 2023 14:49:47 +0000 (16:49 +0200)]
buildsys: add dsc and sbuild targets

and adapt clean target for the changes

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agobuildsys: makefiles convert to use simple parenthesis
Stoiko Ivanov [Tue, 30 May 2023 13:23:00 +0000 (15:23 +0200)]
buildsys: makefiles convert to use simple parenthesis

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agod/s/format: mark package as native
Stoiko Ivanov [Tue, 30 May 2023 13:16:29 +0000 (15:16 +0200)]
d/s/format: mark package as native

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 months agotfa: avoid trailing space on WebAuthn
Thomas Lamprecht [Wed, 14 Jun 2023 13:15:57 +0000 (15:15 +0200)]
tfa: avoid trailing space on WebAuthn

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agomail filter: properly html-encode rule names
Leo Nunner [Tue, 28 Mar 2023 12:08:21 +0000 (14:08 +0200)]
mail filter: properly html-encode rule names

Rule names were not HTML-encoded in the rule overview. While some
encoding did happen, it was only on the first load for the info panel
on the right hand side, which was overriden as soon as the edit
window was opened/closed again.

The variable binding now gets HTML-encoded automatically, and the
renderer for rule names has been set to Ext.htmlEncode.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
 [ T: rework commit message a bit (mostly subject) ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
18 months agomain view/quarantine: rename "Theme" selector to "Color Theme"
Stefan Sterz [Fri, 14 Apr 2023 13:28:11 +0000 (15:28 +0200)]
main view/quarantine: rename "Theme" selector to "Color Theme"

this is already the case in Proxmox VE so just use the same wording
here too to stay consistent

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
19 months agobump version to 3.3-2
Thomas Lamprecht [Tue, 28 Mar 2023 05:42:47 +0000 (07:42 +0200)]
bump version to 3.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
19 months agospamdetector: add extract_text option
Stoiko Ivanov [Mon, 13 Mar 2023 21:23:51 +0000 (22:23 +0100)]
spamdetector: add extract_text option

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
19 months agobump version to 3.3-1
Thomas Lamprecht [Fri, 24 Mar 2023 09:35:50 +0000 (10:35 +0100)]
bump version to 3.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoquarantines: use a check mark for the dark mode filter
Stefan Sterz [Thu, 23 Mar 2023 15:44:55 +0000 (16:44 +0100)]
quarantines: use a check mark for the dark mode filter

...instead of a toggle button. also adjusts the wording and adds a
separator.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
20 months agoquarantines: fix the default behavior of the theme toggle button
Stefan Sterz [Thu, 23 Mar 2023 15:44:54 +0000 (16:44 +0100)]
quarantines: fix the default behavior of the theme toggle button

since the default theme is "auto" now, the behavior of the dark theme
toggle needs to be adjust accordingly.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
20 months agobump version to 3.2-3
Thomas Lamprecht [Tue, 21 Mar 2023 12:09:06 +0000 (13:09 +0100)]
bump version to 3.2-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoapi: use readable casing for tls-inbound-domains endpoint
Thomas Lamprecht [Tue, 21 Mar 2023 09:23:40 +0000 (10:23 +0100)]
api: use readable casing for tls-inbound-domains endpoint

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agofix #2437: proxy: Add 'TLS Inbound Domains' panel
Christoph Heiss [Mon, 20 Mar 2023 10:35:47 +0000 (11:35 +0100)]
fix #2437: proxy: Add 'TLS Inbound Domains' panel

This panel can be used to configure sender domains for which TLS will be
enforced my postfix. As this takes the usual transport domain format,
either a FQDN or .FQDN (for matching subdomains) can be specified.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
20 months agod/control: bump versioned dependency for proxmox-widget-toolkit
Thomas Lamprecht [Wed, 15 Mar 2023 14:52:59 +0000 (15:52 +0100)]
d/control: bump versioned dependency for proxmox-widget-toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agoindex template: make it easier to use the auto theme per default
Stefan Sterz [Tue, 14 Mar 2023 14:02:02 +0000 (15:02 +0100)]
index template: make it easier to use the auto theme per default

adapt the main template so the proxy can use the "auto" theme per
default more easily.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agomobile quarantine: properly style main logo
Stefan Sterz [Tue, 14 Mar 2023 14:02:01 +0000 (15:02 +0100)]
mobile quarantine: properly style main logo

the main logo, presented when logging in, was previously not styled
correctly an consequently did not have enough contrast with the
background.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agoquarantines: add support for a theme toggle
Stefan Sterz [Thu, 9 Mar 2023 08:01:41 +0000 (09:01 +0100)]
quarantines: add support for a theme toggle

this allows toggling the presentation of the email previews depending
on the current theme. in the default "light" mode the toggle is hidden
to avoid clutter. enable the toggle in other themes to allow switching
back to the original way the email was rendered.

this requires a bump of the widget toolkit. the toolkit provides the
styles necessary for the toggle to work.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agomobile quarantine: add dark theme support to the mobile quarantine
Stefan Sterz [Thu, 9 Mar 2023 08:01:26 +0000 (09:01 +0100)]
mobile quarantine: add dark theme support to the mobile quarantine

enable the `autoDarkTheme` option for the mobile quarantine and add
minimal styling to correct the look of the logo and the mail preview
rendering. this makes the quarantine behave like the "auto" theme of
the main gui, it will change it's theme depending on a media query.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agohourly mail distribution chart: add dynamic color switching
Stefan Sterz [Thu, 9 Mar 2023 08:01:16 +0000 (09:01 +0100)]
hourly mail distribution chart: add dynamic color switching

add support for switching the colors of the hourly mail distribution
chart based on css variables.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agosubscription: remove hard-coded white background
Stefan Sterz [Thu, 9 Mar 2023 08:01:05 +0000 (09:01 +0100)]
subscription: remove hard-coded white background

setting the background color in js code adds that property as a style
attribute to the element. that makes it hard to alter later via css
and makes it hard to dynamically change the color e.g. if we want to
add different themes. the background color for this element is white
already anyway, so just remove them here.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agospam-info-grid: style the spam info grid via css variables
Stefan Sterz [Thu, 9 Mar 2023 08:00:48 +0000 (09:00 +0100)]
spam-info-grid: style the spam info grid via css variables

by using css variables for the colored grid items in the spam info
grid, changing these colors based on media queries etc. is possible.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
20 months agomainview/quarantine: add theme switcher
Stefan Sterz [Thu, 9 Mar 2023 08:00:36 +0000 (09:00 +0100)]
mainview/quarantine: add theme switcher

adds a theme switcher to the main view and quarantine so that users
can choose a theme.

this requires a bump to the widget toolkit so the necessary widget are
present.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
21 months agodashboard: fix untranslated use of "Subscription"
Thomas Lamprecht [Mon, 23 Jan 2023 07:53:15 +0000 (08:53 +0100)]
dashboard: fix untranslated use of "Subscription"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agobump version to 3.2-2
Thomas Lamprecht [Tue, 29 Nov 2022 16:38:10 +0000 (17:38 +0100)]
bump version to 3.2-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoquarantine list: cope with undefined mail value
Thomas Lamprecht [Tue, 29 Nov 2022 16:36:11 +0000 (17:36 +0100)]
quarantine list: cope with undefined mail value

can be (temporarily) null for some selections

Fixes: cd0b3ff ("quarantines: mail filter: add clear trigger")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agobump version to 3.2-1
Thomas Lamprecht [Tue, 29 Nov 2022 14:50:21 +0000 (15:50 +0100)]
bump version to 3.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agouserblocklists: use PMGMail as validator for pmail
Stoiko Ivanov [Wed, 23 Nov 2022 09:23:36 +0000 (10:23 +0100)]
userblocklists: use PMGMail as validator for pmail

to be able to add addresses to the lists for non-ascii-addresses

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
23 months agoutils: add custom validator for pmg-email-address
Stoiko Ivanov [Wed, 23 Nov 2022 09:23:35 +0000 (10:23 +0100)]
utils: add custom validator for pmg-email-address

matching the pattern in the backend (allowing most characters inside
of e-mail addresses.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
23 months agoquarantine list: code reduction
Thomas Lamprecht [Fri, 25 Nov 2022 14:25:57 +0000 (15:25 +0100)]
quarantine list: code reduction

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoquarantines: mail filter: add clear trigger
Thomas Lamprecht [Fri, 25 Nov 2022 14:02:25 +0000 (15:02 +0100)]
quarantines: mail filter: add clear trigger

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agofix #3287: add recipient filter for virus & attachment quarantines
Dominik Csapak [Wed, 23 Nov 2022 14:52:22 +0000 (15:52 +0100)]
fix #3287: add recipient filter for virus & attachment quarantines

So that users can filter these quarantine views, e.g. useful if they
have many mails there.

Replaced the emailSelection config with a quarantineType configs
since we want to have different behaviour for different quaratine
types. E.g., we want to show 'all' mails by default for the
virus/attachment quarantine, but not for the spam one.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.1-6
Thomas Lamprecht [Fri, 11 Nov 2022 17:48:36 +0000 (18:48 +0100)]
bump version to 3.1-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoattachment grid: show all parts: fix title-casing in label
Thomas Lamprecht [Fri, 11 Nov 2022 17:40:00 +0000 (18:40 +0100)]
attachment grid: show all parts: fix title-casing in label

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoattachment grid: move all-parts controls to tbar, transform back to collapsible title
Thomas Lamprecht [Fri, 11 Nov 2022 17:37:26 +0000 (18:37 +0100)]
attachment grid: move all-parts controls to tbar, transform back to collapsible title

just better ergonomics and I don't think a lot of people will care
about the parts list, especially if the raw email is already visible
anyway.

Also note that while yes, the content-disposition is user
controllable, most (all?) MUAs only show it if set so even
spammers/attackers have it in their interest to set it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoattachment grid: simply filter to avoid code bloat
Thomas Lamprecht [Fri, 11 Nov 2022 17:35:42 +0000 (18:35 +0100)]
attachment grid: simply filter to avoid code bloat

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoattachment grid: default to filtering by content-disposition
Dominik Csapak [Mon, 7 Nov 2022 14:36:20 +0000 (15:36 +0100)]
attachment grid: default to filtering by content-disposition

Normally, attachments are given the 'content-disposition: attachment'
mime attribute, so we use that to filter the attachments.

But since we're dealing with spam & virus mails here, and that field
is client controlled, give the user a way to toggle the remaining parts
of the mail too.

Added the checkbox in the header part, but that made it necessary to
manually implement the expand/collapse toggle (since the tools are on
the wrong side of the default toggle)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoattachment grid: fix typo in title
Dominik Csapak [Mon, 7 Nov 2022 14:36:19 +0000 (15:36 +0100)]
attachment grid: fix typo in title

s/Attachements/Attachments/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agospam quarantine controller: fix args when calling the parent multiSelect
Thomas Lamprecht [Mon, 7 Nov 2022 12:09:33 +0000 (13:09 +0100)]
spam quarantine controller: fix args when calling the parent multiSelect

arguments needs to be an array, often we call with all of ours, iow.
using `arguments` which itself is an array already.

Both, manual construction and just a passing `arguments` have their
advantage and disadvantage, e.g., if either the inheriting or
bequesting class becomes more specialized, but most of the time using
`arguments` is more future proof.

Fixes: e66c888 ("quarantine: refactor spamquarantine controller")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agorenderer: s/format_size/render_size/
Thomas Lamprecht [Mon, 7 Nov 2022 11:42:05 +0000 (12:42 +0100)]
renderer: s/format_size/render_size/

format_size is the "lower" level helper and is not fit (anymore) to
be set as renderer directly, as its parameter signature may clash
with the extra, different ones, that renderers get passed.

For example, the useSI param always gets evaluated as true due to
the metaData "truthy" value that calls to a renderer get passed along
most of the time.

Use the render_size instead, a wrapper which only passes along value
to format_size.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantine: attachement info: show count & total size summary in header
Thomas Lamprecht [Mon, 7 Nov 2022 12:08:37 +0000 (13:08 +0100)]
quarantine: attachement info: show count & total size summary in header

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantines: dock attachement grid to bottom, avoid toggle button
Thomas Lamprecht [Mon, 7 Nov 2022 11:25:23 +0000 (12:25 +0100)]
quarantines: dock attachement grid to bottom, avoid toggle button

A separate header and docked at the bottom reduces crowding at the
top and make the whole view(s) a bit clearer.

This also better mirrors where most mail clients show attachments
(e.g., thunderbird) and allows to avoid the extra button (UX benefits
most of the time from reduced inputs, if it doesn't takes away
features).

Make the panel collapsible for the spam and virus quarantine, and
hide the download button there; note that this isn't done for
security purpose but just wasn't requested and some users may do
better if they only decide deliver/delete here and let their MUA
handle attachements.

Disable collapsing in the Attachement quarantine, it doesn't really
makes sense there and we got a maxHeight already anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoattachement grid: set configs used on all use-sites as defaults
Thomas Lamprecht [Mon, 7 Nov 2022 07:10:26 +0000 (08:10 +0100)]
attachement grid: set configs used on all use-sites as defaults

avoid overly repetition, we can still override them if we get a use
site that really requires different values here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantines: add attachment grid to spam and virus quarantine
Dominik Csapak [Fri, 4 Nov 2022 15:04:22 +0000 (16:04 +0100)]
quarantines: add attachment grid to spam and virus quarantine

So that admins can easily see which attachments exist for a mail,
without parsing the 'raw' mail content. Disable the download button
for these quarantines though, since it should not be necessary
to download the attachments for these.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agofix #2533: quarantine: add overflowHandler to the preview panel
Dominik Csapak [Fri, 4 Nov 2022 15:04:25 +0000 (16:04 +0100)]
fix #2533: quarantine: add overflowHandler to the preview panel

so that the menu can be used even on narrower screens

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoquarantine: improve borders for docked items
Dominik Csapak [Fri, 4 Nov 2022 15:04:24 +0000 (16:04 +0100)]
quarantine: improve borders for docked items

one cannot set the different borders seperately in panels/grids and
docked items don't have a bottom border in extjs, but we want to remove
all borders except the ones between the toolbar and the grids/content
below that.

to achieve that, set a custom 'border-bottom-width' with '!important'
(extjs has a rule with !important as well) for the toolbar, and
everywhere else remove the border.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agospam info grid: use 1:2 flex ratio between rule name and description
Thomas Lamprecht [Mon, 7 Nov 2022 08:42:42 +0000 (09:42 +0100)]
spam info grid: use 1:2 flex ratio between rule name and description

The rule names ain't _that_ long and it looks a bit better if name
and value are closer together

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agospam info grid: code cleanups
Thomas Lamprecht [Mon, 7 Nov 2022 08:41:18 +0000 (09:41 +0100)]
spam info grid: code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agospam info grid: use monospace font for score and level names
Thomas Lamprecht [Mon, 7 Nov 2022 08:38:39 +0000 (09:38 +0100)]
spam info grid: use monospace font for score and level names

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agospam info grid: add score depending background colors gradations
Thomas Lamprecht [Mon, 7 Nov 2022 08:36:45 +0000 (09:36 +0100)]
spam info grid: add score depending background colors gradations

based on the color of the recent patch add a darker and lighter level
for both, good and bad.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agospam info grid: sort by score by default
Thomas Lamprecht [Mon, 7 Nov 2022 07:12:13 +0000 (08:12 +0100)]
spam info grid: sort by score by default

useful to have the levels sorted by their impact

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #4238: spam info grid: enable sorting & add colors for spam score
Dominik Csapak [Fri, 4 Nov 2022 15:04:23 +0000 (16:04 +0100)]
fix #4238: spam info grid: enable sorting & add colors for spam score

sorting the matching spam rules, e.g. by score, makes it easier to see
which rules have more weight in determining spam.

Additionally, color code the scores with colors akin to the rationale
in commit:
365f84c ("quarantines: color code deliver and delete buttons")

(red for positive spam scores, blue for negative ones)

and increase the font-weight for large spamscore contributing rules.

i chose a different blue tone that is more muted than what we use in
'info-blue' but is different from both the 'hover' color and the
'selected' color

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoquarantine controller: drop specialized classes, check at runtime instead
Dominik Csapak [Fri, 4 Nov 2022 15:04:21 +0000 (16:04 +0100)]
quarantine controller: drop specialized classes, check at runtime instead

By making use of the optional chaining operator, we don't need to
override the 'onSelectMail' in both the attachment quarantine and the
spam quarantine. Instead, we opportunistically call lookup(id)?.setID
in the common handler for both, the attachments and the spaminfo
references.

As that was the single change from the parent class we can now drop
the specialized controller classes.

While at it, remove the stray 'xtype' property of the quarantine
controller, which make only sense for component derived classes.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [T: fix typos and reword message a bit]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.1-5
Thomas Lamprecht [Fri, 28 Oct 2022 09:50:03 +0000 (11:50 +0200)]
bump version to 3.1-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantine: use new controller for virus and attachment quarantines
Stoiko Ivanov [Thu, 27 Oct 2022 19:12:58 +0000 (21:12 +0200)]
quarantine: use new controller for virus and attachment quarantines

fixes #1674 (the comment about multiselect for the virus quarantine)
fixes #3947 (multiselect for attachment quarantine)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agoquarantine: refactor spamquarantine controller
Stoiko Ivanov [Thu, 27 Oct 2022 19:12:57 +0000 (21:12 +0200)]
quarantine: refactor spamquarantine controller

over the time the spam quarantine has gained quite a few nice
usability improvments and features, which would be useful in
the virus and attachment quarantines as well - e.g.:

* multi-mail selection
* keyboard actions
* context menu
* download mail as .eml

this patch splits the controller part into a file of its own, while changing
'var' to 'let' and removing the parts only relevant for the spamquarantine
and adapts the current SpamQuarantine.js to use it.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agofix color coding mistake for one context menu
Thomas Lamprecht [Fri, 28 Oct 2022 05:46:19 +0000 (07:46 +0200)]
fix color coding mistake for one context menu

left over from initially trying out different stuff

meh, would be a lot simpler if there weren't a 5 copies or so from
that stuff.

Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantines: color code deliver and delete buttons
Thomas Lamprecht [Sat, 22 Oct 2022 14:16:39 +0000 (16:16 +0200)]
quarantines: color code deliver and delete buttons

In some languages, e.g. widely used English, "Delete" and "Deliver"
are looking rather similar without too much eye squinting required.

Add an accent on their icons using for, at least in the western
hemisphere, the respective associated color, like red for trash can.
To 1) avoid to much messing with those cultures that got it switched
and 2) some more common color blindness use blue for the delivery
button, just to make it stand out.

Keep the white/black list as is, as such accents work best if not
everything uses them, i.e., so that they more common options actually
stand out.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantine grids: use arrow function for size renderer
Thomas Lamprecht [Sat, 22 Oct 2022 14:13:46 +0000 (16:13 +0200)]
quarantine grids: use arrow function for size renderer

quicker to read and avoids "violating" style guide due to on-line
normal functions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantine: subject/sender: refactor/code-style-fix render functions
Thomas Lamprecht [Sat, 22 Oct 2022 14:12:16 +0000 (16:12 +0200)]
quarantine: subject/sender: refactor/code-style-fix render functions

extends on the improvements from the previous commit, reduces code
lines while (hopefully, as slightly subjective) not reducing
readability

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoquarantine: contextmenu: refactor for use in other quarantines
Stoiko Ivanov [Thu, 20 Oct 2022 19:14:58 +0000 (21:14 +0200)]
quarantine: contextmenu: refactor for use in other quarantines

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agofix #4137: display receiver in attachment/virus quarantine
Stoiko Ivanov [Thu, 20 Oct 2022 19:14:57 +0000 (21:14 +0200)]
fix #4137: display receiver in attachment/virus quarantine

the attachment and virus quarantines contain all quarantined mail for
all recipients - so we should display which mail is being
delivered/deleted - mostly if a mail is sent to multiple addresses
served by the same PMG.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agonode certificate: make parent panel scrollable
Dominik Csapak [Tue, 11 Oct 2022 09:23:28 +0000 (11:23 +0200)]
node certificate: make parent panel scrollable

The `ACME` panel may be rendered out of sight (overflow) when there
are enough SANs on the upper `Certificates` panel to push it down
enough and the browser/display height is too small.

Enable the `scrollable` config for the parent certificate view panel
in the y-axis (vertical) to make ExtJS automatically add a scrollbar
if the content overflows. Avoid enabling it for the x-axis too as
that breaks reflow of the layout if the browser window gets resized.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [T: fix commit message to one from manager]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoStatTimeSelector: don't show invalid month/day combinations
Dominik Csapak [Fri, 1 Jul 2022 11:42:00 +0000 (13:42 +0200)]
StatTimeSelector: don't show invalid month/day combinations

by limiting the store of the day selector by the selected month

reported by a user in the forum:
https://forum.proxmox.com/threads/wrong-calendar.111631/

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agomobile: set button color in mail view similar to quarantine list
Thomas Lamprecht [Thu, 22 Sep 2022 07:31:52 +0000 (09:31 +0200)]
mobile: set button color in mail view similar to quarantine list

To have a visual feedback about the actions, similar to the swipe
buttons in the quarantine list view. Single difference is that the
default color is grey for swipe buttons and blue for the "normal"
ones, so the whitelist one got different colors, but each fit in
their context somewhat...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.1-4
Thomas Lamprecht [Thu, 22 Sep 2022 06:56:34 +0000 (08:56 +0200)]
bump version to 3.1-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agomobile: fix subscription check
Dominik Csapak [Thu, 22 Sep 2022 06:52:46 +0000 (08:52 +0200)]
mobile: fix subscription check

the change to the rust based subscription code change the case of the
status field, so do the same change as in the desktop ui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.1-3
Thomas Lamprecht [Mon, 16 May 2022 10:23:40 +0000 (12:23 +0200)]
bump version to 3.1-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoui: pbs remote: use proxmoxtextfield for password edit xtype again
Thomas Lamprecht [Mon, 16 May 2022 10:17:01 +0000 (12:17 +0200)]
ui: pbs remote: use proxmoxtextfield for password edit xtype again

to get back the skipEmptyText option

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoobject editors: rework so that default label width fits everywhere
Thomas Lamprecht [Sat, 14 May 2022 15:58:04 +0000 (17:58 +0200)]
object editors: rework so that default label width fits everywhere

mostly by s/Regular Expression/Regex/ and transforming some
checkboxes' fieldLabel into boxLabels

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoregex tester: make textfield flex to take all remaining space
Thomas Lamprecht [Sat, 14 May 2022 15:57:11 +0000 (17:57 +0200)]
regex tester: make textfield flex to take all remaining space

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopbs remote: add namespace support
Thomas Lamprecht [Sat, 14 May 2022 15:36:23 +0000 (17:36 +0200)]
pbs remote: add namespace support

restructure the existing field positions a bit to make it more
balanced with the new NS field.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopbs remote: disallow editing fixed fields
Thomas Lamprecht [Sat, 14 May 2022 15:26:51 +0000 (17:26 +0200)]
pbs remote: disallow editing fixed fields

similar in spirit of PVE's storage entries for PBS, changing those
after create can make backups disappear and just shouldn't be done,
user should add a new remote instead.

Same for user name, changing it will make backup almost definitively
fail the owner check, so only keep the password field, for PW
rotations (we should disable it for tokens though).

For UX it's better to check if params are correct and the repo is
accessible on create and to add scan datastore and namespace
endpoints to allow a friendlier selection of those, avoiding typos.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoutils: code cleanup
Thomas Lamprecht [Thu, 17 Feb 2022 08:35:46 +0000 (09:35 +0100)]
utils: code cleanup

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