Commit Graph

16 Commits

Author SHA1 Message Date
XhmikosR 876e7d8bd9 Use minified daterangepicker builds.
The official distribution doesn't include minified files, so just minify the files ourselves.

It's in maintenance mode anyway.

Commands for future reference:

* cleancss --compatibility ie9 -O1 specialComments:0 -o daterangepicker.min.css daterangepicker.css
* terser daterangepicker.js --compress typeofs=false --mangle --source-map url=daterangepicker.min.js.map -o daterangepicker.min.js

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 08:26:44 +03:00
Adam Warner dd678da9c6 Merge pull request #1376 from pi-hole:deduplicate-js
Deduplicate js
2020-05-29 23:09:59 +01:00
XhmikosR c108f7eef0 Remove duplicate token div
This is already added in header.php

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 07:54:58 +03:00
XhmikosR eab6485edb Move escapeHtml to utils.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 07:41:05 +03:00
XhmikosR b20b6797c1 HTML hidden attribute does not need a value.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 19:03:02 +03: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 bfd944e41c Switch to the plain chart.js build and moment.js to v2.24
This avoids including moment.js twice since chart.js bundle included moment.js

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-12 23:05:59 +03:00
Ghalid 357cb17acf Remove left text align for date range buttons
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-20 16:59:41 -05:00
Ghalid 2a71df5bb8 Change "Click to select..." in Long term data pages to buttons instead of text inputs
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-20 15:49:29 -05:00
Donny Kurnia 8d18cfcd8f update font-awesome class for clock icon in Fontawesome 5
Signed-off-by: Donny Kurnia <donnykurnia@gmail.com>
2019-06-04 16:13:01 +07:00
Mcat12 db68782f62 Replace fa-refresh with fa-sync
Font Awesome 5 replaced the refresh icon from 4 with fa-sync:
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes

Fixes #941

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-05-19 14:16:55 -07: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
Mcat12 3b635e0245 Move script tags inside html tag
Fixes #863

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 13:51:14 -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
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
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