Commit Graph

22 Commits

Author SHA1 Message Date
RD WebDesign
b3501d1cfa Fix prettier complaints
Fix regex adding `v` flag and fix line breaks to respect maximum lenght

Note: these issues were not previously reported because there was a merge
conflict. The prettier test was only executed after the merge conflict was
resolved.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-03-29 11:48:35 -03:00
RD WebDesign
a23462fd2c Add buttons to lines containing "advanced" settings
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-03-28 22:43:03 -03:00
RD WebDesign
bd173da6b7 Fix regex for hostname validation in DHCP settings
When using the `v` flag, hyphens need to be escaped inside a character class.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-03-26 23:02:04 -03:00
Dominik
79c4c14a21 Merge development into new/simple-dhcp-static-leases and address review feedback
Resolve merge conflict in style/pi-hole.css (keep both StaticDHCPTable
styles and DNSSEC query log styles).

Address outstanding reviewer feedback:
- Change save button icon from floppy-disk to checkmark to clarify it
  confirms the row edit, not a final save
- Update hint text to mention "Save & Apply" is still needed
- Add hostname validation on the hostname cell (rejects spaces, commas,
  and other characters invalid in DNS names)

Signed-off-by: Dominik <dl6er@dl6er.de>
2026-03-25 07:23:10 +01:00
DL6ER
ce2a4501c6 Better synchronize lines numbers and textarea
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-24 06:21:34 +02:00
DL6ER
9959791c31 Reject saving if there are still validation errors in the table
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-20 20:40:24 +02:00
DL6ER
3489ddf284 Validate hwaddr and IP address while typing
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-20 20:33:35 +02:00
DL6ER
e7d70559c3 Add line numbers to dhcp.hosts textarea
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-16 08:28:51 +02:00
DL6ER
69b461ae8e Add IPv6 support for static DHCP lease management
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 20:16:30 +02:00
DL6ER
320c8d9973 Allow "-" as separator for MAC addresses
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 16:00:09 +02:00
DL6ER
f1ddb23825 Bind data attributes instead of inlining them for security (to prevent any possibility for code injection)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 13:02:55 +02:00
DL6ER
416468f233 Remove unused code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 12:48:22 +02:00
DL6ER
937cd04734 Add tooltips to the action buttons
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 12:41:01 +02:00
DL6ER
2495a8e175 Add copy from current to static DHCP leases button
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 12:30:08 +02:00
DL6ER
fbed99b338 Add static DHCP lease editing table fully synced with the advanced textarea below
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-15 11:55:29 +02:00
XhmikosR
f69df08a08 Fix deprecated ready function
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-15 18:17:31 +03:00
XhmikosR
756239a6dd xo: enable strict mode
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-23 20:50:12 +03:00
XhmikosR
f8a0a1d4ec Tighten xo rules
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-04-23 07:53:13 +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
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
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