Commit Graph

244 Commits

Author SHA1 Message Date
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
86aa24a8e2 Add port to upstream legend key if available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-27 18:35:34 +02:00
DL6ER
f5666e47e6 Query Log: Simplify specifying "type" via URI parameters (via types pie chart)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-27 14:10:12 +02:00
DL6ER
f454617f9c Add cache content pie chart on settings->system page and move all chart-related code into a shared file pi-hole/js/chart.js
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-11 10:39:38 +02:00
DL6ER
7156cc541f Port PHP to Lua Pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 21:57:11 +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
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
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
ccced4c1a8 Fix "undefined" hit counts on the dashboard
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-02 20:57:10 +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
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
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
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
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
Christian König
4e12212f13 Revert empty domain dot replacement
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-08-28 19:19:05 +02:00
Christian König
1fdb5e7475 Remove session timer leftovers
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-08-13 11:16:56 +02:00
yubiuser
f8972ff19d Merge pull request #2198 from pi-hole/zeroLineColor
Reduce border size of line charts
2022-05-07 21:07:06 +02:00
Christian König
b44acd52ec Reduce border size of line charts
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-05-02 21:54:03 +02:00
Christian König
74e506c89a Only remove last data point for line charts as it is not representative there
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-05-01 21:47:14 +02:00
Christian König
e19bbc7480 Scale axes to integer
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-05-01 19:59:36 +02:00
DL6ER
63a87dc43a Only remove last data point for line charts as it is not representative there (#2195)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-05-01 16:59:21 +02:00
RD WebDesign
83ff9a9ee5 Fix xo
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-26 15:30:17 -03:00
RD WebDesign
a04fb0b726 Fix prettier
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-26 15:20:43 -03:00
RD WebDesign
0e04ba0fe4 Show "other" destination as the last graphic item
- Show the item only if it's different than zero

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-26 15:02:13 -03:00
RD WebDesign
adbd9ec3cc Change the order of "uptream servers" graphic items
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-02-14 16:36:51 -03:00
rdwebdesign
171bf81b11 Retreives maxlogage calling api_FTL.php
FTL defines MAXLOGAGE value.
PHP retrieves the value and converts seconds to hours
Javascript calls the API to update the value.

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-02-01 22:56:06 -03:00
yubiuser
7aee470507 Merge pull request #2034 from rdwebdesign/piechart_legend
Better pie chart legend
2022-01-16 17:49:29 +01:00
rdwebdesign
63032c8f6c Better pie chart legend
New icon and function names for pie legends
Minor adjustments to pie chart tooltips

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-01-15 18:43:12 -03:00
RD WebDesign
f0c3ecded3 Use formmated string for "api.php?summary" (#2067)
restoring the old behavior

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-01-10 19:23:37 +01:00
yubiuser
64a3675326 Include FTL's DNS port in web status and give the temperature its own line (#2031)
* Inlcude port in web status

Signed-off-by: Christian König <ckoenig@posteo.de>

* Single line for DNS status

Signed-off-by: Christian König <ckoenig@posteo.de>

* Fix enable/disable status

Signed-off-by: Christian König <ckoenig@posteo.de>

* Give the user-panel a bit more space

Signed-off-by: Christian König <ckoenig@posteo.de>

* Address reviewer's comment

Signed-off-by: Christian König <ckoenig@posteo.de>

* Fix temp sensor

Signed-off-by: Christian König <ckoenig@posteo.de>

* Add  again

Signed-off-by: Christian König <ckoenig@posteo.de>

* Simplify CPU temp code

Signed-off-by: Christian König <ckoenig@posteo.de>

* Use intval() and resize the logo

Signed-off-by: Christian König <ckoenig@posteo.de>

* Do not substitute temperature if FTL is offline

Signed-off-by: Christian König <ckoenig@posteo.de>

* Apply suggestions from code review

Signed-off-by: DL6ER <dl6er@dl6er.de>

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2021-12-29 20:52:32 +01:00
DL6ER
b7c0fcb131 Ensure number formatting is taking place in browser-scope to use client- instead of browser-based number localization
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-12-26 11:32:13 +01:00
DL6ER
fc1b2c56ab Merge branch 'devel' into feat/avoid-window-open 2021-12-21 21:33:44 +01: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