Adam Warner
b351f45cb2
Change the names of the info elements without changing the property names of the API
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-15 09:25:01 +01:00
DL6ER
b7d74ff772
Reinstall loading overlay on long-term graphs page (shown only if data has been requested).
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:50:29 +02:00
DL6ER
a08a85994e
Initial (incomplete) support for themes. Currently, the default is the new Pi-hole dark theme.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:44:52 +02:00
DL6ER
2314a60d5b
Get an endless array of colors without altering the colors array itself.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 17:16:55 +02:00
XhmikosR
7001a1b3a1
Update index.js
2020-05-12 17:58:34 +03:00
Adam Warner
d10f1905cc
fix prettier complaints
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-12 13:21:30 +01:00
Adam Warner
3e94ff0f43
Update adminLTE to 2.4.
...
- Change a few references per upgrade guide
- define colors[] at the top of index.js as AdminLTE.options does not appear to exist. (there may be a better way of doing this)
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-12 12:58:45 +01:00
XhmikosR
e02df5467a
Fix lint errors.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-11 09:20:32 +03:00
DL6ER
73ee91a024
Merge branch 'master' into master-to-development-v5.0
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-10 22:00:07 +02:00
DL6ER
b86ff763c0
Address xo complaints.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-07 07:52:18 +02:00
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