Commit Graph

72 Commits

Author SHA1 Message Date
DL6ER
10ca38da47 Use new special POST :batchDelete callbacks for /api/groups, /api/domains/, /api/clients, and /api/lists and remove some code duplication along the way. Also ensure that the "Default" group cannot be selected for deletion (we already suppress the trash button for this entry)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-12-07 19:00:59 +01:00
DL6ER
781118c8b8 Only refresh data when page/tab is currently visible
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-24 22:48:31 +01:00
DL6ER
a39c8a5c0a Escape only where we are displaying
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-18 22:38:01 +01:00
DL6ER
bc1c6bc117 Explicitly set contentType to avoid promotion to jsonp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-18 12:54:41 +01:00
DL6ER
9422016bb0 Fix error displaying when editing groups/clients/domains/lists (#2808) 2023-11-12 14:04:03 +01:00
Christian König
6f6f0f98fd Fix notification icon and add details for Local DNS/CNAME records
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-05 22:15:49 +01:00
DL6ER
4d3c0cded9 Fix errors happening when editing groups/clients/domains/lists not being shown. Also fix logic of the strings "enabling/disabling" as the variable "enabled" already has the new (not the current state). This was correct in groups.js, but not the others
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-05 21:54:40 +01:00
Christian König
b256f5a627 Update bootstrap-notify to 3.1.5 (taken from master branch of their repo, last tagged version is 3.1.3)
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-02 23:14:38 +01:00
Christian König
dd89021cfb Fix notification animation
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-02 23:03:24 +01:00
DL6ER
df1b128cbb Nicely format error toasts
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-29 07:55:47 +01:00
DL6ER
808c9f0abd Fix how Bootstrap-Notfy is used by Pi-hole
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-27 16:12:20 +02:00
Christian König
5c14641aa2 Remove leftover of line chart option
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-24 23:48:15 +02:00
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
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
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
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
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
DL6ER
3085544001 Do not hide mock MAC addresses int the network table
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-06-10 07:50:17 +02:00
DL6ER
3c086b051c Decode URI componentes in GET dictionary
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-27 18:27:22 +02:00
DL6ER
756190b65a Merge remote-tracking branch 'origin/devel' into devel-v6
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 20:06:53 +02:00
DL6ER
a83411cb0b Finish local DNS records
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-09 10:57:33 +02:00
DL6ER
4d3d64b904 Ported groups-domains.lp and groups-adlists.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-06 20:07:26 +02:00
Christian König
34e45edbda Fix warnings
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-27 20:01:30 +02:00
DL6ER
045bfdabd4 Use the much quicker /api/info/messages/count to get the number of available messages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-04 11:37:44 +02:00
DL6ER
fb64759fdf Merge remote-tracking branch 'origin/devel' into devel-v6
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 09:18:39 +02:00
DL6ER
d802f8e913 Implement session deletion from the settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-03-08 21:11:03 +01:00
RD WebDesign
aa5068bbe9 Using a new function to retrieve CSS values from classes
- create a new function to access CSS values, even if not directly used on the page;
- remove the empty harcoded HTML `<span>` placeholders used only to source the colors from CSS classes

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-02-11 19:52:13 -03:00
DL6ER
b99ad16720 Implement DHCP leaes table on Settings -> DHCP tab
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-09 18:41:47 +01:00
DL6ER
8ddebe8f14 Query Log: Use responsive design for query details
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-01 22:18:43 +01:00
DL6ER
fb158191ff Port Pi-hole diagnosis system ("messages") to the new v6.0 API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-01 21:31:07 +01:00
DL6ER
4eb9a4cf29 Port dashboard landing page to v6.0 API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-01-31 20:41:12 +01:00
DL6ER
4cf7a82713 First steps into the v6.0 world. Login and logout is now possible and all pages load without PHP errors (even when they are mostly empty until we added all the new API methods)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-01-31 20:10:53 +01:00
Christian König
65dd61845e Do not use unicorn/switch-case-braces
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-11-26 12:53:56 +01:00
Christian König
7a9cf91def Use xo 0.53.0 and fix errors
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-11-26 12:53:56 +01:00
RD WebDesign
f8ab31f431 Allow delete multiple items - Group pages
- add checkboxes, buttons and functions to groups page;
- add checkboxes, buttons and functions to clients page;
- add checkboxes, buttons and functions to domains page;
- add checkboxes, buttons and functions to adlists page;
- move function to `utils.js`;
- fix CSS after insert a new table column;

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-22 22:22:03 -03:00
RD WebDesign
521ecd75d5 Fix visual bugs
- fix top circle position;
- fix circle background colors for each theme;
- special CSS for LCARS theme;
- change CSS selector for top navbar `<li>`: after removing the first
  item, the "old" second item became the first one.
- use a better color for all themes;
- hide submenu counter during animation;
- hide the other counter when submenu is opened (mobile too)

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-13 14:22:12 -03:00
RD WebDesign
2324bf5078 Removing the triangle icon
The message count was moved to the "hamburger" menu icon.
Using more discreet color for the circle.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-06 18:49:22 -03:00
RD WebDesign
f90ae05bd0 Sidebar warning count
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-03-25 19:25:42 -03:00
DL6ER
af9a6f3444 Merge branch 'devel' into new/nonfatal-dnsmasq-warnings
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-03-20 09:00:57 +01:00
RD WebDesign
6288112044 Allow bulk deletion of warnings
- add Datatables extension Select (CSS and js);
- add Datatables extension Buttons (CSS and js);
- allow selection of multiple warnings;
- new button to select all;
- new button to delete all selected warnings;
- add icons for the buttons;
- hide buttons if all messages were deleted;
- update CSS themes to format the new items;
- Fix: update icon count after warning deletion;
- Fix: remove triangle icon after delete last warning;

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-02-26 19:59:13 -03:00
Chris Miceli
cb083c061c 1119 Privacy - Query Page and Dom.storage
fix else

Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
2022-02-05 23:04:29 -06:00
Chris Miceli
dde4ac7d3e 1119 Privacy - Query Page and Dom.storage
be explicit for undefined

Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
2022-02-05 22:38:56 -06:00
Chris Miceli
bb2934e243 1119 Privacy - Query Page and Dom.storage
implement memory storage for functionality in case of no storage

Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
2022-02-05 22:04:14 -06:00
Chris Miceli
99c718296a 1119 Privacy - Query Page and Dom.storage
handle localStorage being null

Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
2021-12-24 22:43:18 -06:00
RD WebDesign
7927ac1815 Improving code readability for lists (index.js and db_lists.js) (#1994)
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-12-18 13:15:24 +01:00
yubiuser
57bf116e47 Unescape German umlauts (#1914)
* Unescape German umlauts

Signed-off-by: Yubiuser <ckoenig@posteo.de>
2021-10-04 21:30:21 +01:00