Commit Graph

2266 Commits

Author SHA1 Message Date
DL6ER
b46a8a5bb6 Address review comment
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-23 21:21:29 +02:00
DL6ER
402017798e Merge branch 'development-v6' into tweak/domain_array
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-14 16:23:31 +02:00
DL6ER
43c8ede674 Add "processData: false" to all JSON data we send
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-13 09:44:01 +02:00
DL6ER
1146248964 Revert "Fix AJAX JSON data (#2742)"
This reverts commit 340d373711, reversing
changes made to 1ed1efdc91.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-13 09:41:10 +02:00
yubiuser
2fbef7f40e Fix update logic for custom branches by comparing hashes (#2737) 2023-10-12 20:22:26 +02:00
Christian König
45b1c66798 Add check for Docker tag
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-11 23:08:32 +02:00
Christian König
bde1396389 Fix tests
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-11 22:52:54 +02:00
Christian König
fc542f5f86 Close at the right place
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-11 22:49:22 +02:00
Christian König
5cd83cfa24 Remove duplication
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-11 22:38:25 +02:00
Christian König
d4d07f766a Fix update logic for custom branches by comparing hashes
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-11 22:04:29 +02:00
Christian König
01366da32f adminlte > web
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-11 21:31:14 +02:00
DL6ER
d2701f7955 We should not use JSON.stringify() but leave escaping to AJAX itself
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-10 19:28:14 +02:00
DL6ER
d64dc0d750 Conditional HTTPS hint on login page (#2730) 2023-10-09 21:39:43 +02:00
DL6ER
e01124fb2b Update scripts/pi-hole/js/login.js
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-10-09 17:38:11 +02:00
RD WebDesign
d969adee0f Adding a final message when gravity is done
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-08 18:30:20 -03:00
RD WebDesign
d62077c8f1 Use a function to parse escape sequences in the text stream
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-08 18:01:28 -03:00
DL6ER
a5a7a4e481 Adapt to most recent FTL changes
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-08 22:59:06 +02:00
RD WebDesign
dfb76f509c Fix the gravity output to use the ${OVER} sequence
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-08 17:46:10 -03:00
DL6ER
eaf068c506 Show HTTPS hint on login page only when HTTPS is actually served. If it is served an a port != 443, add this port as well
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-08 19:35:02 +02:00
DL6ER
de15123b4e Build HTTPS URL using Javascript to ensure we use the exact same URL the user used to get there - do not hard-code pi.hole as hostname
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-08 12:48:08 +02:00
DL6ER
d516aec5ce Give details about sucessfully added and failed items to domains, groups, lists and clients
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-08 10:56:45 +02:00
DL6ER
a6ba2a8eb8 Implement support for adding multiple domains, clients, groups, and list addresses at once
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-07 21:38:10 +02:00
RD WebDesign
555b2ebb35 accordignly => accordingly
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-07 14:41:50 -03:00
Adam Warner
0f6b917ae1 Improve settings level select location (#2720) 2023-10-06 13:21:14 +01:00
DL6ER
6bf3d09ed3 Simplify theme handling (#2718) 2023-09-29 20:42:36 +02:00
RD WebDesign
7daf75044a Passing the type using the data-type attribute
Fix the "Cannot read properties of undefined" error:
- The `function editAdlist(event)` wasn't receiving any arguments,
  because every call to this function is not passing arguments, so
  `event` was undefined.

Using `data-type` attribute to pass the value and avoid the error.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-09-27 19:13:22 -03:00
DL6ER
60ed8d2352 Ensure type is transmitted when editing lists
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-09-27 21:31:03 +02:00
DL6ER
b5feb9e031 Remove theme.lua, source everything there is to know through Lua instead (pihole.webtheme() now returns a full table)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-09-26 09:55:31 +02:00
DL6ER
3a9144d3b7 Always show regex ID when available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-09-13 17:01:45 +02:00
DL6ER
2a68f56a3a Add UI-related antigravity changes
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-09-03 20:03:32 +02:00
RD WebDesign
547d60c5ea Fix: set theme "High contrast dark" as dark
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-08-03 15:13:20 -03:00
DL6ER
5c6d3800ec Show direct link to domainlist on REGEX blocked entries (#2667) 2023-08-03 18:24:48 +02:00
DL6ER
1613115063 Update scripts/pi-hole/js/queries.js
Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-08-03 09:30:56 +02:00
Adam Warner
4452d5f40d Replace some php references with their correct lp counterparts (#2666) 2023-08-02 23:02:15 +01:00
DL6ER
e017b55da9 Revert "Fix login page rediction" 2023-07-29 00:06:05 +02:00
Adam Warner
d59bbd26db php -> lp
There are still a few cases left in debug.js, but as that feature is so far missing, I will leave them for now
2023-07-28 22:55:06 +01:00
DL6ER
d6bf4293bf Show direct link to domainlist on REGEX blocked entries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 23:48:40 +02:00
Christian König
58a6de6daf Remove shutdown and reboot button
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-07-28 23:09:07 +02:00
DL6ER
7a15ea322e Implement new API's endpoints for the buttons on the Query Log and actually show them
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 16:19:11 +02:00
DL6ER
4b6d3c7666 Do not expand Query Log details box when the user is selecting some text. Only do it on innocent clicks
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 16:15:22 +02:00
RD WebDesign
6bd2358580 Use abbreviated month to avoid overlapping due to excessive text length
The new v6 page now put the datepicker element side-by-side with another
element. On certain screen sizes, both controls are still side-by-side,
but the long text was causing an overlap. Shorter month name will avoid
breaking the layout.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-07-26 19:06:33 -03:00
DL6ER
af8957b5ca Ensure the login redirection target ends in / if there is no query string. See https://github.com/pi-hole/FTL/issues/1596 for further details
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-24 19:48:34 +02:00
DL6ER
30d706e561 Group search results by adlist
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-24 18:40:43 +02:00
DL6ER
f0973ce32b replaceAll() requires a global regex
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-24 18:30:09 +02:00
Christian König
827e96d1d0 Fix CI tests
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-07-22 16:30:34 +02:00
RD WebDesign
b26dcf36b8 Settings pages: move level selector from top bar and add page titles
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-07-19 00:39:35 -03:00
Adam Warner
395ceef168 Fix check of ticked non-custom DNS servers (#2640) 2023-07-18 18:28:13 +01:00
Adam Warner
1020f3079d Fix running gravity from the web UI (#2639) 2023-07-17 20:57:52 +01:00
DL6ER
e0e10e7c5f Fix gravity from the web UI
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-17 20:15:55 +02:00
Christian König
f510d6ae3a Fix prettier on footerv6
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-07-12 22:55:29 +02:00