Commit Graph

249 Commits

Author SHA1 Message Date
Christian König
d5b51fecc0 Add query log handling of SPECIAL_DOMAIN
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-08 21:50:18 +01:00
DL6ER
124d304e8f Merge branch 'development-v6' into new/live_query_log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-30 22:12:17 +01:00
DL6ER
24095e215e Disable live updates when on-disk is selected
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-30 22:11:27 +01:00
DL6ER
f252c6ba83 Add overflow-wrap to ensure too long-lines don't overwrite other content in the Query Log details
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-29 12:03:01 +01:00
DL6ER
72e06da4da Add live Query Log feature
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-28 23:52:15 +01:00
Christian König
dc2cfdba28 Fix tests and editorconfig
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-18 09:26:52 +00:00
RD WebDesign
35ab1fd4a0 Use row background colors in Query Log table (#2840) 2023-11-15 21:56:55 -03:00
RD WebDesign
abfa0a44ae Allow open details only on normal rows
Detail rows don't have their own details, so don't allow the click event

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-11-15 17:32:31 -03:00
RD WebDesign
d7466adb65 Use row background colors in Query Log table
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-11-15 16:29:01 -03:00
DL6ER
3cf7eb82b9 Be explicit about where seconds and where milliseconds are used
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-13 22:05:36 +01:00
Christian König
3e1ab7ceb3 Fix inital date/time
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-13 13:58:17 +01:00
DL6ER
e360e3edbd Fix query logs "all time" option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-12 21:18:52 +01:00
DL6ER
c1d0523776 Remove duplicated reply time in child row
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-16 22:56:31 +02:00
DL6ER
d8a1469322 Add "Delay" column to Query Log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-15 12:31:32 +02:00
DL6ER
3a9144d3b7 Always show regex ID when available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-09-13 17:01:45 +02:00
DL6ER
1613115063 Update scripts/pi-hole/js/queries.js
Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-08-03 09:30:56 +02:00
DL6ER
d6bf4293bf Show direct link to domainlist on REGEX blocked entries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 23:48:40 +02:00
DL6ER
7a15ea322e Implement new API's endpoints for the buttons on the Query Log and actually show them
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 16:19:11 +02:00
DL6ER
4b6d3c7666 Do not expand Query Log details box when the user is selecting some text. Only do it on innocent clicks
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 16:15:22 +02:00
RD WebDesign
6bd2358580 Use abbreviated month to avoid overlapping due to excessive text length
The new v6 page now put the datepicker element side-by-side with another
element. On certain screen sizes, both controls are still side-by-side,
but the long text was causing an overlap. Shorter month name will avoid
breaking the layout.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-07-26 19:06:33 -03:00
RD WebDesign
ef513c2c48 Fix previous spellcheck errors
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-06-30 20:35:34 -03:00
DL6ER
3c086b051c Decode URI componentes in GET dictionary
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-27 18:27:22 +02:00
DL6ER
f5666e47e6 Query Log: Simplify specifying "type" via URI parameters (via types pie chart)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-27 14:10:12 +02:00
DL6ER
3e20f8aeef Query Log: Fix specifying "from" and "until" via URI parameters
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-27 14:02:04 +02:00
DL6ER
4d3d64b904 Ported groups-domains.lp and groups-adlists.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-06 20:07:26 +02:00
DL6ER
7156cc541f Port PHP to Lua Pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 21:57:11 +02:00
DL6ER
fb64759fdf Merge remote-tracking branch 'origin/devel' into devel-v6
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-04-26 09:18:39 +02:00
DL6ER
f7eb7d29cb Update Font Awesome 5.15.1 -> 6.3.0 (latest)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-19 14:17:45 +01:00
DL6ER
005b20538e Add cache optimizer status icon in Query Log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-18 18:17:13 +01:00
RD WebDesign
c74162ee47 Preparing PHP and javascript files for the new themes
- change HTML header code
- add new class to Pi-hole logo
- add new classes to auditlog buttons
- add new classes to query log and long-term query log buttons

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-02-16 01:11:24 -03:00
DL6ER
8ddebe8f14 Query Log: Use responsive design for query details
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-01 22:18:43 +01:00
DL6ER
590fec8bce Query Log: Use status icon instead of full-row colors to increase accessibility
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-01 22:09:10 +01:00
DL6ER
c5989768dd Port Query Log to v6.0 API. The new query log offers extensive filtering abilities and uses server-side pagination
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-02-01 21:59:12 +01:00
DL6ER
c9a7d5df8e Addressing review comments.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-11-14 15:06:45 -03:00
DL6ER
1a0b24474d Add stale cache query status
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-11-14 15:06:45 -03:00
Christian König
d55847013f Fix deprecated warnings of jquery-migrate
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-10-13 17:53:13 +02:00
jpgpi250
43056fdcaf Update queries.js
jpgpi250 <jpgpi250@gmail.com>

accompanies FTL PR 1409
2022-09-12 12:57:18 +02:00
Christian König
4e12212f13 Revert empty domain dot replacement
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-08-28 19:19:05 +02:00
RD WebDesign
33c5450ba4 Use consistent output for both query lists
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-05-31 15:26:10 -03:00
DL6ER
4d6481ffa9 Add QUERY_SPECIAL_DOMAIN as new query status
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-04-24 09:17:10 +02:00
Christian König
2903e7239c Fix prettier II
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-04-08 20:49:29 +01:00
Christian König
a3c5236012 Fix prettier
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-04-08 20:49:29 +01:00
Christian König
c75b308f9d Guard FTL not running when loading the query table
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-04-08 20:49:29 +01:00
Christian König
a9ba338a21 Fix list add for already forwarded queries
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-03-16 14:12:39 +01:00
Chris Miceli
99c718296a 1119 Privacy - Query Page and Dom.storage
handle localStorage being null

Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
2021-12-24 22:43:18 -06:00
Dylan Sealy
dcdad3e606 Readded blank line
Signed-off-by: Dylan Sealy <66305635+DylanSealy@users.noreply.github.com>
2021-10-29 15:00:47 +02:00
Dylan Sealy
5e9ba7d1fc Added missing blocked boolean in queries.js
Signed-off-by: Dylan Sealy <66305635+DylanSealy@users.noreply.github.com>
2021-10-28 23:04:25 +02:00
yubiuser
5aeb52ee50 Merge pull request #1948 from pi-hole/tweak/datatables
Tweak to datatables column rendering
2021-10-28 20:21:01 +02:00
yubiuser
98ec9ee2fc Set stateDuration to 0 for all saved datatables to store the state indefinitely (#1944)
* Set stateDuration to 0 for all saved datatables to store the state indefinite

Signed-off-by: Christian König <ckoenig@posteo.de>

* Move stateDuration to utils.js

Signed-off-by: Christian König <ckoenig@posteo.de>

* Remove duplicated code as it is already part of utils.stateLoadCallback

Signed-off-by: Christian König <ckoenig@posteo.de>

* Fix function

Signed-off-by: Christian König <ckoenig@posteo.de>

* Revert "Fix function"

This reverts commit 2f54f5f988.

Signed-off-by: Christian König <ckoenig@posteo.de>

* Revert "Move stateDuration to utils.js"

This reverts commit 6a3e7786bc.

Signed-off-by: Christian König <ckoenig@posteo.de>
2021-10-27 20:06:02 +01:00
Adam Warner
0e483a8eea Force all columns in any declared datatable to render using datatables render.text function to prevent possible (very low risk, requiring authenticated dashboard anyway) XSS.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2021-10-27 19:49:46 +01:00