Commit Graph

54 Commits

Author SHA1 Message Date
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
FreddleSpl0it
ea1eb48596 show version modal only on master 2022-12-16 09:48:33 +01:00
FreddleSpl0it
3ebd801b3d remove whats new modal & add changelog modal 2022-11-16 12:12:23 +01: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
3d82d9af1b add loading animation for container charts 2022-09-27 12:31:02 +02:00
FreddleSpl0it
45e97b3753 [BS5] fix merging bugs 2022-08-30 15:59:16 +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
c9b883dff5 [BS5] fix datatables 2022-07-08 11:31:08 +02:00
FreddleSpl0it
496c68d2af [BS5] datatables handle null values 2022-07-01 16:20:39 +02:00
FreddleSpl0it
7384aab2f4 [BS5] fix minor issues 2022-06-14 15:52:59 +02:00
FreddleSpl0it
351c803623 [BS5] change onVisible querySelectors to table id 2022-06-08 11:49:05 +02:00
FreddleSpl0it
cb6a5d4069
[BS5] add responsive tabs and more 2022-06-06 20:38:24 +02:00
FreddleSpl0it
3e6a241c69
[BS5] Replace FooTable with jquery Datatables 2022-05-19 21:29:01 +02:00
FreddleSpl0it
0ece065cb0
[BS5] Replace FooTable with jquery Datatables 2022-05-17 14:08:22 +02:00
FreddleSpl0it
e62069d3db
[BS5] change bootstrap in js 2022-04-01 08:25:47 +02:00
andryyy
e391b054d3
[Web] Remove service chevrons 2021-10-29 06:49:32 +02:00
andryyy
4019dc5477 [Web] Fix missing IP in autodiscover logs 2021-10-24 12:53:31 +02:00
andryyy
d03083f8e7
[Web] Add IP to autodiscover log 2021-10-21 19:39:33 +02:00
andryyy
f5eb57568a
[Web] Add IP to autodiscover logs 2021-10-21 11:34:51 +02:00
andryyy
8b08d09ca2
[Web] Remove XMPP options
[Web] Add Rspamd preset #4
[Web] Do not show failed SASL logins (and also remove them from db)
2021-06-30 10:13:29 +02:00
andryyy
2d55b54904
[Web] Show users the last known connections for SASL authentication
[Web] Feature: Log SASL authentication
2021-06-04 14:29:39 +02:00
andryyy
5065667ae4
[Postfix] Allow to set and override a relayhost per mailbox
[Web] Replace recycle icon with trash (this one made me a bit sad)
[Web] Various small fixes
[Web] Allow or disallow a domain admin to change relayhost settings (default is off, as previous default)
2021-05-26 14:02:27 +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
fee4b50b9b
[Web] Do not print invalid date 2021-02-12 21:22:05 +01:00
andryyy
06c89bac7d
[Web] Implement XMPP
[Web] Various small fixes and enhancements
2021-02-11 09:34:21 +01:00
andryyy
fd462f67e1
[Web] Do not use connectors for debug filters, fixes #3833 2020-10-31 09:32:52 +01:00
andryyy
5ead886fd6
[Web] Escape To field in Rspamd history log 2020-10-18 19:44:56 +02:00
prey87
8dd8c7b3eb
Update quarantine.js (#3767)
* Update quarantine.js

changed created formatter like in site/user.js, site/mailbox.js & site/admin.js to get month and day in 2-ditgit format

* Update debug.js

changed created formatter like in site/user.js, site/mailbox.js & site/admin.js to get month and day in 2-ditgit format

* Update debug.js

missed two old toLocaleString()
2020-09-21 18:29:30 +02:00
andryyy
21a153c2a7 [Web] Fix symbol options encoding in rspamd item view
[Web] Feature: Allow to view mailq item content via postcat
[Web] Fix Rspamd not drawing
2020-05-19 20:24:40 +02:00
andryyy
6c28ebfc87
[Web] Async Rspamd graph loading to prevent races (todo: changeme) 2020-04-27 20:48:32 +02:00
Max
2c9cd365d1 debug page: disable refresh button, while refreshing (#3199)
* Fix missing username in username_invalid message

Fix missing username in username_invalid message

* Fix missing username in username_invalid message 2

Fix missing username in username_invalid message

* Disable refresh button, while refreshing

Disable the refresh button, like in mailbox.js, while refreshing the table. Prevents empty view if the user clicks too fast.
2019-12-05 15:35:10 +01:00
tinect
36bd55ee5e add charts.js, remove googlecharts (#3137)
* add charts.js, remove googlecharts

* change to doughnut

* show percentage on donut
2019-11-11 08:14:02 +01:00
friedPotat0
fbb800a783 fix rspamd 1.47 missing time_virtual value 2019-10-12 23:42:23 +02:00
friedPotat0
5f777a1b25 remove obsolete lines 2019-10-12 15:35:49 +02:00
friedPotat0
84617b0d6b sort rspamd symbols in debug log 2019-10-12 15:35:40 +02:00
friedPotat0
c97b91503b change rspamd option delimiter 2019-10-12 15:35:32 +02:00
friedPotat0
31ceb54732 change text color of neutral rspamd symbol scores 2019-10-12 15:35:13 +02:00
andryyy
71994b1bcd
[Web] Use panel instead of tab-pane to find panel-heading, fixes #3022 2019-10-11 08:51:40 +02:00
andryyy
c3be04560b
[Web] mailbox.php uses dropups
[Web] Allow to set visibility of aliases in SOGo
[Web] Refresh window when session timed out
[Web] Increase default log lines and pagination trigger
[Web] Increase delay when filtering tables
2019-09-22 15:10:56 +02:00
Patrik Kernstock
409ecf7fd5
[Web] Fixed one more possible XSS
XSS might be possible when using a specific-crafted request (harder than previous ones). Might also easily cause JS errors and making the "mailcow UI"-logs not accessible anymore
2019-08-14 22:19:50 +02:00
Patrik Kernstock
4f25a3646e Fixed several other XSS's 2019-08-14 00:22:40 +02:00
andryyy
fab23cec2b
[Web] Fix XSS in call field 2019-08-13 21:12:24 +02:00