Commit Graph

418 Commits

Author SHA1 Message Date
FreddleSpl0it 8782304e8d [Web] show fold/unfold action if child rows exists 2023-01-16 15:38:35 +01:00
FreddleSpl0it 099db33e44 [Web] disable datatable default row click listener 2023-01-16 11:41:34 +01:00
FreddleSpl0it 152431a7d7 [Web] fix Spamfilter flag fwdhosts wrong naming 2023-01-16 09:24:10 +01:00
Niklas Meyer 27c87de4ed
Merge pull request #4966 from mailcow/fix/bs5
BS5 UI fixes
2023-01-09 12:40:14 +01:00
FreddleSpl0it e501642b8e [Web] fix mailboxtable sort by quota 2023-01-09 08:04:16 +01:00
FreddleSpl0it 7966f010a2 [Web] switch table length + filter field positions 2023-01-06 15:03:04 +01:00
FreddleSpl0it b22f74cb59 [Web] persist table settings + fix quarantine sort 2023-01-06 13:45:52 +01:00
FreddleSpl0it c928948b15 [Web] use saved password policy for pwgen 2023-01-06 13:18:59 +01:00
FreddleSpl0it 9727e4084f [Web] load public ip on click and add curl timeout 2023-01-06 08:40:26 +01:00
Tom Udding de30650dc7
Sort other mailbox DataTables also descending by ID
Also removes the extra non-usable sort option.
2022-12-30 16:38:02 +01:00
Tom Udding 690c34bc1d
Sort sync jobs DataTable based on ID
By setting the default column to perform the sort on, the additional
sort option for the first (hidden) column is also removed.
2022-12-30 16:22:52 +01:00
FreddleSpl0it 02b2988beb [Web] fix typo in SASL table logs 2022-12-27 13:56:09 +01:00
Tom Udding eaa0dea63b
[WEB] Update DataTables to v1.13.1 and fix crash for non-English locales
This newer version of DataTables includes a fix for improper access
to localisation information from `Intl.NumberFormat`. This improper access
lead to datatables not being created.
2022-12-26 17:35:49 +01:00
DerLinkman f3f5471ef7 [Web] Removed double Sender Entry in RSPAMD Logs 2022-12-26 15:56:23 +01:00
Niklas Meyer e67b512499
Merge pull request #4914 from tomudding/fix/datatables-not-ordering-datetimes-correctly
Fix sorting dates and missing Rspamd attributes in datatables
2022-12-26 14:07:14 +01:00
DerLinkman 8070db96e9 [UI] Fixed Wrong Table content in Qurantine (sender instead of subject) 2022-12-24 22:25:42 +01:00
Tom Udding 82c80a9682
Make default ordering of Rspamd table consistent 2022-12-24 18:29:46 +01:00
Tom Udding 136cc2e3ff
Fix missing score and scan time Rspamd logs 2022-12-24 18:18:28 +01:00
Tom Udding eefce62f01
Fix incorrect datetime for Rspamd logs 2022-12-24 18:10:57 +01:00
Tom Udding 240b2c63f6
Fix timestamps not sorting in datatables
Timestamps retrieved from the API were always converted to a browser
local format. The format specified for moment.js added in
5160eff294 did not work because of this.

Additionally, the format specified used `dd` which looks for two letter
days, such as "Mo", "Tu", "We", etc. Furthermore, `mm` is used for
minutes, not months.

Because the locale formatted datetime can vary a lot, it is not easy to
get this into moment.js to enable the sorting of datetimes in the
datatables. In other words, there is no conversion from an
`Intl.DateTimeFormat` specifier string to moment.js. Adding many
`$.fn.dataTable.moment(format);` with different `format`s is not useful.

I have fixed this rewriting how the timestamps from the API are added
to the tables. It still uses the locale of the browser, because not
everyone wants to use ISO 8601, but no longer requires moment.js (which
has been removed).

Two data attributes are added to the `td`s of the timestamps:
- `data-order`
- `data-sort`

The values of these are the timestamps as returned by the server, which
are very easily sorted (as they are just UNIX timestamps). Then, when
creating the cell in the table, it will be converted to what the locale
of the browser specified (this has not changed).
2022-12-24 17:35:31 +01:00
DerLinkman aa7888c37d Updated DB Schemata + reverted escape HTML of alert boxes 2022-12-23 14:47:27 +01:00
FreddleSpl0it ea1eb48596 show version modal only on master 2022-12-16 09:48:33 +01:00
FreddleSpl0it f1bb23ba2a fix darkmode toggle 2022-12-16 09:40:20 +01:00
FreddleSpl0it 5160eff294 add datatables date sort plugin & rename js files 2022-12-14 08:13:56 +01:00
DerLinkman ce546e8a90 Merge branch 'feature/bootstrap5' of https://github.com/mailcow/mailcow-dockerized into feature/bootstrap5 2022-12-12 10:49:02 +01:00
DerLinkman f4731eecdb Cleanup + Language Fixes 2022-12-12 10:49:00 +01:00
FreddleSpl0it 6704377402 [Web] escape more html data 2022-12-09 16:10:10 +01:00
FreddleSpl0it 3ebd801b3d remove whats new modal & add changelog modal 2022-11-16 12:12:23 +01:00
FreddleSpl0it c8f69ffe77 show created_on, last_modified for domain, mailbox 2022-11-11 09:22:58 +01:00
FreddleSpl0it 79982e0e8d add template feature for domains and mailboxes 2022-11-10 16:22:18 +01:00
DerLinkman 75fdeb2843 Fixed queue message error 2022-10-18 14:19:51 +02:00
DerLinkman e5d788497a Rearranged Queue Manager + Ukraine Flag fix 2022-10-18 11:34:48 +02:00
FreddleSpl0it 3912fcb238 shift get_public_ips to json_api.php 2022-10-11 17:40:46 +02:00
FreddleSpl0it 8c4dbaec4f rework datatables 2022-10-11 11:41:06 +02:00
FreddleSpl0it 645e8f426c shift datatable child toggle function to api.js 2022-10-11 11:35:07 +02:00
FreddleSpl0it 8e0ee67108 add sieve access toggle to mass-actions-mailbox 2022-09-27 12:32:14 +02:00
FreddleSpl0it 3d82d9af1b add loading animation for container charts 2022-09-27 12:31:02 +02:00
FreddleSpl0it 3b8e17c21f fix layout issues 2022-09-26 11:23:04 +02:00
FreddleSpl0it 45e97b3753 [BS5] fix merging bugs 2022-08-30 15:59:16 +02:00
FreddleSpl0it 77e6124b00 [BS5] move showWhatsNewModal 2022-08-23 14:24:10 +02:00
FreddleSpl0it a3ddb58566 [BS5]responsive fixes 2022-08-23 12:43:23 +02:00
FreddleSpl0it 7f70b0f703 [BS5] add container disk and network stats 2022-08-22 16:08:01 +02:00
FreddleSpl0it a7a0eef125 [BS5] poll host stats if tab is active 2022-08-11 16:11:13 +02:00
FreddleSpl0it 5d35af9d69 [BS5] rework network and disk io 2022-08-10 16:16:36 +02:00
FreddleSpl0it ea21bca7df [BS5] adjust host stats 2022-08-10 10:56:10 +02:00
FreddleSpl0it a3c0737ba8 [BS5] add host statistics 2022-08-09 20:29:33 +02:00
FreddleSpl0it a4ec2d1d86 [BS5] adjust whats new modal 2022-08-08 12:53:52 +02:00
FreddleSpl0it 8987ebca36 [BS5] add whats new modal after update 2022-07-08 15:47:21 +02:00
FreddleSpl0it c9b883dff5 [BS5] fix datatables 2022-07-08 11:31:08 +02:00
FreddleSpl0it ad43253a90 [BS5] add rspamd logo change to darkmode toggle 2022-07-08 11:28:58 +02:00