Commit Graph

72 Commits

Author SHA1 Message Date
FreddleSpl0it 099db33e44 [Web] disable datatable default row click listener 2023-01-16 11:41:34 +01:00
FreddleSpl0it c928948b15 [Web] use saved password policy for pwgen 2023-01-06 13:18:59 +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
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 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
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 79982e0e8d add template feature for domains and mailboxes 2022-11-10 16:22:18 +01:00
FreddleSpl0it 645e8f426c shift datatable child toggle function to api.js 2022-10-11 11:35:07 +02:00
FreddleSpl0it 3b8e17c21f fix layout issues 2022-09-26 11:23:04 +02:00
FreddleSpl0it 77e6124b00 [BS5] move showWhatsNewModal 2022-08-23 14:24:10 +02:00
FreddleSpl0it 8987ebca36 [BS5] add whats new modal after update 2022-07-08 15:47:21 +02:00
FreddleSpl0it ad43253a90 [BS5] add rspamd logo change to darkmode toggle 2022-07-08 11:28:58 +02:00
FreddleSpl0it 979de67c2b [BS5] update bootstrap-select to v1.14.0-beta3 2022-07-08 11:28:27 +02:00
FreddleSpl0it 18444bd284
[BS5] fix minor issues 2022-06-28 07:21:26 +02:00
FreddleSpl0it 9d3a89d362
[BS5] add darkmode 2022-06-28 07:20:46 +02:00
FreddleSpl0it 052959f435 [BS5] remove ui theme selector - add darkmode toggler 2022-06-23 16:34:58 +02:00
FreddleSpl0it 560df58bb4 [BS5] fix minor issues 2022-06-15 16:34:49 +02:00
DerLinkman 5629d47cb6 Merge branch 'pr/FreddleSpl0it/4527' into feature/bootstrap5 2022-06-15 11:22:59 +02:00
FreddleSpl0it 304655f7ff [BS5] remember last nav pill - revert id var 2022-06-08 12:12:12 +02:00
FreddleSpl0it cdd2adbc73 [BS5] remember last nav pill fix 2022-06-07 15:28:28 +02:00
FreddleSpl0it cb6a5d4069
[BS5] add responsive tabs and more 2022-06-06 20:38:24 +02:00
FreddleSpl0it fb7e00c158
[BS5] Replace FooTable with jquery Datatables 2022-05-16 11:26:49 +02:00
FreddleSpl0it a0567beee5
[BS5] Replace FooTable with jquery Datatables 2022-05-13 14:16:32 +02:00
FreddleSpl0it dfdd2dadb4
[Web] domain/mailbox tagging check for empty tags 2022-05-06 08:30:15 +02:00
FreddleSpl0it 549ff7d100
Add Domain and Mailbox tagging (#4569)
* [Web] define tag tables

* [Web] add mailbox tag functions

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* Include new tags lang in language.en.json

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

* [Web] add domain/mailbox tagging

Co-authored-by: Niklas Meyer <62480600+DerLinkman@users.noreply.github.com>
2022-05-05 08:25:01 +02:00
FreddleSpl0it 96c8e01a3b
[BS5] change spinner icons 2022-04-14 10:22:06 +02:00
FreddleSpl0it 7075b9f0c0
[BS5] mobile navbar fix 2022-04-13 21:34:00 +02:00
FreddleSpl0it cdff1ba37b
[BS5] update bootstrap-select to v1.14beta 2022-04-13 12:34:14 +02:00
FreddleSpl0it f6a51f6b6f
[BS5] add gridjs lib 2022-04-13 12:32:48 +02:00
FreddleSpl0it e62069d3db
[BS5] change bootstrap in js 2022-04-01 08:25:47 +02:00
FreddleSpl0it c1792df819
[BS5] include dependencies 2022-03-30 07:54:07 +02:00
FreddleSpl0it 36944f8073
[BS5] remove dependencies 2022-03-30 07:08:24 +02:00
FreddleSpl0it 4d59cb0351
[BS5] remove u2f-api.js 2022-03-29 09:41:11 +02:00
Kristian Feldsam 0b64967ec5
[web] implemented twig templating system (#4264)
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
2021-09-22 20:47:10 +02:00
andryyy bdafb7ab2f
[Web] Reponsive: Scroll faster 2021-07-09 08:27:16 +02:00
Kristian Feldsam f73ac284e5
[Web] Improve responsive design (#4171)
Complete styling for mobile devices

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
2021-07-09 08:21:09 +02:00
Kristian Feldsam 7bc8781db8
[Web] added translations for various strings (#4173)
* [Web] translated synchronization "open logs" str

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>

* [Web] translated selectbox "nothing selected" str

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>

* [Web] translated Check against haveibeenpwned.com

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
2021-07-07 06:39:29 +02:00
andryyy 8a83587800
[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik
[Web] Small fixes
2021-05-28 10:40:41 +02:00
andryyy e6d5516c7f
[Web] Feature: Allow copies of quota notifications to be sent via SMTP to internal or external addresses
[Web] Various style fixes
[Web] Remove unused or unnecessary dependencies
2021-05-23 13:18:52 +02:00
andryyy 9c075af2d9
[Web] Bye Glyphicons, hello BS5 icons\!; [Web] Change font to Noto for better compatibility; 2021-05-22 12:13:37 +02:00
andryyy e21e0b9dbf
[Web] Time limited aliases: show create date; create aliases with 1yr retention by default; create temp alias in alias domain; better random names; accept any validity time
[Web] Replace spam score slider by nouislider and rework table a bit
2021-05-21 12:48:24 +02:00
andryyy 5ea649b292
[Web] Feature: Add password policy 2021-04-09 13:46:17 +02:00
andryyy 06c89bac7d
[Web] Implement XMPP
[Web] Various small fixes and enhancements
2021-02-11 09:34:21 +01:00
andryyy 9d0d826337
[Web] Highlight select boxes with missing required attrs 2020-10-23 20:23:54 +02:00
andryyy c54fa76beb
[Web] Add quick toggle for imap/pop3/smtp access; small rework of buttons on /mailbox; Minor fixes and changes 2020-09-18 15:53:01 +02:00
andryyy d9b91fc04f [Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)
[Web] Feature: Allow to toggle protocols (imap, pop3, smtp) per user (defaults can be configured using vars.local.inc.php, see vars.inc.php)

Signed-off-by: andryyy <andre.peters@debinux.de>
2020-09-17 19:49:15 +02:00
andryyy d3d929222f
[Web] Rot announcements 2020-08-16 11:54:06 +02:00