Commit Graph

1137 Commits

Author SHA1 Message Date
RD WebDesign
e40d43e4d9 Fix NaN error message when FTL is offline
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-03-17 15:22:55 -03:00
Christian König
60883ebdb7 Fix successful temperature notification
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-02-26 22:17:25 +01:00
RD WebDesign
c74162ee47 Preparing PHP and javascript files for the new themes
- change HTML header code
- add new class to Pi-hole logo
- add new classes to auditlog buttons
- add new classes to query log and long-term query log buttons

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-02-16 01:11:24 -03: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
RD WebDesign
d92df4af4c If no unit is set on setupVars, try to use localstorage value, if exists
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-28 17:16:29 -03:00
RD WebDesign
4966f01dde Use and set the unit on setupVars.conf option TEMPERATUREUNIT
New behavior!!!
The temperature unit will be set GLOBALLY and not per browser.

- if a TEMPERATUREUNIT is set in setupVars.conf file, the value will be used.
- if there is no unit set in setupVars.conf, "C" will be used;
- changing the value on the web interface WILL CHANGE setupVars.conf.
- if the browser has an old value set on locastorage, this will be ingnored.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-27 16:45:38 -03:00
yubiuser
ec7b7536c6 Attenuate non-domain warning (#2507) 2023-01-21 19:26:58 +01:00
Christian König
4bc3d73acd Remove warning triangle
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-21 15:18:26 +01:00
Christian König
0155c366d1 Attenuate non-domain warning
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-21 14:54:14 +01:00
Christian König
4473955291 Don't use idstring in messages when it's not necessary
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-20 16:57:34 +01:00
Christian König
acac90f79d Tweak deleting message
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-20 16:57:34 +01:00
Christian König
9f7a04a37c Show two decimals on doughnutTooltip if total share shown is less than 1%
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-18 22:29:00 +01:00
RD WebDesign
9c62cc5225 Remove unused/dead old code
- "quiet" option and related functions (used by blocking page);
- "adlist" option (used by blocking page).

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-13 14:42:40 -03:00
RD WebDesign
2814556c16 Adding option to show all results for queryads
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-13 14:14:52 -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
7b172c5cbc Do not check for unicorn/prefer-logical-operator-over-ternary
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
Christian König
f841f309a2 Fix doughnutTooltip if total percentage of shown slices is less than 0.1%
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-11-17 14:35:32 +01:00
DL6ER
c9a7d5df8e Addressing review comments.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-11-14 15:06:45 -03:00
DL6ER
1a0b24474d Add stale cache query status
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-11-14 15:06:45 -03:00
DL6ER
6367d99560 Update jQuery to v3.6.1. (#2392) 2022-10-28 13:01:34 -04:00
Christian König
c5595903ae Fix quotes
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-22 22:20:57 +02:00
Christian König
74974244fc Same for the long term graph
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-22 22:18:39 +02:00
Christian König
abb5c47b58 Set tooltip interaction mode for overtime graphs
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-22 22:14:23 +02:00
Christian König
8abfde2e5c Indicate item share is less than 0.1%
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-14 11:14:27 +02:00
Christian König
8762248454 Go for 0.1 precision
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-13 18:33:30 +02:00
Christian König
d55847013f Fix deprecated warnings of jquery-migrate
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-13 17:53:13 +02:00
Christian König
fb2635db52 Add comment to explain 99.99 decision
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-13 09:52:09 +02:00
Christian König
4627fba09a Don't show detailed doughnut tooltip if sum is 99.99%
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-13 09:29:35 +02:00
Christian König
c1c4dba1d0 Add minimal rounding to account for internal rounding errors to suppress detailed tooltip on doughnut charts if nothing is hidden
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:55:18 +02:00
Christian König
8979ac3088 Set maintainAspectRatio: true for doughnut charts to resize without margins
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:44:37 +02:00
Christian König
999941ce2f Change tooltip mode for overtime graphs from index to x and set intersect to false
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:03 +02:00
RD WebDesign
5967127c95 Fine tuning legend tootips and links to query log
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-10-05 21:19:03 +02:00
RD WebDesign
62297be1da Use custom legends for doughnut charts
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-10-05 21:19:02 +02:00
Christian König
bbdc4c3d6b Fix doughnut tooltip and legend
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:02 +02:00
Christian König
0245c936d9 Set parsing:false for dashboard graphs
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:02 +02:00
Christian König
958f10c472 Fix line graph reprenstations for overtime* charts
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:01 +02:00
Christian König
624d39df25 Fix OnClickEvent for overtime* charts
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:01 +02:00
Christian König
999295b772 Fix overtime* charts
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:00 +02:00
Christian König
c14c491ea5 Add chartjs-adapter-moment.js
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-05 21:19:00 +02:00
RD WebDesign
425139501b Set min and max values for graph xAxis
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-26 14:41:09 -03:00
Christian König
58f8738907 Reverse logic of in/exlcudin queries from long-term database and rename queryType => statusType
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-09-16 13:04:51 +02:00
Adam Warner
aa529a7430 Add interpretation for Pi-hole message type ADLIST (#2320) 2022-09-14 20:16:50 +01:00
jpgpi250
43056fdcaf Update queries.js
jpgpi250 <jpgpi250@gmail.com>

accompanies FTL PR 1409
2022-09-12 12:57:18 +02:00
RD WebDesign
4d8b19f4c9 Address team decisions
- change checkboxes order;
- remove all lines if all checkboxes are unselected.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-09 14:26:54 -03:00
RD WebDesign
3ef30992c5 Move filter selector to header-box
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-09 14:26:54 -03:00
RD WebDesign
3235056d31 Add the ability to filter domains by type
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-09 14:26:54 -03:00
Christian König
dff293902a Guard database data
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-09-08 11:31:23 +02:00
Christian König
b75ec4530c Add interpretation for Pi-hole message type ADLIST
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-09-08 11:31:23 +02:00
Christian König
418b6f07ff Remove unnecssary <br> from adlist details
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-09-01 08:32:14 +02:00