Commit Graph

2850 Commits

Author SHA1 Message Date
RD WebDesign
52441b7b1b Remove unnecessary code
The outer `if` (line 92) already guarantees only 2 possible values.
If `isQueryTypeChart` is false, `isForwardDestinationChart` must be true.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-09-15 22:11:44 -03:00
Aaron Blankenship
be3859db7f Prevents getting stuck loading unlimited query log results. Changed in Queries Log table only.
Signed-off-by: Aaron Blankenship <aaron@aaronblankenship.com>
2025-08-24 15:42:59 -05:00
yubiuser
035a2861bf Use /flush/network instead of /flush/arp (#3553) 2025-08-14 21:13:41 +02:00
Dominik
f518450115 Bind address to new element instead of raw HTML construction (#3567) 2025-07-17 07:25:44 +02:00
yubiuser
ac7b9845b6 Also trim CNAME input fields
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-16 22:03:25 +02:00
yubiuser
d2dc2535bb Trim whitespaces before adding custom DNS record
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-16 22:00:03 +02:00
DL6ER
e137dd0a0f Bind address to new element instead of raw HTML construction
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-16 16:19:46 +02:00
Dominik
6023387c7d Use innerHTML instead of append to fix gravity color output (#3566) 2025-07-16 09:57:58 +02:00
yubiuser
1c753f7cc6 Use innerHTML instead of append to fix gravity color output
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-16 09:03:23 +02:00
yubiuser
1fd924fcff Use label-primary for number of enabled list icon on sidebar
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-13 16:21:18 +02:00
yubiuser
41cdc9728c Show pointer only for clickable items
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-12 09:20:05 +02:00
yubiuser
a89fdda77e Only underline clickable legend items in pie charts
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-12 09:10:34 +02:00
Adam Warner
353ba2f163 charts.js: refactor to reduce complexity, improve readability and per… (#3542) 2025-07-11 23:09:54 +01:00
Adam Warner
b90361cf41 interfaces: switch to vanilla JS and refactor code to reduce complexi… (#3544) 2025-07-11 18:51:00 +01:00
Adam Warner
014ce38f87 gravity: convert to vanilla JS and refactor code (#3545) 2025-07-11 18:48:19 +01:00
Adam Warner
acc8583f43 utils: modernize hex functions (#3546) 2025-07-11 18:42:41 +01:00
Adam Warner
7207a5c20e utils: remove duplicate function and convert changeTableButtonStates to vanilla JS (#3547) 2025-07-11 18:34:12 +01:00
Adam Warner
0091f74294 taillog: convert to vanilla JS and improve things (#3550) 2025-07-11 18:28:00 +01:00
Adam Warner
e1001d6035 secondsTimeSpanToHMS: use modulo operator and padStart (#3548) 2025-07-11 18:17:58 +01:00
Adam Warner
412c15be4c Update xo to v1.1.1 (#3485) 2025-07-11 17:14:58 +01:00
XhmikosR
9c00467a6d utils: remove duplicate function and convert changeTableButtonStates to vanilla JS
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-07-01 16:38:57 +03:00
yubiuser
16fee67983 Use /flush/network instead of /flush/arp
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-30 13:47:11 +02:00
Adam Warner
387ad34927 settings-dns: expand custom servers box if it has custom servers (#3514) 2025-06-29 12:28:48 +02:00
XhmikosR
59a43c7d26 tailog: validate file URL param and guard against infinite loop
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 13:47:39 +03:00
XhmikosR
306edb2f9e tailog: convert to vanilla JS and improve performance
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 13:47:39 +03:00
XhmikosR
87c098553d secondsTimeSpanToHMS: use modulo operator and padStart
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 09:05:18 +03:00
XhmikosR
4ce43a304f utils: modernize hex functions
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 08:48:43 +03:00
XhmikosR
ef4f97610b gravity: convert to vanilla JS and refactor code
Only the alerts are using jQuery for now

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 08:28:33 +03:00
XhmikosR
d3619bb5d5 interfaces: switch to vanilla JS and refactor code to reduce complexity/improve readability
Only the bstreeview plugin is using jQuery.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 08:26:06 +03:00
XhmikosR
0fa650d9bb charts.js: refactor to reduce complexity, improve readability and performance
Also

* drop jQuery usage
* move inline styles to CSS when possible
* switch to `a` tags for links otherwise use `p`

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 07:45:11 +03:00
yubiuser
5a950a6c2d settings-dns-records: merge DOMContentLoaded listeners (#3538) 2025-06-27 21:32:31 +02:00
XhmikosR
8329997242 Update xo to v1.1.1
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-27 21:19:40 +03:00
yubiuser
839e2a68b6 Drop htmlPass util since it's only used once (#3539) 2025-06-27 18:15:41 +02:00
XhmikosR
4ac3fd060f Drop htmlPass util since it's only used once
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-27 17:12:48 +03:00
XhmikosR
4750d61339 settings-dns-records: merge DOMContentLoaded listeners
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-27 17:02:56 +03:00
XhmikosR
4aaf7fe0e6 header: move unneeded unauthenticated assets to authenticated
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-27 16:43:32 +03:00
yubiuser
ba0fb42363 settings-system : Avoid division by zero in DNS metrics (#3533) 2025-06-26 05:58:35 +02:00
Rob Gill
ce991b2434 settings-system : Avoid division by zero in DNS metrics
Don't attempt to calculate a percentage if there are no replies yet

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2025-06-26 09:09:56 +10:00
yubiuser
f11ac8f944 Processs line squentially to always close the right number of <span> once we hit {COL_NC}
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-24 22:32:31 +02:00
yubiuser
9618f327e4 Use mapping
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-24 21:42:03 +02:00
yubiuser
9ad85da4cf Disable eslint prettier/prettier rule for the block too keep it readable
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-24 20:32:39 +02:00
yubiuser
785494e60b Add <span> counter
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-24 20:19:04 +02:00
yubiuser
b884688a84 Replace ANSI escape codes with HTML tags
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-24 19:22:32 +02:00
yubiuser
4e5d4cfa8d Add some color to gravity output
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-06-24 15:10:42 +02:00
XhmikosR
5efe33bbab Abstract collapsing box to a new util
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-21 08:49:23 +03:00
XhmikosR
65e2917b74 settings-dns: expand custom servers box if it has custom servers
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-21 08:45:53 +03:00
Dominik
a07dacab77 header_authenticated.lp: add the hostname li only if it's greater t… (#3501) 2025-06-20 20:38:59 +02:00
XhmikosR
aaa692dc83 footer: remove document.hidden in checkBlocking (#3518)
This is taken care of in utils.setTimer.

Fixes status not showing when opening a new tab. Previously, it was shown after the timer fired.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-19 17:03:00 +02:00
XhmikosR
64b4756640 Update chart.js to v4.5.0 (#3516)
* Update chart.js to v4.5.0

Also, switch to the minified file

Signed-off-by: XhmikosR <xhmikosr@gmail.com>

* Update scripts/lua/header_authenticated.lp

Co-authored-by: yubiuser <github@yubiuser.dev>
Signed-off-by: XhmikosR <xhmikosr@gmail.com>

---------

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: yubiuser <github@yubiuser.dev>
2025-06-16 15:50:47 +02:00
yubiuser
b979fff4b0 Fix a few HTML validation issues (#3517) 2025-06-16 11:43:35 +02:00