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
c02e66fe04
Fix xo errors
...
Signed-off-by: yubiuser <github@yubiuser.dev >
2026-03-16 08:55:20 +01:00
Adam Warner
7207a5c20e
utils: remove duplicate function and convert changeTableButtonStates to vanilla JS ( #3547 )
2025-07-11 18:34:12 +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
XhmikosR
8329997242
Update xo to v1.1.1
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2025-06-27 21:19:40 +03:00
XhmikosR
44226e1bec
Use for...of in more places
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2025-05-12 18:46:36 +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
Dominik
7433144b63
Replace remaining i element cases with em ( #3381 )
2025-04-05 17:05:29 +02: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
XhmikosR
addad5495a
Replace remaining i element cases with em
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2025-04-03 07:59:44 +03: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
6a6a3911f0
Merge branch 'development' into new/web_prefix
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2025-03-18 06:58:10 +01:00
XhmikosR
4c6b927cd3
Update browserslistc
...
Aligns better with what's actually supported
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2025-03-13 08:40:06 +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
a7f1ca7800
Allow path prefix multiplexing the dashboard and API. See https://github.com/pi-hole/FTL/pull/2319 for further details
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2025-03-02 20:20:10 +01:00
RD WebDesign
f3684533aa
Remove leading "*." before turning the domain into a regex
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br >
2025-02-26 14:24:25 -03:00
RD WebDesign
dca9a00563
Change kind from "exact" to "regex" only after the loop
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br >
2025-02-25 17:58:40 -03:00
RD WebDesign
59bd0098df
Use the combination of the 2 fields as data for the Type column
...
to allow correct sorting
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br >
2025-02-04 16:47:21 -03:00
DL6ER
fcbc8a709f
Add possibility to assign groups to newly added entries from the beginning
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-12-23 12:37:17 +01:00
yubiuser
e7f97baab1
Fix prefer-global-this error
...
Signed-off-by: yubiuser <github@yubiuser.dev >
2024-12-07 16:11:35 +01:00
yubiuser
1e922a8b29
Move all files from /scripts/pi-hole/ to /scripts/
...
Signed-off-by: yubiuser <github@yubiuser.dev >
2024-10-28 20:22:09 +01:00