Commit Graph

38 Commits

Author SHA1 Message Date
Christian König
34e45edbda Fix warnings
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-27 20:01:30 +02: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
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
DL6ER
0d0a8dba67 Change prettier option trailingComma from "none" to the new default "es5" (see https://prettier.io/docs/en/options.html#trailing-commas)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-06-23 11:26:43 +02:00
Adam Warner
074621be54 use textContent instead ot innerHTML to prevent possible xss attack
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2021-04-11 20:04:34 +01:00
DL6ER
5533b4fc9e Improve formatting and make status texts more human-friendly
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-02-07 11:24:23 +01:00
DL6ER
0de0edcc9b Merge branch 'devel' into tweak/replace_domains 2020-11-09 22:28:13 +01:00
DL6ER
a3b24e08aa Reduce code-duplication by moving the addFromQueryLog() function into utils.js. This also fixes non-visible modals on the long-term query log page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-11-09 21:33:09 +01:00
Adam Warner
78f88d9633 return null if text passed is null. Don't try to unescape it!
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-11-08 17:35:24 +00:00
thislooksfun
8f55dfa03b Fix html escaping showing up in input fields. (#1584)
Signed-off-by: thislooksfun <thislooksfun@repbot.org>
2020-10-12 12:26:49 -05:00
DL6ER
0c102fc1d3 Merge branch 'devel' into new/mac_clients 2020-08-19 22:11:43 +02:00
DL6ER
a612b14680 Do not require first element to be a hex value at any costs. It may also be a : in the valid address ::1
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-08-04 22:09:33 +02:00
DL6ER
1b129bcad0 Merge branch 'release/v5.2' into new/mac_clients
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-07-30 21:56:21 +02:00
Adam Warner
15b59954ca Merge pull request #1460 from pi-hole/groups-tootlip
Remove HTML from titles when not needed.
2020-07-02 10:44:29 +01:00
XhmikosR
ea1fd6c323 Remove HTML from titles when not needed.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-06-22 08:53:48 +03:00
DL6ER
a901489a96 Merge branch 'devel' into new/mac_clients
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-05 22:24:17 +02:00
DL6ER
9b8946ee9f Merge branch 'devel' into tweak/exact_searching
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-03 15:21:12 +02:00
Adam Warner
02a4e83d87 create utils.getGraphType() function.
also apply setting to long term graphs
flip logic - only return "line" if the setting is explicitly set to "false"

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-06-01 21:10:14 +01:00
XhmikosR
af47854a2d Use prop() for the disabled attribute.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 10:22:35 +03:00
XhmikosR
61c29cafc4 Move padNumber() to utils.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 11:11:34 +03:00
XhmikosR
7f71f1d5fe Move objectToArray() to utils.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 11:11:32 +03:00
XhmikosR
eab6485edb Move escapeHtml to utils.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 07:41:05 +03:00
Adam Warner
3957e9eef1 Move some duplicated code to utils.js
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-23 11:04:30 +03:00
XhmikosR
4247c973c9 Rename function.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:50 +03:00
XhmikosR
444e97b2b9 Rename groups-common.js to utils.js.
It's not used only in group pages, and we should try to move more common stuff here later.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:48 +03:00