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
RD WebDesign
c3e879a9ce
Swap colors for top lists bars. ( #1981 )
...
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br >
2021-11-21 08:47:18 +01:00
rdwebdesign
1a88de961f
"7 days fix" on db_lists.js and db_graph.js
...
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br >
2021-11-07 03:26:03 -03:00
yubiuser
b4780e4a7f
Fix date ranges in datarangepicker ( #1940 )
...
Signed-off-by: Christian König <ckoenig@posteo.de >
2021-10-25 17:49:49 +01:00
DL6ER
0d0a8dba67
Change prettier option trailingComma from "none" to the new default "es5" (see https://prettier.io/docs/en/options.html#trailing-commas )
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-06-23 11:26:43 +02:00
yubiuser
5565d00617
Change timePicker to 24h format in dateragepicker
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2020-07-26 12:47:32 +02:00
XhmikosR
eab6485edb
Move escapeHtml to utils.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-29 07:41:05 +03:00
DL6ER
c86515e028
Merge pull request #1372 from pi-hole/indexOf
...
Always use `!== -1` to check for a string's existence
2020-05-25 20:42:02 +02:00
XhmikosR
4356bd5f04
Always use !== -1 to check for a string's existence
...
`String.indexOf()` returns -1 if the string isn't found so this is consistent with the rest of the codebase.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-25 09:38:47 +03:00
XhmikosR
623087346a
Enable no-zero-fractions rule
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-17 15:03:52 +03: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
b23afb4516
Dark mode for Long-term Query Log and Lists
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:44:55 +02:00
XhmikosR
ae13014565
Adapt to the new rules.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-04-10 18:34:47 +00:00
XhmikosR
704c352277
Format JS code
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-01-02 19:42:18 +02:00
DL6ER
8898a742d2
Use one variable less.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-12-17 18:14:49 +02:00
XhmikosR
f96d6cc0f0
Remove more unused variables
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 17:15:59 +02:00
XhmikosR
7d9e32bac6
Reuse the dateformat variable
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2019-12-17 09:59: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
Mcat12
2ba8787261
Merge branch 'release/v4.2' into devel
...
# Conflicts:
# scripts/pi-hole/js/db_graph.js
2019-02-03 11:24:19 -08:00
DL6ER
a975576616
Long-term data: Show date range only after user chose a valid range. Fixes #897
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-01-22 23:30:36 +01:00
DL6ER
8ae36a0dcb
Fill daterange field with initialization (now-6d -> now)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2019-01-20 11:36:39 +01: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
Mcat12
afe2f73bef
Use triple equals in the other places too
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-01-07 14:20:41 -05:00
Mcat12
322f73fcac
Use triple equals
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-01-07 14:13:57 -05:00
Mcat12
081f0bb98c
Add timeout warning to database pages
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-01-07 14:04:38 -05:00
Mcat12
cff98f8ebe
Remove testing change
2017-08-08 20:49:31 -04:00
Mcat12
127314e98e
Fix undefined total in DB top lists
2017-08-08 20:46:01 -04:00
DL6ER
40ae7fb0ca
Add long-term graph page ( #542 )
...
* Add api_db.php?getGraphData
Signed-off-by: DL6ER <dl6er@dl6er.de >
* Add new DB Graph page
Signed-off-by: DL6ER <dl6er@dl6er.de >
* Adjust x-axis format
Signed-off-by: DL6ER <dl6er@dl6er.de >
* Tweaks to long term stats (#543 )
* add maxDate to Datepicker
* remove `GO` Button from datepicker input, instead hook into the apply event to update the graphs/charts when the date range is selected
* :codacy:
Signed-off-by: DL6ER <dl6er@dl6er.de >
* Fix comment + another :codacy:
* Remove duplicated code
* Add click callback to DB graph that sends the user to the DB query log page. This required some re-write of the DB queries page.
* Remove uneeded global variable
* Remove minDate and MaxDate as it is causing issues on fresh installs
* Oh :codacy: ...
2017-07-08 23:42:21 +02:00
Mcat12
220a47f67e
Merge pull request #537 from pi-hole/tweak/long_term_24H
...
Daterangepicker: Display time in 24H modus
2017-06-30 11:11:06 -04:00
DL6ER
76e4cc6a40
Fix datrangepicker for "Today" and "Yesterday". Add "All Time" option. ( #535 )
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2017-06-30 17:04:10 +02:00
DL6ER
273f9373b2
Display time in 24H instead of 12H mode
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2017-06-30 13:40:13 +02:00
DL6ER
9f7fb18f31
Long-term statistics implementation (using FTL's database) ( #521 )
...
* - Add DB Top Lists
- Add DB Query Log
- Add DB API
* Allow to select only queries that are equal/newer than the oldest entry in the database
2017-06-29 20:57:09 +02:00