Commit Graph

283 Commits

Author SHA1 Message Date
Adam Warner
c414a4aba1 Merge branch 'devel' into FTLDNS 2018-04-14 00:53:23 +01:00
Adam Warner
b09de8e615 Fix merge conflict
Signed-off-by: Adam Warner <adamw@rner.email>
2018-04-14 00:43:27 +01:00
Adam Warner
2be54bc17a Prevent tooltip from being hidden by sidebar 2018-04-14 00:37:04 +01:00
DL6ER
081afa4924 Remove clients over time graph if no data is returned (privacy mode!)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-04 14:24:59 +02:00
DL6ER
634fa7f2b3 Remove top clients table if no data is returned (privacy mode!)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-04 14:22:35 +02:00
Mcat12
7244e3a9e0 Don't search for the element by ID when we already have it
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-04-02 17:43:19 -04:00
DL6ER
4cf0f4d6ff Make sure the properties exist when looping over objects
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-02 22:29:38 +02:00
DL6ER
e5e956ace6 Automatically detect which _meta to use
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-02 22:07:07 +02:00
DL6ER
8b2e7b89ac Add separate legends for pie charts on the dashboard. Fixes #635
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-02 14:36:21 +02:00
DL6ER
5aba5a1314 Add missing semicolon
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 18:49:15 +02:00
DL6ER
27d40465cd Use jQuery's .html() routine to overwrite element's content
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 18:48:23 +02:00
DL6ER
7bf5207e06 Fix JS error
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 18:39:03 +02:00
DL6ER
2aca7bf764 customTooltips must be defined before used
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 14:00:02 +02:00
DL6ER
062ba5141b Strings must use doublequote
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 11:32:36 +02:00
DL6ER
44774d914c We should split the string at ": " instead of at ":" to be fully compatible with IPv6 addresses
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 10:20:26 +02:00
DL6ER
e3cd76ad7d Add simple measure to prevent compression of the tooltip at the right edge of the screen (may be improved, not tested on mobile screens)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-20 16:50:53 +01:00
DL6ER
b6be5629ac Show only non-zero entries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-20 15:28:39 +01:00
DL6ER
a5ca08c84d Add custom tooltip as suggested by user @kh0505 here: https://github.com/pi-hole/AdminLTE/issues/603#issuecomment-373933097
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-20 15:20:09 +01:00
Mcat12
ff82895be8 Fix error when no client over time data is available 2017-10-11 15:00:51 -04:00
DL6ER
1e89f12d18 Merge branch 'new/clientsovertime' of github.com:pi-hole/AdminLTE into new/clientsovertime 2017-09-30 11:10:03 +02:00
DL6ER
6a75cc2751 Prevent overshoots in the graphs caused by cubic interpolation (just like we do it already for the main graph)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-30 11:09:13 +02:00
WaLLy3K
1ba190bfa2 Merge branch 'devel' into new/clientsovertime 2017-09-30 13:29:36 +10:00
WaLLy3K
2789b69460 Decrease doughnut animation time on first load 2017-09-29 23:12:20 +10:00
DL6ER
0ed1901a8e Apply proper sorting whilst preserve the color order for the doughnut forward destinations chart
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-27 17:03:00 +02:00
DL6ER
18079c128f And another one
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-24 00:11:07 +02:00
DL6ER
ddfed41034 Fix some mistakes
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-24 00:09:58 +02:00
DL6ER
a46f720973 Use absolute instead of relative display 2017-09-23 13:03:55 +02:00
DL6ER
076700fc92 Add "Clients (over time)" graph (needs FTL on branch "new/clientsovertime") 2017-09-22 21:11:57 +02:00
DL6ER
aef4159f44 Add tooltips to dognuth charts
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 22:28:46 +02:00
DL6ER
e7fc65b684 Simplify function updateForwardedOverTime() as data obtained from API is already normalized
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 22:15:19 +02:00
DL6ER
b89c40d63f Simplify function updateQueryTypesOverTime() as data obtained from API is already normalized
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 22:11:54 +02:00
DL6ER
93732f12b1 Re-add doughnut charts (#544)
* Re-add doughnut charts as this has been requested by some users

* Smaller optimizations

* Don't use rotation animation for further updates

* Apply attribute to correct graph

* Ask for unsorted list of forward destinations

* :codacy:

* Move setting to correct graph
2017-07-08 20:18:26 +02:00
TheME
74a6dc3276 Fix glow effect (#528)
* index.js: fix glow effect

* header.php: fix glow effect rule
2017-06-28 23:26:47 +01:00
Mcat12
d061355ff3 Fix FTL offline message 2017-06-20 18:53:10 -04:00
DL6ER
a604037d33 Add unique clients to summary 2017-06-20 13:01:30 +02:00
DL6ER
9b2f4e4673 Minor change to comments 2017-06-04 13:34:46 +02:00
DL6ER
1ee66f36bd ... and Top Ads 2017-06-04 13:32:35 +02:00
DL6ER
1e1da89a9c Add the same for the top domains 2017-06-04 13:32:09 +02:00
DL6ER
f66650be1c Minor change to make the dashboard's javascript compatible with escaped characters (like apostrophe) in client names 2017-06-04 13:29:24 +02:00
DL6ER
e659d79da9 Remove legend, add tooltips and increase hit/hover radius for Query Types over Time graph. Fixes #502 2017-05-13 17:34:36 +02:00
DL6ER
7d4bf08853 Add custom callback for tooltips and disable legend for Forward Destinations over Time graph 2017-05-13 17:32:00 +02:00
DL6ER
b49a7b57c5 Add hover/hit radius for Forward Destinations over Time graph 2017-05-13 17:20:18 +02:00
Mcat12
3f04b346cb Merge pull request #476 from pi-hole/tweak/dashboard
Tweaks for the dashboard
2017-04-24 19:02:02 -04:00
DL6ER
f2415a590d Don't skip line if there are no queries, simply set its contribution to zero 2017-04-21 22:28:23 +02:00
DL6ER
3364f989cf Don't show IP addresses in addition to hostnames of forward destinations to save some space in the legend 2017-04-21 15:50:30 +02:00
DL6ER
3e88e72557 Bugfix: updateQueriesOverTime() has been called twice, but updateQueryTypesOverTime() hasn't been called at all 2017-04-20 13:24:52 +02:00
DL6ER
6e5b55e5ac Only load data if context is available to prevent JS errors 2017-03-28 22:02:40 +02:00
DL6ER
29c6c07af6 Add Query Types over Time 2017-03-28 14:51:19 +02:00
Mcat12
fce406b72d Merge pull request #459 from pi-hole/new/FTLupdatenotification
Show FTL version and update notification (if available) in footer
2017-03-26 19:01:44 -04:00
DL6ER
77468ac541 Fix logic 2017-03-26 22:19:41 +02:00