Commit Graph

217 Commits

Author SHA1 Message Date
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
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
Adam Warner
d64818c7a5 Merge pull request #1892 from a1346054/fixes
Simple maintenance improvements
2021-09-29 21:17:25 +01:00
Adam Warner
e3a69aff6a Add background colors on Query log + switchable text coloring (as before) (#1893)
* Add subtle background colour to the rows depending on query status

* Do the same for long term query log (and also apply changes missed on last release

* Add per-browser setting for Query Log colorization

Signed-off-by: DL6ER <dl6er@dl6er.de>

Co-authored-by: DL6ER <dl6er@dl6er.de>
2021-09-21 09:39:49 -07:00
a1346054
48c63c0a0b Fix spelling
Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
2021-09-15 21:22:59 +00:00
Adam Warner
42c4ed8e66 Merge pull request #1871 from pi-hole/tweak/non_cached_replies
Add BLOB reply type
2021-09-11 21:00:46 +01:00
DL6ER
5db2fc2786 Remove coloring of the domain names
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-09-09 20:51:16 +02:00
DL6ER
b174bad770 Less color for the Query Log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-09-09 20:34:05 +02:00
DL6ER
b9645ff6c5 Add new BLOB reply type
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-08-27 15:14:33 +02:00
DL6ER
487ac38435 Show response time only when reply is not N/A
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-08-27 15:13:55 +02:00
DL6ER
b4a26d3d59 Add new blocked by database status and NONE reply types
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-08-18 11:24:59 +02:00
DL6ER
f5b59d141b Hide blackbutton for internally generated DNSSEC queries (they cannot be blocked)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-07-04 11:37:10 +02:00
DL6ER
762aba21ec Add note when a BOGUS result was sent down from upstream (we cannot say why it failed in this case)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-07-03 09:37:25 +02:00
DL6ER
a120e72524 Add EDE if available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-06-28 20:35:51 +02:00
DL6ER
df9bf15e75 Query Log: Show if a query was already answered or was only sent to an upstream (and we're still awaiting the reply)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-06-26 11:00:49 +02:00
DL6ER
fb2b87e833 Add new DNSSEC reply type
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-06-23 11:43:14 +02: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
DL6ER
2d02855830 Add interpretation of new query status 14 = already forwarded
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-01-24 10:38:22 +01:00
Fabian Preuß
54dfc54a61 Fix sorting by replies in query log
Signed-off-by: Fabian Preuß <preuss_fabian@gmx.de>
2020-12-27 04:45:24 +01:00
Adam Warner
a28f4e4f18 Prevent malformed DNS queries executing JS on querylog/long term query log
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-12-23 18:11:14 +00:00
dnhp
ef6a740370 Fix issue 1643 - quote numbers in switch case
Signed-off-by: dnhp <34394848+dnhp@users.noreply.github.com>
2020-12-01 12:04:16 +00:00
Adam Warner
483f5037db Merge pull request #1625 from pi-hole/tweak/replace_domains
Add new replace_domain action to allow adding domain(s) exclusively to a specific list
2020-11-28 16:25:38 +00:00
DL6ER
4ee491115a Show upstream destination a query was sent to in the Query Log (both standard and long-term)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-11-13 01:01:49 +01:00
DL6ER
a3b24e08aa Reduce code-duplication by moving the addFromQueryLog() function into utils.js. This also fixes non-visible modals on the long-term query log page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-11-09 21:33:09 +01:00
DL6ER
ad43e5a8dc Add missing space and extend error hiding timeout from 4 to 10 seconds.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-11-09 21:21:30 +01:00
DL6ER
0e924fd910 Add new replace_domain action in groups.php to allow adding domain(s) exclusively to a specific list. In this mode, any occurrences of said domain are first removed from the list before adding the new ones.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-11-08 18:51:49 +01:00
DL6ER
3739c1600e Merge pull request #1622 from pi-hole/tweak/queryFilters
Add altKey to modifiers when clicking on query log
2020-11-08 17:37:08 +01:00
Adam Warner
33b660d4fa Merge pull request #1610 from pi-hole/fix/query_retries
Add new query status 12 and 13 (retried queries)
2020-11-08 15:23:00 +00:00
Adam Warner
e6e3be489b Add altKey to modifiers when clicking on query log
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-11-08 14:58:58 +00:00
XhmikosR
274c196e42 Lint.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-10-26 06:16:04 +00:00
DL6ER
6fcd137ed9 Add new query status 12 and 13 (retried queries).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-10-22 22:30:38 +02:00
Adam Warner
0db41baa23 Simplify query log filter.
Don't require modifier keys to interact (now works on mobile)
Hold modifier key to enable selection for copying domain (long press on mobile)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-10-12 17:41:38 +01:00
DL6ER
ebe6527ab7 Merge pull request #1541 from pi-hole/fix/wording_query_log_links
Fix a few UI issues
2020-08-15 13:07:37 +02:00
DL6ER
64a2419fa9 Add ability to filter for blocked queries in conjunction the client filter in the Query Log. Request such filtered data when clicking on a client in the Top Clients (blocked only) table on the dashboard.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-08-02 19:54:54 +02:00