Commit Graph

258 Commits

Author SHA1 Message Date
DL6ER
90a09d1cd0 Fix domain selection for domains containing additional information (such as blocked CNAMEs)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-01-31 06:38:01 +00:00
DL6ER
2fdc676979 Add new CNAME-specific blocking modes [QUERY_GRAVITY_CNAME, QUERY_REGEX_CNAME, QUERY_BLACKLIST_CNAME] and show domain that was the reason for blocking during a CNAME inspection
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-01-29 22:19:26 +00:00
DL6ER
5abbeb2eff Add extra label when blocking happend during deep CNAME inspection.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-01-21 23:34:08 +01:00
Ghalid
d93f1a22cb Remove autocorrect in search boxes on groups
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2020-01-19 13:12:57 -05:00
Ghalid
050fdb1c34 Merge branch 'devel' into patch-1
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2020-01-19 12:49:36 -05:00
XhmikosR
704c352277 Format JS code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:18 +02:00
Adam Warner
73236e8ada Merge pull request #1094 from pi-hole/buttons
Fix buttons appearance
2020-01-02 17:26:28 +00:00
Ghalid
112a5abf80 Merge branch 'devel' into patch-1
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-29 14:22:12 -05:00
DL6ER
03b3a1d604 Merge pull request #1088 from pi-hole/location
Be explicit about `window.location`
2019-12-28 16:58:27 +01:00
Ghalid
1df9c4049b There should only be one search input on each page so there doesn't need to be an array anyway, remove arrow functions as per https://github.com/pi-hole/AdminLTE/pull/1100\#pullrequestreview-335618314
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>

Remove const

Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 14:51:34 -05:00
Ghalid
40d7e1498e Disable autocorrect in search boxes
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 12:06:48 -05:00
XhmikosR
d017c57f84 Fix buttons appearance
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 17:50:50 +02:00
DL6ER
f084fa1991 Merge pull request #1091 from pi-hole/text
Use `text()` for the token
2019-12-17 15:49:05 +01:00
XhmikosR
f486935eb8 Use text() for the token
We don't need any HTML.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 15:57:50 +02:00
XhmikosR
2ba18a1b58 Be explicit about window.location
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 12:14:37 +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
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
37c849ce2b Remove unused variables
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-07 11:49:49 +02:00
denny0754
8991605f04 Fixed Issue#983 2019-08-01 18:14:32 +01:00
Mcat12
8157fa5c8e Don't show the "Click to ..." tooltip when filtering is disabled
Fixes #971

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-28 20:14:05 -07:00
DL6ER
468cd0ccfd Move dataIndex definition into dataSrc function
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-05-10 22:02:52 +02:00
DL6ER
6d896f9892 Use Array.map() instead of looping over elements and pushing the content to a new array
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-05-09 20:10:32 +02:00
DL6ER
ce88417d55 Use the render option of the columns definition to specify how and when the date string is shown.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-05-06 07:41:13 +02:00
DL6ER
c4df1bcced Remove extra ID column, this is intentionally done in a separate commit
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-05-05 13:51:23 +02:00
DL6ER
0590127865 Ensure correct sorting of queries even if they happened withing the same second. Fixes #934
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-05-05 13:50:33 +02:00
DL6ER
f728fd980d DNSSEC UNKNOWN is not an error, it is also shown for queries that are imported from the database
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-02-17 18:40:57 +01:00
DL6ER
8796583818 Implement finer grained external blocking displaying
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-02-04 17:45:30 +01:00
Mcat12
f19a538e7f Clarify wording of DNSSEC Unknown status
Previously, unknown DNSSEC status was marked with a question mark. FTL
loads queries from the database and sets the DNSSEC status to unknown,
because that information is not stored in the database:
https://github.com/pi-hole/FTL/pull/461

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-01-26 13:11:08 -08:00
Mcat12
b1549f1da8 Fix whitelisting from the query log (and DB query log)
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-08-26 12:38:50 -04:00
Mark Drobnak
ec96282fd8 Merge pull request #824 from pi-hole/tweak/blocked_instead_of_Piholed
Change "Pi-holed" to "Blocked" on the Query Log
2018-08-17 12:49:33 -04:00
DL6ER
511b42352a Do not show whitelist button for externally blocked domains as whitelisting these domains has not yet been implemented
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-17 18:26:21 +02:00
DL6ER
9646468022 +Show whitelisting button for regex blocked queries as pihole-FTL can actually whitelist regex filtered domains
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-16 14:24:32 +02:00
DL6ER
c6b6edae05 Change "Pi-holed" to "Blocked" on the Query Log. Also add a new "Blocked (external)" status that will be used by a future version of FTL. I also removed the addition of the dnssec status to the "Blocked (gravity)" status as requests answered from the blocking lists do not have a DNSSEC status.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-16 14:16:30 +02:00
DL6ER
6fb2dab5bc Extend query log and API to be able to handle requests limited to specific forward destinations and query types
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-15 14:36:37 +02:00
DL6ER
afc97b1004 :codacy: review comments
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-09 18:20:09 +02:00
DL6ER
5360bfae9d Add RRNAME as reply type for TXT queries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-09 18:07:40 +02:00
DL6ER
f2cf9ab8d7 Add further reply types
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-09 17:46:50 +02:00
DL6ER
423084dc3b Restructure long chain of "if" statements into a set of "switch" statements. No functional change!
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-09 17:44:26 +02:00
DL6ER
cca2f6fc69 Always start with empty search field on Query Log page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-07-16 18:35:30 +02:00
Mark Drobnak
6fd0709f72 Merge pull request #763 from pi-hole/query-log/remove_DNSSEC_extra_column
Query Log: Remove DNSSEC column
2018-06-14 20:37:37 -04:00
DL6ER
881d80b7f7 Don't append DNSSEC status if wildcard blocked
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-14 17:25:22 +02:00
DL6ER
c93fe7a93f Fix syntax
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-03 12:29:28 +02:00
DL6ER
65cb428f35 Codacy forces { } even for single lines
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-03 12:24:15 +02:00
DL6ER
965a8f31c7 Remember last selected "Show X entries" in Query Log
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-03 12:11:55 +02:00
DL6ER
2df0c21753 Remove extra DNSSEC column. Instead, we integrate the DNSSEC result into the STATUS column if available.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-03 11:32:33 +02:00
Rob Gill
0fd0061e73 Fix query sorting by Reply, DNSSEC and Action
orderData added to column specifications, allowing sorting to work when storage and display columns do not match.

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-26 20:25:34 +10:00
DL6ER
5e8f4b2584 Merge branch 'devel' into FTLDNS 2018-04-01 16:46:35 +02:00
DL6ER
dca374bfcd Simplify NODATA reply type (no need to show A/AAAA here as we show that in the second column) and add reply time if available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-01 16:39:54 +02:00
DL6ER
517fa24fe3 Show "N/A" for queries where the reply has not yet reached the Pi-hole
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-25 13:44:48 +02:00
DL6ER
937a76bf9b Remove color from reply column
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-16 21:01:05 +01:00