Adam Warner
68ce56fc56
show a clickable "." when there is a blank domain in the top domain lists
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-06 23:19:50 +01:00
DL6ER
79539bdd6c
Merge pull request #1121 from pi-hole/fix/queries_over_time
...
Fix tooltip percentage computation and more...
2020-04-28 04:36:02 +02:00
Th3M3
fadc6073db
tweak chartjs customtooltips...
...
...and disable 'maintainAspectRatio' for the clients chart to avoid a squeezed display on small screens.
Signed-off-by: Th3M3 <the_me@outlook.de >
2020-04-12 15:25:29 +02:00
XhmikosR
ae13014565
Adapt to the new rules.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-04-10 18:34:47 +00:00
DL6ER
1e22f3349f
Merge branch 'release/v5.0' into fix/queries_over_time
2020-03-31 21:22:18 +00:00
DL6ER
280b73bf8d
Fix computation of percentages in the over-time graph.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-02-04 22:40:11 +01:00
Dan Schaper
e319db238a
Merge branch 'release/v5.0' into fix/queries_over_time
2020-01-25 17:50:43 -08:00
DL6ER
f2713a9b3d
Always show date (but only once if the interval is on the same date), break long lines on small displays, and abbreviate gray color definition.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-01-03 14:56:13 +02:00
DL6ER
0ee3c06c77
Fix tooltip percentage computation. While we're at it, also put the blocked queries under permitted ones and show them in gray instead of blue.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-01-03 14:52:12 +02:00
XhmikosR
793a6ec49f
Remove unused function isMobile()
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-01-03 14:49:41 +02:00
XhmikosR
704c352277
Format JS code
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-01-02 19:42:18 +02:00
Adam Warner
4fbec2a557
Merge pull request #1112 from pi-hole/scrollY
...
`window.scrollY` isn't supported on IE
2020-01-02 17:34:02 +00:00
Adam Warner
ab629c52a1
Replace padStart with a solution that works in older browsers
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2019-12-29 10:17:55 +02:00
XhmikosR
6e55b4f827
window.scrollY isn't supported on IE
...
Replace it with `window.pageYOffset`
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-29 10:12:09 +02:00
DL6ER
1849e8a9c6
Remove unused variable.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-19 15:45:37 +00:00
DL6ER
aca6461468
Change over-time graphs from line to stacked bar representation. This is much more natural for this kind of data. Also, improve DB graphs to always generate a meaningful display (always generate about 200 bars). This graph was basically unusable when specifying a larger range than, say, one week.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-18 13:22:33 +00:00
DL6ER
f9496c5c6e
Merge pull request #1087 from pi-hole/let
...
Use var instead of let.
2019-12-17 15:54:01 +01:00
XhmikosR
18cfd8dab1
Reuse variable and make code clearer
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 12:19:43 +02:00
XhmikosR
ef396ede5b
Use var instead of let.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 10:47:01 +02:00
XhmikosR
9c1846885a
Clean up JS
...
* remove unused variables/functions
* use the dot notation
* use explicit coercion
* remove unneeded else
* use `textContent` instead of `innerHTML`
* cache a few `getElementById` calls
* fix a couple of undefined variables
* various assorted lint tweaks
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-16 20:36:40 +02:00
XhmikosR
7031d19d25
Remove unneeded escape characters
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 21:50:42 +02:00
XhmikosR
d65b5be5e2
A few CSS tweaks.
...
Add utilities classes and fix a few CSS issues.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 21:36:58 +02:00
XhmikosR
5275faacb1
Lowercase hex colors.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-09 16:53:21 +02:00
Adam Warner
a9852b8762
Merge pull request #1064 from XhmikosR/patch-4
...
Remove unused variables
2019-12-08 14:31:16 +00:00
XhmikosR
37c849ce2b
Remove unused variables
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-07 11:49:49 +02:00
DL6ER
ac4a1d0a61
Remove more dead code
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-04 20:46:08 +00:00
DL6ER
0cf3934b87
Merge branch 'patch-1' of https://github.com/WaLLy3K/AdminLTE into WaLLy3K-patch-1
2019-12-04 20:43:20 +00:00
DL6ER
858a916dcb
Top Clients (blocked only) tooltip should show total number of blocked queries. The percentage is already computed correctly.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-11-02 11:07:43 +01:00
DL6ER
df6fd5e1c4
Use correct IDs for spinners in index.js
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-08-27 16:56:42 +02:00
WaLLy3K
ca4130743a
Remove updateQueryTypesOverTime call
...
Remove call as per #915 , which may cause issues with the dashboard not loading stats.
Signed off by WaLLy3K <w3k@pm.me >
2019-06-30 22:17:13 +10:00
DL6ER
d616a1180a
Check data before converting. This allows us to detect if there is no data for the graph so we can hide it. Fixes #932
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-06-15 17:20:49 +02:00
DL6ER
635bdfb717
Undo removal of slice operations
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-02-17 11:52:14 +01:00
DL6ER
e433e90308
Remove dead code from scripts/pi-hole/js/index.js
...
Removed:
- updateForwardedOverTime();
- updateQueryTypesOverTime();
- slicing on overTime data
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-02-11 00:52:24 +01:00
DL6ER
56251d1808
Forward destinations -> Upstreams
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-09-24 12:55:55 +02:00
Mark Drobnak
d7b328e103
Use doublequote strings and add comment
...
Signed-off-by: Mark Drobnak <mark.drobnak@gmail.com >
2018-08-16 17:47:05 -04:00
Mark Drobnak
6af8c76c3f
Use random colors in client graph if presets run out
...
Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com >
2018-08-16 17:38:02 -04:00
DL6ER
55969fab4b
A = 1, AAAA = 2, ...
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-08-15 15:20:27 +02:00
DL6ER
a72dbd8f91
:codacy: changes
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-08-15 15:17:37 +02:00
DL6ER
6f7e1b5b59
Open Query Log with filtering option on Query Type when left-clicking on an element in the pie-chart. The current behavior is moved to middle mouse click.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-08-15 14:33:02 +02:00
Mark Drobnak
da2a6fec69
Merge pull request #817 from pi-hole/codeformatting
...
Changes to code formatting
2018-08-13 16:11:28 -04:00
Rob Gill
5dfe0eedef
Standalone open curly brackets for if and for statements
...
For code consistency all opening curly brackets for if and for statements now stand alone on their own lines
Signed-off-by: Rob Gill <rrobgill@protonmail.com >
2018-08-11 09:26:58 +10:00
Rob Gill
32cd50b718
Changes to formatting only (no functional changes)
...
Issues identified by codacy
*Multiple spaces removed
*piholeChanged defined before use
*curly brackets after if conditions
*lonely if converted to else if
Signed-off-by: Rob Gill <rrobgill@protonmail.com >
2018-08-11 08:29:03 +10:00
Rob Gill
ff29a440b5
Double quotes.
...
i <3 codacy-bot
Signed-Off-By: Rob Gill <rrobgill@protonmail.com >
2018-08-10 13:39:14 +10:00
Rob Gill
ad2439c46d
Adjust customToolTips to deal with pie charts
...
Signed-Off-By: Rob Gill <rrobgill@protonmail.com >
2018-08-10 13:16:46 +10:00
Rob Gill
4cf14dfc30
Constrain tooltips for piecharts
...
This stops the tooltips from disappearing beyond the pie chart's canvas.
Signed-Off-By: Rob Gill <rrobgill@protonmail.com >
2018-08-10 09:59:31 +10:00
Mcat12
dd77a6af58
Add missing semicolon
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-07-15 16:43:14 -04:00
Mcat12
846e3e4184
Fix lag by limiting rendering to every 50ms
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-07-15 15:04:38 -04:00
Mcat12
4542a68f2f
Fix y value of tooltip scaling incorrectly
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-07-15 15:04:07 -04:00
DL6ER
2aef235040
Use client address if name is empty
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-06-07 19:05:27 +02:00
Mcat12
357da1d15a
Expose both name and IP of client
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-06-06 18:27:55 -04:00