Commit Graph

61 Commits

Author SHA1 Message Date
RD WebDesign e7b0b778c9 Use a table to show and edit Reverse DNS Servers
- add functions and buttons to add, modify, undo changes and delete lines
- generate the table using data already on the textarea
- add functions to read textarea contents and parse then into an array
- add functions to update the textarea contents from the table
- hide the textarea. Only the table will be visible
- make sure the table is not shown when the option was set by ENV VARS
- move some help paragraphs to the table legend
- remove usused original help text for the textarea
- use fixed size for all action buttons
- don't use "icheck" styling on the checkboxes in the table

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-06-13 16:54:05 -03:00
Austin Gilmour 1c621a53f8 fix: replace ES2024 regex v flag with u for WebKit compatibility (#3757)
WebKit-based browsers (Safari, DuckDuckGo on macOS) don't yet support
the ES2024 Unicode Sets `v` regex flag, causing a SyntaxError that
prevents all dashboard JavaScript from executing — stats show `---` and
charts spin indefinitely.

None of the affected patterns use v-exclusive features (set notation
`[A--B]`, `[A&&B]`), so downgrading to `u` is fully equivalent and
restores broad compatibility without any functional change.

Also updates xo.config.js to enforce `requireFlag: "u"` so the linter
stays consistent with the codebase.

Affected files (16 occurrences across 8 files):
- scripts/js/utils.js
- scripts/js/index.js
- scripts/js/footer.js
- scripts/js/groups-domains.js
- scripts/js/settings-teleporter.js
- scripts/js/gravity.js
- scripts/js/groups.js
- scripts/js/groups-clients.js
- scripts/js/groups-lists.js
- scripts/js/settings-dns-records.js
- scripts/js/network.js
- scripts/js/taillog.js

Signed-off-by: Austin Gilmour <gilmoursa@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 07:58:15 -04:00
yubiuser 68542383ea Apply suggestions from code review
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-03-16 22:06:16 +01:00
yubiuser c02e66fe04 Fix xo errors
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-03-16 08:55:20 +01:00
yubiuser da33c9f59d Do not try to compare component version when remote version info is not available (#3729) 2026-03-08 18:25:09 +01:00
RD WebDesign 02108a0ce1 Print just one message on the fotter asking to run "pihole updatechecker"
instead of adding "Latest: N/A" per component, when at least one Pi-hole
component is missing the remote version info.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-03-07 18:10:07 -03:00
yubiuser 561f9c1ab7 Remove redundant setting of variables
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-02-26 20:19:02 +01:00
yubiuser d985829a23 Apply suggestion from @rdwebdesign
Show the link if the version matches a date based tag

Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-02-26 20:15:04 +01:00
yubiuser de2e577549 Add hint that remote version could not be checked
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-02-23 13:42:09 +01:00
yubiuser 81623fc1bf Do not try to compare component version when remote version info is not available
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-02-23 13:27:10 +01:00
yubiuser edee7b9654 Don't link to github releases if docker tag is nightly
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-02-16 12:25:46 +01:00
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
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
XhmikosR 87c098553d secondsTimeSpanToHMS: use modulo operator and padStart
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-28 09:05:18 +03: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
yubiuser b979fff4b0 Fix a few HTML validation issues (#3517) 2025-06-16 11:43:35 +02:00
XhmikosR 8529cb067c Fix a few HTML validation issues
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-16 09:32:51 +03:00
XhmikosR 293a84439d header: don't hide advanced info since it's always shown
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-15 08:13:20 +03:00
XhmikosR b3e8e40bda footer: use text for sysinfo-cpu
There's no HTML involved.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-06-02 22:08:31 +03:00
Adam Warner abd4d9d3b9 settings-level-expert: hide them by default (#3487) 2025-05-30 21:35:56 +01:00
casperklein f3fd182d00 Add rel="noreferrer" to external hyperlinks
Signed-off-by: casperklein <casperklein@users.noreply.github.com>
2025-05-29 22:57:36 +02:00
XhmikosR a18629193a settings-level-expert: hide them by default
Matches the previous behavior before 8556b65

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-27 20:59:05 +03:00
RD WebDesign f5b87509f9 Reset update-hint text every time the function is executed
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-05-21 16:05:14 -03:00
Adam Warner e2c55c6234 settings-level-expert: only toggle the expert elements (#3473) 2025-05-19 17:50:44 +01:00
XhmikosR 3a8dbe1d28 updateFtlInfo: remove unused code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-19 18:11:48 +03:00
XhmikosR 8556b65b2e settings-level-expert: only toggle the expert elements
Show the basic ones by default. Also, reduce jQuery usage in those functions while at it.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-19 09:49:10 +03:00
yubiuser 53a88352c2 footer: drop redundant addAdvancedInfo() call (#3467) 2025-05-18 20:38:01 +02:00
XhmikosR a2908d86d8 footer: drop redundant addAdvancedInfo() call
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-18 09:58:06 +03:00
XhmikosR f389c5a0ea footer: use text() when we don't need HTML
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-17 08:27:55 +03:00
XhmikosR 756239a6dd xo: enable strict mode
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-23 20:50:12 +03:00
XhmikosR f598a8e35c Manual xo fixes and suppressions
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-23 07:53:16 +03:00
XhmikosR f8a0a1d4ec Tighten xo rules
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-23 07:53:13 +03:00
XhmikosR 1fbbb91f51 Remove icheckbox related-code except for primary
v6 doesn't support changing this like v5

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-21 12:07:06 +03:00
Adam Warner 1e8baebb08 Fix concurrency issue about const apiUrl (#3371) 2025-04-02 18:09:14 +01:00
DL6ER b524a2f4b6 Always use document.body.dataset.apiurl instead of the intermediate const apiUrl
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-31 22:00:16 +02:00
DL6ER 58616bc8af Remove remaining hard-coded /admin/ paths in the webinterface
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-31 21:43:57 +02:00
DL6ER 6a6a3911f0 Merge branch 'development' into new/web_prefix
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-18 06:58:10 +01:00
XhmikosR c003548906 Remove trailing slash from void elements
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-10 22:15:01 +02:00
XhmikosR f7710ebc76 Fix a few CodeQL issues
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-09 22:03:13 +02:00
DL6ER 5f3bcdac3c Merge branch 'development' into new/web_prefix
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-09 20:15:59 +01:00
DL6ER e873dfed2b Use document.body.dataset instead of defining a hidden <div>
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-09 20:13:33 +01:00
Dominik e95c865357 Fix the text and icon used to report end-to-end encryption status (TLS/SSL) on the top menu (#3288) 2025-03-07 11:39:58 +01:00
Dominik 27696fa229 Set default values for each property of versions object (#3268) 2025-03-07 11:39:44 +01:00
RD WebDesign c3d09c92e9 Use "N/A" if local.version is null to avoid empty version
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-03-07 01:45:59 -03:00
RD WebDesign b4bf45d2fd Set icon color to green when SSL/TSL is used
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-03-07 01:05:11 -03:00
RD WebDesign 516febe461 Use location.protocol top identify if the page uses https protocol
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-03-07 00:56:45 -03:00
DL6ER afd595de72 Merge branch 'development' into fix/load_not_cpu
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 17:34:14 +01:00
XhmikosR 96be2b7363 Use singular if we have one core
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-04 17:43:47 +02:00
DL6ER 9a40f4a7e1 Improve memory unit selection for devices with less than 1 GB of RAM
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-03 09:14:36 +01:00