Commit Graph

220 Commits

Author SHA1 Message Date
RD WebDesign
507fde4edf Add CPU usage percentage to the Load tooltip
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-10-06 22:34:47 -03:00
yubiuser
4f11435291 Update FTL %cpu and %mem everytime total CPU stats are updated
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-10-06 21:18:46 +02:00
Dominik
5ecfcf3f19 Adjust domain count according to pi-hole/FTL#2177 (#3619) 2025-10-05 09:55:38 +02:00
Adam Warner
4b5697c7be Fix addList function to include type in API request URL
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-10-04 22:35:27 +01:00
yubiuser
078e34c96d Adjust domain count according to https://github.com/pi-hole/FTL/pull/2177
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-10-04 22:21:06 +02:00
Adam Warner
dcb07b761b Make DNSSEC icon conditional in Queries Log (redo of https://github.com/pi-hole/web/pull/3399/) (#3535) 2025-10-04 15:33:59 +01:00
yubiuser
94e8e909b7 Improve line graph tooltip (#3601) 2025-10-04 08:58:29 +02:00
RD WebDesign
c6a2e8572e Trigger the offset effect when the mouse is over a legend item
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-09-19 17:11:10 -03:00
RD WebDesign
ec5f8b7037 Add offset effect on hover to the doughnut charts
We need to add a small padding to avoid "clipping" the arc/slice.
This happens because when an arc/slice expands, it grows beyond the canvas
limits and get clipped.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-09-19 17:04:48 -03:00
RD WebDesign
ca57bcfb5c Include the upstream DNS server name to the link, when needed
The link must send the "upstream" parameter in exactly the same format used
by the "suggestions" API.
The format is: "upstream=<IP>#<port> (<servername>)".
This will ensure that when a link is clicked, the correct server name will
be highlighted in the SELECT element on the queries.lp page and no other
OPTION element will be created.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-09-16 16:47:03 -03:00
RD WebDesign
af471bec94 Show the upstream server IP on the title tooltip
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-09-15 23:03:26 -03:00
RD WebDesign
48666e1ffd Use an array to store upstream server IPs
This will avoid overwritting the IP when more than one upstream DNS server uses the same name

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-09-15 22:34:06 -03:00
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
yubiuser
2c1876879d Fix calculation of tootlip percentage
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-09-10 11:12:04 +02:00
yubiuser
66eb947718 Only display items in queryOverTimeChart tooltips with at least 1 query
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-09-10 11:12:04 +02:00
yubiuser
9dc305c2b5 Show tooltip of bar graphs below x-axis
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-09-10 11:11:52 +02: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
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
fc01fb030e Fix tests
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-12 10:04:29 +02:00
sharkboots75
eb140af01a Make DNSSEC icon conditional in Queries Log
Avoid emitting the DNSSEC icon in Domain column if DNSSEC is not being used/tracked

Signed-off-by: sharkboots75 <sharkboots75@gmail.com>
2025-07-12 10:04:29 +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
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
yubiuser
ba0fb42363 settings-system : Avoid division by zero in DNS metrics (#3533) 2025-06-26 05:58:35 +02:00