Commit Graph

2741 Commits

Author SHA1 Message Date
XhmikosR
f69df08a08 Fix deprecated ready function
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-15 18:17:31 +03:00
XhmikosR
d219e436cb settings-system: fix typo
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-15 10:40:03 +03:00
Dominik
ed09c524ff Replace invalid hostname to prevent XSS (#3401) 2025-05-14 19:37:52 +02:00
Jakob Lorenz
ae8775898b scripts/js/settings-dns-records.js: fix api url base
Signed-off-by: Jakob Lorenz <onlyJak0b@mailbox.org>
2025-05-14 17:11:33 +02:00
yubiuser
de1e27c782 settings-advanced: remove unused code (#3454) 2025-05-14 09:01:09 +02:00
XhmikosR
453b017905 settings-system.js: remove unused overlay code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-13 18:43:25 +03:00
XhmikosR
3ddb41db79 settings-advanced: remove unused code
There's no such button with id=save

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-13 18:32:40 +03:00
RD WebDesign
cd6e335bd9 Use mg.script_name to retrieve the scriptname (#3447) 2025-05-11 05:07:51 -03:00
RD WebDesign
66f7e1d081 Use mg.script_name to retrieve the scriptname
This value is independent from webhome or prefix

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-05-09 00:05:52 -03:00
RD WebDesign
263d01a866 Use the same default interface used by FTL if none is set in pihole.toml
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-05-04 15:47:19 -03:00
XhmikosR
7de8aea119 queries: replace the deprecated jQuery.parseJSON with JSON.parse
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-04 20:14:31 +03:00
yubiuser
78f135703a gravity: remove the unused ?go code (#3426) 2025-05-04 10:43:50 +02:00
yubiuser
6d65c185fa settings-api: fix deprecated keyup() function (#3424) 2025-05-03 19:41:25 +02:00
XhmikosR
7342abc169 gravity: remove the unused ?go code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-01 21:19:26 +03:00
XhmikosR
6f12b88ad1 login: fix deprecated submit() function
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-01 20:00:07 +03:00
XhmikosR
612a110109 settings-api: fix deprecated keyup() function
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-01 19:59:09 +03:00
yubiuser
d0829308db Replace hostname string if it contains invalid characters
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-04-26 23:39:39 +02:00
Adam Warner
d9a7acf3c3 Modernize JS and tighten things (#3388) 2025-04-24 18:17:04 +01:00
XhmikosR
756239a6dd xo: enable strict mode
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-23 20:50:12 +03:00
Adam Warner
4b33fbc91b use optional chaining for logout button event listener - ensures error not thrown when password is empty
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-04-23 18:09:59 +01: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
yubiuser
7487abd385 Allow free input in upstream filter
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-04-21 14:40:30 +02: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
yubiuser
771de410b7 utils: fix typo in showAlert() (#3403) 2025-04-21 10:37:41 +02:00
yubiuser
1d9a079fc9 header: fix runtime error when query_string is null (#3395) 2025-04-21 10:21:43 +02:00
XhmikosR
a95f6c88ae utils: fix typo in showAlert()
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-21 11:15:16 +03:00
Dominik
380c31f4cf Revert the defer addition for now (#3382) 2025-04-21 09:09:34 +02:00
XhmikosR
27b7aaa713 header: fix runtime error when query_string is null
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-14 08:45:34 +03:00
yubiuser
6e4a17d8b3 Escape hostname to prevent XSS
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-04-11 09:39:18 +02:00
Dominik
7433144b63 Replace remaining i element cases with em (#3381) 2025-04-05 17:05:29 +02:00
Adam Warner
1bbf2ae11d group-domains: fix uncaught TypeError due to invalid URLs (#3383) 2025-04-05 15:22:32 +01:00
XhmikosR
2ea1a6bf0b group-domains: fix uncaught TypeError due to invalid URLs
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-05 08:00:12 +03:00
yubiuser
471e53b6cf Remove x-dns-prefetch-control meta tag (#3378) 2025-04-04 22:36:22 +02:00
Adam Warner
fd5322c0df login.js: fix deprecated submit() usage (#3380) 2025-04-04 18:47:10 +01:00
Adam Warner
d6c78f5475 groups-lists: remove unneeded HTML escape (#3379) 2025-04-04 18:46:18 +01:00
XhmikosR
addad5495a Replace remaining i element cases with em
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-03 07:59:44 +03:00
XhmikosR
2dd128fbfb Revert the defer addition for now
There are still cases we are getting TypeErrors. We should try again after grouping our assets together in all pages.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-03 07:52:28 +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
XhmikosR
edbe014542 login.js: fix deprecated submit() usage
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-31 17:33:16 +03:00
XhmikosR
510b3c84c9 groups-lists: remove unneeded HTML escape
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-30 15:39:07 +03:00
XhmikosR
f343fac2ab Remove x-dns-prefetch-control meta tag
This is now included in FTL

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-30 15:37:00 +03:00
Dominik
fb86db5d30 Remove meta http-equiv="cache-control" (#3353) 2025-03-30 10:40:53 +02:00
Adam Warner
a73e95e17d Query Log: Add QUERY_EXTERNAL_BLOCKED_EDE15 rules (#3347) 2025-03-29 10:52:29 +00:00
Adam Warner
6bef3707ac Use modernized waitMe plugin (#3213) 2025-03-29 10:52:17 +00:00
Adam Warner
c23315da0d Use pretty URLs when possible (#3351) 2025-03-29 10:45:09 +00:00
Adam Warner
51fc14a4db Set an upper limit on the number of rows returned for the query log (#3346) 2025-03-29 10:34:08 +00:00
XhmikosR
39846a3531 Remove meta http-equiv="cache-control"
This is set in FTL to `no-cache, no-store, must-revalidate, private, max-age=0` so this is redundant

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-29 10:32:44 +02:00