Commit Graph

739 Commits

Author SHA1 Message Date
Maximiliano Sandoval
600beed3e1 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>
2023-12-15 16:12:24 +01:00
Maximiliano Sandoval
2ac7772ba8 mail-proxy-relaying: format function arguments
In the next commit we add a new parameter.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2023-12-15 16:12:24 +01:00
Maximiliano Sandoval
6fb7df06cc 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>
2023-12-15 16:07:51 +01:00
Maximiliano Sandoval
d2d9df1ab0 gui: Mark missing strings as translatable
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2023-12-15 16:07:42 +01:00
Christian Ebner
2142eeff5d 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
2023-12-15 15:57:19 +01:00
Christian Ebner
8a18503f2e 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 6f3f8ac5cc.
2023-11-14 16:47:15 +01:00
Maximiliano Sandoval
b9f0d5afde 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>
2023-09-07 08:12:22 +02:00
Christian Ebner
891bd7f17b utils: fix typo in url
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2023-08-11 17:22:12 +02:00
Dominik Csapak
c3209035f1 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>
2023-07-18 13:08:45 +02:00
Thomas Lamprecht
ff37520d40 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>
2023-06-28 11:32:51 +02:00
Wolfgang Bumiller
1533ccff90 add Unlock TFA button
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-28 09:56:24 +02:00
Wolfgang Bumiller
4195a80923 show TFA lock status in user view
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-28 09:53:22 +02:00
Dominik Csapak
6f3f8ac5cc 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>
2023-06-27 13:39:05 +02:00
Dominik Csapak
5b69816594 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>
2023-06-26 15:27:08 +02:00
Dominik Csapak
0f9f1f7917 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>
2023-06-26 15:27:08 +02:00
Stoiko Ivanov
1f493dfd54 buildsys: makefiles convert to use simple parenthesis
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2023-06-19 20:48:00 +02:00
Thomas Lamprecht
c5123f4bce tfa: avoid trailing space on WebAuthn
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-14 15:15:57 +02:00
Leo Nunner
df2a647a72 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>
2023-05-17 12:01:35 +02:00
Stefan Sterz
0b525fba79 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>
2023-05-17 11:53:08 +02:00
Stoiko Ivanov
476088ee0b spamdetector: add extract_text option
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2023-03-27 19:54:48 +02:00
Stefan Sterz
e950ec7202 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>
2023-03-23 17:19:12 +01:00
Stefan Sterz
aa557e8068 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>
2023-03-23 17:19:12 +01:00
Thomas Lamprecht
84af81e3dc api: use readable casing for tls-inbound-domains endpoint
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-21 10:23:40 +01:00
Christoph Heiss
45156282eb 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>
2023-03-20 19:43:40 +01:00
Stefan Sterz
9bcb553cfb 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>
2023-03-15 15:38:54 +01:00
Stefan Sterz
c7c07a82cc 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>
2023-03-15 15:38:54 +01:00
Stefan Sterz
8ede2bd41c 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>
2023-03-15 15:38:54 +01:00
Stefan Sterz
25c72be0dc 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>
2023-03-15 15:38:54 +01:00
Stefan Sterz
926bfe7a89 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>
2023-03-15 15:38:54 +01:00
Stefan Sterz
4685066c73 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>
2023-03-15 15:38:54 +01:00
Thomas Lamprecht
f334aeb05a dashboard: fix untranslated use of "Subscription"
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-23 08:53:15 +01:00
Thomas Lamprecht
5b920c359e 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>
2022-11-29 17:36:13 +01:00
Stoiko Ivanov
2797743ed4 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>
2022-11-25 15:26:38 +01:00
Stoiko Ivanov
845efd4177 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>
2022-11-25 15:26:38 +01:00
Thomas Lamprecht
ea785e3f7b quarantine list: code reduction
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-25 15:25:57 +01:00
Thomas Lamprecht
cd0b3ffca8 quarantines: mail filter: add clear trigger
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-25 15:25:41 +01:00
Dominik Csapak
c03e51ed3a 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>
2022-11-25 13:31:19 +01:00
Thomas Lamprecht
0bd715f10d attachment grid: show all parts: fix title-casing in label
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-11 18:41:08 +01:00
Thomas Lamprecht
57be3ef355 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>
2022-11-11 18:41:08 +01:00
Thomas Lamprecht
17589a84b2 attachment grid: simply filter to avoid code bloat
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-11 18:41:08 +01:00
Dominik Csapak
db3264f2ee 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>
2022-11-11 18:40:39 +01:00
Dominik Csapak
86c2fdb6c3 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>
2022-11-07 16:53:57 +01:00
Thomas Lamprecht
ba1a55b775 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>
2022-11-07 13:16:51 +01:00
Thomas Lamprecht
ff23b1b37b 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>
2022-11-07 13:16:51 +01:00
Thomas Lamprecht
550ec9a812 quarantine: attachement info: show count & total size summary in header
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 13:16:51 +01:00
Thomas Lamprecht
38229fc877 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>
2022-11-07 13:16:51 +01:00
Thomas Lamprecht
ecab0d0e3e 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>
2022-11-07 09:46:31 +01:00
Dominik Csapak
1a96ec322b 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>
2022-11-07 09:46:31 +01:00
Dominik Csapak
991d5ec23d 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>
2022-11-07 09:46:31 +01:00
Dominik Csapak
4e356bcded 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>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
63e00678b8 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>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
773489e36e spam info grid: code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
ba8894541d spam info grid: use monospace font for score and level names
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
146c46f002 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>
2022-11-07 09:46:31 +01:00
Thomas Lamprecht
282b960b59 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>
2022-11-07 09:46:31 +01:00
Dominik Csapak
d5aca48ee0 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>
2022-11-07 09:46:31 +01:00
Dominik Csapak
c7a679755e 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>
2022-11-05 16:33:28 +01:00
Stoiko Ivanov
8fb8931b63 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>
2022-10-28 11:30:23 +02:00
Stoiko Ivanov
e66c888b86 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>
2022-10-28 11:30:23 +02:00
Thomas Lamprecht
ce7acf1733 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>
2022-10-28 07:46:21 +02:00
Thomas Lamprecht
365f84c19b 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>
2022-10-22 16:16:41 +02:00
Thomas Lamprecht
2cc13fbc8a 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>
2022-10-22 16:14:23 +02:00
Thomas Lamprecht
cd15075876 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>
2022-10-22 16:12:25 +02:00
Stoiko Ivanov
f57a60be2b quarantine: contextmenu: refactor for use in other quarantines
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-10-21 09:28:21 +02:00
Stoiko Ivanov
ab606ffb7f 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>
2022-10-21 09:28:21 +02:00
Dominik Csapak
bfe027027f 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>
2022-10-11 11:31:02 +02:00
Dominik Csapak
c4d58b0391 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>
2022-10-04 13:46:44 +02:00
Thomas Lamprecht
1cb64301e6 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>
2022-09-22 09:31:55 +02:00
Dominik Csapak
851cb02605 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>
2022-09-22 08:52:46 +02:00
Thomas Lamprecht
967de4e4c7 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>
2022-05-16 12:17:04 +02:00
Thomas Lamprecht
deba42e70d 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>
2022-05-14 17:58:06 +02:00
Thomas Lamprecht
8db2abc20b regex tester: make textfield flex to take all remaining space
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-05-14 17:57:11 +02:00
Thomas Lamprecht
b2aaec4077 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>
2022-05-14 17:36:25 +02:00
Thomas Lamprecht
4f106fcf05 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>
2022-05-14 17:36:09 +02:00
Thomas Lamprecht
a4c22f9dd3 utils: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-17 09:35:46 +01:00
Fabian Ebner
18722987b5 sorters: use correct property 'direction' and keep default 'ASC'
Ext.util.Sorter does not have an 'order' property, so 'order: DESC'
didn't have an effect. The default is 'ASC' and it is arguably the
preferred direction for all affected sorters anyways.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-02-03 11:29:08 +01:00
Thomas Lamprecht
12359425a9 mail header view: code reduction
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-03 11:28:16 +01:00
Thomas Lamprecht
86a5319246 mail header view: switch toggle-raw button to check box and move into panel
Allows an user to actually see what the current state is and wastes
less space for the actual header view.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-03 10:44:42 +01:00
Dominik Csapak
9f5e96dfb5 postfix queues: show decoded headers by default
and add a toggle button to show the raw headers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-02-03 10:21:50 +01:00
Thomas Lamprecht
135cddbbde mail info: move receiver to top right
tying to meake better use of empty space

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-03 10:20:18 +01:00
Dominik Csapak
cf3e0888f3 rename recipient to receiver
we always call it receiver, not recipient, saves us a translation string

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-21 09:38:43 +01:00
Stoiko Ivanov
66a4f9d23c quarantine: mail display: show receiver information
Showing the sender and subject is sufficient in the case of the
spam-quarantine - when viewed by a single user.

If an admin views any of the quarantines the information of the
recipient should be helpful in general, but is needed in case a mail
was sent to multiple recipients.

Reported in our community forum:
https://forum.proxmox.com/threads/.103276/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-01-21 09:34:00 +01:00
Thomas Lamprecht
704d4b875a tfa: add webauthn config panel
keep it simple and avoid an extra options panel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-28 21:19:35 +01:00
Thomas Lamprecht
480a156958 tfa: set issuer name to something more telling
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-28 20:31:07 +01:00
Thomas Lamprecht
6ba2d1cad9 tfa: move tab-panel besides User one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-28 20:23:19 +01:00
Wolfgang Bumiller
77854c16c1 add TFA components
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 20:17:47 +01:00
Dominik Csapak
b27d3f1d15 fix #3648: ldap config: do not send empty bindpw
so that we can reuse the saved one and the admin does not have
to enter the password on each config change (similar to PVE).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-10-28 22:17:20 +02:00
Dominik Csapak
7058cddb63 fix #3565: fix typo in gettext
s/orignal/original/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-08-09 17:36:12 +02:00
Fabian Ebner
48e230790e dashboard: node status: use repo status widget from widget-toolkit
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-07-28 10:25:39 +02:00
Fabian Ebner
a0a5f5cfcb dashboard: node info: use local subscription status only
instead of the cluster-wide status.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-07-28 10:25:39 +02:00
Thomas Lamprecht
44362902f3 utils: align notification toast to bottom-right again
The default changed sometimes between ExtJS 6.0.1, which used 'br',
and ExtJS 7.0, which has 't' (top) as new default.

So set it explicitly to the previous used one, less intrusive and was
intended to be there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-21 12:10:47 +02:00
Thomas Lamprecht
980e88a9dd spam quarantine: avoid resetting saved position when removing single element
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-19 18:24:48 +02:00
Thomas Lamprecht
c621e29b5e server status: add button to show package version window
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-19 17:53:54 +02:00
Fabian Ebner
3cc0ec1b17 server administration: repos: add online help
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Reviewed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-07-19 17:42:15 +02:00
Thomas Lamprecht
7949d1992a sys config: network: show live-apply button
The PMG API supports that feature now when ifupdown2 is installed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-16 16:37:29 +02:00
Thomas Lamprecht
e47571db64 sys config: move network to bottom
Like we did in PBS, which has a very similar GUI structure as PMG.

Rationale is that the network panel is flexed and thus normally the
biggest, while DNS and time are fixed and short, and an inverted
pyramid, height-wise, looks a bit off as layout.

Also network will show the pending changes at the bottom, which is
nicer if its really at the bottom of the view.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-16 16:34:07 +02:00
Thomas Lamprecht
8b93a29ee0 comment text width improvements
use the full 8ß to 100 CCs available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-13 19:12:09 +02:00
Thomas Lamprecht
b9cc0695c3 configuration: add icons
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-13 19:11:32 +02:00
Thomas Lamprecht
fc0ba73d01 user management: add icons
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-13 19:11:13 +02:00
Thomas Lamprecht
5b75abc7c3 server certificates: add icons
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-13 19:10:58 +02:00