Commit Graph
390 Commits
Author SHA1 Message Date
RD WebDesign f8f3a79b18 Only add toast-body if there is an actual message to be shown
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-09 00:42:27 -03:00
RD WebDesign ddd5d6dfe3 Replace text-bg-xxxxx classes with toast-xxxxx
- use AdminLTE v4 classes to style toasts.
- simplify the javascript code a little, reducing the number of added
  CSS classes.
- remove redundant classes: align-items-center, shadow and rounded
  (styles already applied by the `.toast` class)
- use `toast-danger` when the toast type is "error"

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-09 00:42:13 -03:00
RD WebDesign 220cfc9b19 Remove unnecessary markup from toast title
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-08 01:24:03 -03:00
RD WebDesign 7e05004743 Remove margin-top from the toast icon
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-08 01:02:48 -03:00
yubiuser d4518cfc65 Re-Implement updating toasts
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 22:25:15 +02:00
yubiuser da15e51cdc Return early when adding no client/domain/list/group
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 17:31:19 +02:00
yubiuser d20fde67f7 Show hwaddr when deleting a network table entry
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 13:17:22 +02:00
yubiuser 45614b5fbd Adhere to bootstrap's example and method naming
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 13:10:47 +02:00
yubiuser df4fddcbad Fix processGroupResult itemLabel
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 09:06:12 +02:00
yubiuser 9573b72d5a Remove code to update existing toasts. It made the code very complex and was used only in two places
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 09:05:54 +02:00
yubiuser f832210c2c Remove unnecessary code and make it more human readable
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-07 09:04:21 +02:00
yubiuser 9f978eb36d Replace bootstrap-notify.js by bootstrapv5-toast
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-06 20:13:15 +02:00
RD WebDesign e21c6203a9 Fix revServers table after migrating to datatables v2
- remove from the table footer some elements created by datatables.
  These elements are automatically created to allow table sorting, but the
  footer here is used as an interface to add new reverser servers. We
  don't need them. Also, the elements will interfere with the placeholder
  text (added using CSS, but only to completely empty cells).
- adjust CSS `.actions` class to force right aligned text on the footer.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-05 22:36:07 -03:00
yubiuser ddae3ef2bf Fix xo errors after AdminLTE4 rebase
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-05 22:25:12 +02:00
yubiuser d3eaf1c0f9 Revert "Fix unicorn/name-replacements errors"
This reverts commit a16a6d67e2.
2026-08-05 22:14:49 +02:00
yubiuser 2b27d3752e Fix unicorn/name-replacements errors
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-05 22:09:04 +02:00
yubiuser d330f86540 Fix xo errors
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-05 21:57:30 +02:00
yubiuser 8124a01a8d Fix prettier complaints
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-08-05 21:56:52 +02:00
RD WebDesignandGitHub 01e8530944 Fix merge conflict
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-02 18:27:06 -03:00
RD WebDesignandGitHub d156625334 Merge branch 'development' into new/adminLTE4
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-08-02 17:51:10 -03:00
yubiuserandGitHub af2bb6d7f5 Improve DNS upstream table (#3827) 2026-08-01 06:54:49 +02:00
yubiuser db57bf1e06 Filter table-selected upstreams from the custom upstream server input field
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-07-31 21:17:10 +02:00
3fb6e7ad88 Also remove empty lines
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-07-31 17:29:11 +02:00
RD WebDesignandGitHub 326eb0bcf4 Fix the functions used to validate CF server IPs (#3830) 2026-07-30 04:27:06 -03:00
RD WebDesign 6a205a2c17 Replace class d-lg-none with d-xl-none on the query log table
The previous theme used the `hidden-lg` class to hide this element on
screens larger than 1200px.

Now, we need to use `d-xl-none` to do the same.
2026-07-30 01:47:01 -03:00
RD WebDesign eadba811e2 Fix the functions used to validate CF server IPs
The functions should only accept IPs with an optional port:
- IPs are valid: "a.b.c.d"
- IPs with port ("a.b.c.d#p") are allowed if the port is valid
- network ranges (CIDR) should be rejected
- empty ports ("a.b.c.d#") should be rejected
- all other strings should be rejected

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-29 18:24:34 -03:00
RD WebDesignandGitHub 6bf0fb3571 Merge branch 'development' into new/adminLTE4
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-29 16:15:24 -03:00
RD WebDesignandGitHub e127974356 Show the API error message when adding from the query log fails (#3824) 2026-07-29 16:10:21 -03:00
RD WebDesign af53bf7108 Fix typo in the validation regex (static DHCP lease table)
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-29 00:14:48 -03:00
4378690c1d Include the domain in the error message title
Co-authored-by: yubiuser <github@yubiuser.dev>
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-28 23:24:59 -03:00
yubiuser 4914bf747e Simplify selector
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-07-28 22:14:48 +02:00
yubiuser 2691919645 Fix DNS upstream table
Signed-off-by: yubiuser <github@yubiuser.dev>
2026-07-28 15:26:40 +02:00
RD WebDesignandGitHub 5027793d61 Merge branch 'development' into fix/query-log-cname-allow
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-28 00:45:15 -03:00
RD WebDesign 951acc599e Remove the old Alert Modal with and use showAlert() function
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-28 00:44:39 -03:00
DL6ER c3b3db257e Show the API error message when adding from the query log fails
Adding a domain from the query log opens a modal that, on any HTTP
error, showed a fixed "Timeout or Network Connection Error!" text. The
most common case - the domain is already on the list - is returned by
FTL as HTTP 400 with `{"error":{"hint":"The item is already present"}}`,
so it surfaced as a misleading network error.

We now read the JSON error body and show its hint (or message), falling
back to the network-error text only when there genuinely is no response
body.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2026-07-27 12:12:22 +02:00
RD WebDesign d81cc80f48 Fix dropdown-menu text color, when the theme is set to "default-auto"
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-18 20:09:43 -03:00
RD WebDesign 9f631da088 Fix classes used to hide elements
- Replace the old `.hidden-*` classes and use the new `.d-*-none`. This
  classes apply `display: none` to the elements matching the size or above
- remove unused/unnecessary classes from pi-hole.css

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-18 01:42:12 -03:00
RD WebDesign bcf825e0d7 Adjust bstreeview indentation to align icons
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-18 00:39:33 -03:00
Adam Warner 72d682c284 Fix xo lint errors surfaced after rebasing onto development
This branch's code predates development's xo 2 -> 3 upgrade and hadn't been checked against its stricter ruleset. Fix the new violations: drop unnecessary globalThis prefixes on location/matchMedia, prefer location.assign() over href assignment, use early returns instead of wrapping onDropdownClose bodies in an if, fix a parameter shadow in getGroups, and use {capture: true} instead of a bare boolean for addEventListener.

Signed-off-by: Adam Warner <github@promofaux.dev>
2026-07-17 22:48:48 +01:00
RD WebDesignandAdam Warner b3dc96b65e Adjust colors for Query Log buttons
- simplify function to avoid code duplication;
- remove unnecessary CSS classes from the buttons;
- set button colors using CSS variables;

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:43:26 +01:00
RD WebDesignandAdam Warner 48d17c7eb0 Replace the old .btn-button class with Bootstrap 5 class.
This class job was basically make the element 100% wide.
We can replace it with the Bootstrap class: `w-100`, or (if the element
already has its own class) we add `width: 100%`.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:01 +01:00
RD WebDesignandAdam Warner 306c3feeca Tom Select adjustments and dark theme colors
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:01 +01:00
RD WebDesignandAdam Warner eac51c5fb9 Adjust Update Gravity page
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:00 +01:00
RD WebDesignandAdam Warner 3c68d2c2ea Fix the Serach Lists page
- fix the hidden output element;
- use Bootstrap 5 classes to style the output;

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:00 +01:00
RD WebDesignandAdam Warner f08a23b8b8 Adjusting Settings All page
- use "btn-primary" buttons (TODO: set primary color as the theme color);
- adjust font-sizes, colors, margins and paddings;
- clean up old/unnecessary CSS rules

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:00 +01:00
RD WebDesignandAdam Warner 1b36ff898d Fix footer layout
- add `.list-inline-item` class to the versions;
- remove unused/invalid classes;
- use bootstrap 5 classes to adjust the layout;
- only add class `w-100` when there is content.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:00 +01:00
RD WebDesignandAdam Warner 83dd675b12 Fix notifications created using showAlert() function
The new theme (AdminLTE 4 + Bootstrap 5) uses different z-index for some
elements. The `nav#navigation` element uses z-index=1034, which is higher
than the default inital z-index (1030) used by bootstrap-notify, resulting
in notifications partially hidden under the navigation bar.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2026-07-17 22:40:00 +01:00
DL6ERandAdam Warner 07c6b01d8a Fix comment indentation for editorconfig and equalise list icon columns
- The multi-line comments added in the previous UI-fix commits aligned their
  continuation lines with an odd number of leading spaces, which the
  editorconfig check rejects (it wants multiples of two). Re-indent them.
- Equalise the two single-icon columns (list status and list type) on the
  subscribed-lists table so the type column is no longer noticeably wider than
  the status one, and centre their icons.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2026-07-17 22:40:00 +01:00
DL6ERandAdam Warner e175737cfc Improve the group tables' bulk-select checkbox appearance
Widen the select column from 15px to 2rem so the checkbox is no longer cramped
against the column edges, centre it horizontally and vertically, and draw a
slightly larger, rounded box (dimmed until the row is selected) so the control
reads as a proper checkbox.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2026-07-17 22:39:59 +01:00
DL6ERandAdam Warner 4de8c48ad9 Colour the list status icons in the table to match the legend
The subscribed-lists table rendered each status icon without the coloured
`list-status-N` class the legend uses, so they showed in the default text
colour instead of green/orange/red. Add the matching class so the table icons
convey the same status colours as the legend.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2026-07-17 22:39:59 +01:00