]> git.proxmox.com Git - pmg-gui.git/log
pmg-gui.git
6 weeks agogitignore: add rules for dpkg build artifacts master
Christoph Heiss [Mon, 30 Sep 2024 15:25:02 +0000 (17:25 +0200)]
gitignore: add rules for dpkg build artifacts

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
[S.I] add pmg-gui_[0-9]* to catch source-packages
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 months agoutils: fix typo in default notification body
Stoiko Ivanov [Thu, 29 Aug 2024 12:14:52 +0000 (14:14 +0200)]
utils: fix typo in default notification body

reported in our community forum:
https://forum.proxmox.com/threads/.153492/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
6 months agofix #5251: login: set autocomplete on password and user
Maximiliano Sandoval [Mon, 19 Feb 2024 10:37:06 +0000 (11:37 +0100)]
fix #5251: login: set autocomplete on password and user

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
8 months agoui: trim whitespaces when adding a subscription key
Stefan Sterz [Fri, 1 Mar 2024 09:54:30 +0000 (10:54 +0100)]
ui: trim whitespaces when adding a subscription key

users that add the correct subscription key just get unnecessarily
confused with a "value does not match the regex pattern" error if
they accidentally have a stray whitespace at the end or beginning
otherwise.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
8 months agodkim settings: improve label for signing domain source selection
Thomas Lamprecht [Wed, 28 Feb 2024 10:09:29 +0000 (11:09 +0100)]
dkim settings: improve label for signing domain source selection

And make the renderer be less noise w.r.t. coding style while at it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobump version to 4.1.1
Thomas Lamprecht [Tue, 27 Feb 2024 14:57:51 +0000 (15:57 +0100)]
bump version to 4.1.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodashboard: implement columns browser setting
Dominik Csapak [Tue, 27 Feb 2024 10:38:25 +0000 (11:38 +0100)]
dashboard: implement columns browser setting

like we do it e.g. for the node status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 months agouser management: separate add/create and edit/remove buttons
Thomas Lamprecht [Tue, 27 Feb 2024 13:58:23 +0000 (14:58 +0100)]
user management: separate add/create and edit/remove buttons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agospam detector: custom rules: move apply/revert buttons to pending section
Thomas Lamprecht [Tue, 27 Feb 2024 13:41:31 +0000 (14:41 +0100)]
spam detector: custom rules: move apply/revert buttons to pending section

Move the buttons for applying or reverting pending changes into the
top bar of the pending changes diff panel, as then they are closer to
what they control and also only shown when relevant.

Drop the odd hint w.r.t. restarting pmg-smtp-filter from the top-bar,
as we can convey that better in the prompt, where there is already a
check-box that defaults to restarting that service.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agospam detector: custom rules: consitent add/edit/remove button & modernization
Thomas Lamprecht [Tue, 27 Feb 2024 13:41:17 +0000 (14:41 +0100)]
spam detector: custom rules: consitent add/edit/remove button & modernization

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agomail proxy: networks: consitent add/edit/remove button & modernization
Thomas Lamprecht [Tue, 27 Feb 2024 12:55:47 +0000 (13:55 +0100)]
mail proxy: networks: consitent add/edit/remove button & modernization

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agomail proxy: transports: consitent add/edit/remove button
Thomas Lamprecht [Tue, 27 Feb 2024 12:47:44 +0000 (13:47 +0100)]
mail proxy: transports: consitent add/edit/remove button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agomail proxy: relay domains: consitent add/edit/remove button
Thomas Lamprecht [Tue, 27 Feb 2024 12:47:28 +0000 (13:47 +0100)]
mail proxy: relay domains: consitent add/edit/remove button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agomail proxy: tls destinations: consitent add/edit/remove button
Thomas Lamprecht [Tue, 27 Feb 2024 12:47:06 +0000 (13:47 +0100)]
mail proxy: tls destinations: consitent add/edit/remove button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoobject groups: consistent add/edit/remove button
Thomas Lamprecht [Tue, 27 Feb 2024 11:36:22 +0000 (12:36 +0100)]
object groups: consistent add/edit/remove button

Group and separate the actions that create or add new elements from
the ones that edit or remove exiting ones.

Throw in some slight refactoring and code modernization while at it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agoobjects: add separator between match field selector and description
Dominik Csapak [Tue, 27 Feb 2024 08:53:15 +0000 (09:53 +0100)]
objects: add separator between match field selector and description

Make it easier to see that match-field selector and its description
are separate. For that we have to make the top level docked item a
'toolbar'.

Reported-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 months agoutils: anchor regex expression
Maximiliano Sandoval [Mon, 26 Feb 2024 15:32:46 +0000 (16:32 +0100)]
utils: anchor regex expression

Without anchoring this would match for example `a@b/c`.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
8 months agod/copyright: update years
Thomas Lamprecht [Mon, 26 Feb 2024 19:34:27 +0000 (20:34 +0100)]
d/copyright: update years

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobump version to 4.1.0
Thomas Lamprecht [Mon, 26 Feb 2024 19:33:53 +0000 (20:33 +0100)]
bump version to 4.1.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodashboard: show ten of the current top receiver
Thomas Lamprecht [Mon, 26 Feb 2024 16:16:30 +0000 (17:16 +0100)]
dashboard: show ten of the current top receiver

not only five, as with the higher panels we already got enough space,
as one row needs roughly 24 px, lower top/bottom padding a bit to get
~242 of space, fitting ten entries nicely.

The performance aspect should not matter much, getting five or ten
entries from a DB like PostgreSQL is really not costing much,
especially as with the count query in use the hard work has already
been done anyway.

Makes the top-receiver panel look a bit more coherent compared to the
node info one beside it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodashboard: increase height of node-info and top-receiver panel to 300
Thomas Lamprecht [Mon, 26 Feb 2024 16:02:23 +0000 (17:02 +0100)]
dashboard: increase height of node-info and top-receiver panel to 300

Now that the node info one got another row we can use a bit more space
to avoid that it feels to crammed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodashboard: show boot-mode information
Thomas Lamprecht [Mon, 26 Feb 2024 15:19:16 +0000 (16:19 +0100)]
dashboard: show boot-mode information

Add a extra row for showing the current boot mode, for that we need to
grow the height of the status panel and graphs to have enough space
again.

Mirrors commit 1f1d8bf3 ("ui: node summary: add boot-mode
information") from pve-manager.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodashboard: reduce noise in current kernel version
Thomas Lamprecht [Mon, 26 Feb 2024 15:17:10 +0000 (16:17 +0100)]
dashboard: reduce noise in current kernel version

use the new 'current-kernel' object returned by the node status API to
render a more usable (less noise) version information.

Keep fallback for old one to better work with upgrades (major and
minor) to this version in a cluster, where the web UI one uses might
be the new one, but a node one looks at still have the old API daemon.

Mirrors commit be04f8ee ("ui: node summary: reduce noise in current
kernel version") and commit 4fb7e9e4 ("fix #5121: ui: node status:
avoid invalid array access for certain foreign kernels") from
pve-manager.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agofix #2971: DKIM: add gui setting to use From header when signing
Maximiliano Sandoval [Fri, 23 Feb 2024 12:52:00 +0000 (13:52 +0100)]
fix #2971: DKIM: add gui setting to use From header when signing

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
8 months agobump version to 4.0.4
Thomas Lamprecht [Thu, 22 Feb 2024 16:32:43 +0000 (17:32 +0100)]
bump version to 4.0.4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodisclaimer edit: add 'add-separator' checkbox
Dominik Csapak [Mon, 15 Jan 2024 11:12:41 +0000 (12:12 +0100)]
disclaimer edit: add 'add-separator' checkbox

for controlling if the separator should be included or not, default is
on (backend default).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ TL: explicitly submit unchecked value ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agodisclaimer edit: add position comobobox
Dominik Csapak [Mon, 15 Jan 2024 11:12:40 +0000 (12:12 +0100)]
disclaimer edit: add position comobobox

to enable setting the disclaimer position

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 months agoobjects: use font-weight for bold text
Dominik Csapak [Thu, 22 Feb 2024 14:29:41 +0000 (15:29 +0100)]
objects: use font-weight for bold text

mdn[0] recommends using `font-weight: bold;` for making the text actually bold
While it has the same effect often, it depends on the font and browser
if the font is rendered bold in a <b> tag.

0: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 months agoobjects: don't reload on match mode change
Dominik Csapak [Thu, 22 Feb 2024 09:14:20 +0000 (10:14 +0100)]
objects: don't reload on match mode change

instead update the record of the object list, and update the
visibility of the 'whatWarning'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agorules/objects: add mode selector dropdown
Dominik Csapak [Thu, 22 Feb 2024 09:14:19 +0000 (10:14 +0100)]
rules/objects: add mode selector dropdown

for objects and object types in rules. We add a simple dropdown for
the 'and' and 'invert' flags, to be somewhat consistent with the
notification matchers from pve and to make the wording more clear than
simple and/invert.

For What matches add a special warning hint, since that behaves a bit
special because of the mail parts.

When the mode changes for an object group, we reload the list of
objects since that holds the info about the attributes, so to avoid
having to keep track in the gui which field changed on the group, we
simply reload the list with the current information.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agorules: use tree panel instead of grouping feature of the grid
Dominik Csapak [Thu, 22 Feb 2024 09:14:18 +0000 (10:14 +0100)]
rules: use tree panel instead of grouping feature of the grid

just in preparation for adding a column for the groups
will look similar (though not identical) to before, but this makes
the groups now real entries in the grid, which means we can have
content in additional columns

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
8 months agoform: filter field: code cleanups
Thomas Lamprecht [Wed, 21 Feb 2024 17:05:14 +0000 (18:05 +0100)]
form: filter field: code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agofix #4510: add filter box to many grids
Dominik Csapak [Wed, 21 Feb 2024 14:47:44 +0000 (15:47 +0100)]
fix #4510: add filter box to many grids

namely relay domains, transports, trusted networks, smtp whitelist +
when/what/who object grids.

Adds a new 'FilterField', that takes a store and a list of columns to
filter, and filters on every change.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
9 months agofix #4818: Revert "UserEdit: add minLength of 4 to username field"
Maximiliano Sandoval [Tue, 5 Sep 2023 12:54:44 +0000 (14:54 +0200)]
fix #4818: Revert "UserEdit: add minLength of 4 to username field"

So we match pmg-api.

This reverts commit 40ced6648d6b94b32a0a0a957b4c9c7c2927a721.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
11 months agobump version to 4.0.3
Fabian Grünbichler [Wed, 20 Dec 2023 10:00:43 +0000 (11:00 +0100)]
bump version to 4.0.3

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
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>