Commit Graph

2687 Commits

Author SHA1 Message Date
XhmikosR 85ac52adfe Queries: escape querystatus.fieldtext
Even though right now the API doesn't include any HTML code, it's a better practice to be defensive here.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-27 16:41:22 +02:00
Dominik af26dbbbf7 Queries: user fieldtext directly (#3343) 2025-03-27 14:38:09 +01:00
XhmikosR e8e60880ba Queries: use fieldText directly
It no longer includes raw HTML, so it should be fine to use it directly

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-27 15:32:44 +02:00
Dominik 7c72c0cc7f parseQueryString: switch to URLSearchParams and remove unused param (#3340) 2025-03-27 13:29:44 +01:00
Dominik 071e5edb4a sidebar: switch to a real button (#3342) 2025-03-27 13:19:36 +01:00
XhmikosR 6c29d5dab8 Logout: fix redirect
Without this, we were getting into a loop with keep alive enabled
when using Firefox.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-24 08:29:40 +02:00
XhmikosR 5036b1df13 Navigation: switch to a real button
Better for accessibility

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-23 19:19:57 +02:00
XhmikosR 1801e9535b parseQueryString: switch to URLSearchParams and remove unused param
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-23 18:34:49 +02:00
XhmikosR bd693fad80 Queries: fix potential DOM text reinterpreted as HTML issue
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-23 18:32:09 +02:00
XhmikosR 1acb80536b Refactor assets loading
* move fonts first
* move CSS and JS along with the rest
* move default auto theme media checks to the HEAD instead of imports

Also, use `script defer`. This makes the JS files non-blocking.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-23 07:08:37 +02:00
Dominik 877d5f8cb9 Allow path prefix multiplexing the dashboard and API (#3269) 2025-03-22 20:46:37 +01:00
XhmikosR 6a5b40f7bf Add missing rel="noopener" for external links
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-21 16:54:22 +02:00
Adam Warner 983dbc2244 Update fonts (#3309) 2025-03-20 17:03:49 +00: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
Adam Warner 1624bcd269 Use em instead of i and strong instead of b (#3321) 2025-03-17 18:12:10 +00:00
Adam Warner bcfa4c61cc Update browserslistc (#3322) 2025-03-17 18:05:53 +00:00
RD WebDesign 5de572e53f Fix the reversed numbers in Group Management menu items - LCARS theme
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-03-16 00:23:16 -03:00
XhmikosR bca58f6683 Use em instead of i and strong instead of b
They are semantically more correct

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-13 13:04:43 +02: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
XhmikosR 7ebf4e07df Update fonts
Remove the .woff files since our supported browsers support .woff2

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-12 16:38:06 +02:00
XhmikosR bbcda8ae28 Fix stray -
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-12 08:13:20 +02:00
RD WebDesign ffdffbc262 Sidebar: fix missing span end-closing tags (#3316) 2025-03-12 00:21:21 -03:00
XhmikosR a9addd1d8c sidebar: fix missing span end-closing tags
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-11 10:12:22 +02: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
XhmikosR 01a8b8d505 Move image to an external file
It's the original Pi-hole logo, with the following modifications:

* removed colors
* added the classes we need
* added `currentcolor`

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-09 20:01:41 +02:00
XhmikosR 4e6105bef9 Switch to Font Awesome CSS
It's lighter than the JS

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-09 20:01:16 +02:00
Dominik 873cc4bb30 logout.js: add missing preventDefault call (#3301) 2025-03-09 18:27:33 +01:00
XhmikosR 6be8b07973 Remove the obsolete X-UA-Compatible meta tag
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-09 09:29:15 +02:00
DL6ER f8ef22572a Store value of pihole.webhome() in a globally available variable instead of calling pihole.webhome() multiple times
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-08 21:37:21 +01:00
XhmikosR 3f689d0f55 logout.js: add missing preventDefault call
Without it the target `#` is followed which is not wanted

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-08 22:26:31 +02:00
Dominik 3f19392614 Sort interfaces (#3284) 2025-03-08 19:34:36 +01:00
RD WebDesign 90f71a442e Use an arrow to indicate child interfaces
- Add and format the arrow
- Remove the icon used to indent child interfaces (the arrow is enough)

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-03-08 14:28:10 -03:00
XhmikosR 3602a43842 Add missing img dimensions
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-03-08 15:51:01 +02:00
yubiuser 1d38899665 Sort IPv4 before IPv6 addresses on the network overview (#3286) 2025-03-08 14:18:58 +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 592104b839 Sort IPv4 before IPv6 addresses on the network overview
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 21:40:32 +01:00
Dominik 5519b9d98c Improve HTTPS detection behind reverse proxy (#3285) 2025-03-06 20:11:34 +01:00
DL6ER a5e2c627a4 Move the decision whether we are showing the no-HTTPS warning from server-side (where no https may be used when a reverse proxy is used) to user-side where this is more definite
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 19:58:57 +01:00
DL6ER 4ee9c83d9c Sort interfaces:
- interfaces that do not depend on others (and have no children) are placed at the top of the treeview
 - interfaces that do have children get them directly assigned below them

Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 18:42:06 +01:00
DL6ER 68933f7a2c Add total/permitted/blocked filtering for domains and clients on the dashboard's top lists
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 18:33:33 +01: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
DL6ER 556aa65103 Add total/permitted/blocked filtering for domains and clients on the dashboard's top lists
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 17:32:15 +01:00
DL6ER 0af76428f5 Show state, not carrier behind interface in the Pi-hole interface overview
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-03-06 04:24:11 +01:00