Commit Graph

79 Commits

Author SHA1 Message Date
rdwebdesign
8746dc76ba Using the same date interval (7 days) for the default value.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-06 23:34:37 -03:00
rdwebdesign
319b394c3a Allow this functionality only after a daterange has been selected by the user
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-06 19:12:25 -03:00
rdwebdesign
ac5767118a fixing prettier complaint
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-05 20:14:18 -03:00
rdwebdesign
8bce551012 Allows reloading the queries after modifying the options.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-05 19:54:02 -03: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
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
Lion Ralfs
7462904c60 fix: row background colors in query log (#1906)
Signed-off-by: Lion Ralfs <lion.ralfs@gmail.com>
2021-10-05 14:48:54 +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
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
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
e045ec3d32 Fix prettier complains
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-02-18 20:24:03 +01:00
yubiuser
cc2030968d Don't count new status types as blocked queries
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-02-17 22:55:27 +01: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
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
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
22f0fd6a27 Merge pull request #1578 from sgtlaggy/fix-query-log-whitelist
Fix Whitelist buttons on query log pages
2020-11-08 18:29:18 +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
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
sgtlaggy
caf9e2af09 fix whitelist buttons on query log page
Signed-off-by: sgtlaggy <8661717+sgtlaggy@users.noreply.github.com>
2020-09-05 14:04:56 -07:00
Adam Warner
acfc29004d Merge pull request #1529 from yubiuser/tweak/24hTimeRangePicker
Change timePicker to 24h format in dateragepicker
2020-08-15 10:35:59 +01: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
Adam Warner
3a68efc4b0 fix a complaint from the CI
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-07-16 18:44:00 +01:00
Adam Warner
606568054a enable IP sorting on the query/long-term query pages. Appears to work with a mixture of hostnames/IP's
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-06-07 11:09:20 +01:00
XhmikosR
68297b14b6 Merge pull request #1374 from pi-hole/radix
Enable radix ESLint rule
2020-06-05 10:28:03 +03:00
DL6ER
4bf018b52c Add missing radix information in parseInt().
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-04 16:57:55 +02:00
DL6ER
ffbeba4ad5 Extend warning shown on server-side data processing errors.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-04 14:55:55 +02:00
DL6ER
e7eec95ba4 Use all the new Pi-hole v5.0 blocking status code also in the long-term data where it was forgotten to add them.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 10:03:32 +02:00
XhmikosR
cecb5aa88c Use $(fn)
This is the recommended way in jQuery 3.x.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 10:24:55 +03:00
DL6ER
cce92ccde4 Remove obsolete add.php script, use groups.php everywhere instead.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-26 23:07:20 +02: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
73ee91a024 Merge branch 'master' into master-to-development-v5.0
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-10 22:00:07 +02:00
DL6ER
cc4e3c9a95 Query Log and long-term data Query Log: Substitute empty domains by "."
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-07 09:17:47 +02:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +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
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
DL6ER
03b3a1d604 Merge pull request #1088 from pi-hole/location
Be explicit about `window.location`
2019-12-28 16:58:27 +01:00
XhmikosR
d017c57f84 Fix buttons appearance
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 17:50:50 +02:00
XhmikosR
f96d6cc0f0 Remove more unused variables
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 17:15:59 +02:00
DL6ER
aad00db5b6 Merge pull request #1085 from pi-hole/reuse-dateformat
Reuse the `dateformat` variable
2019-12-17 15:55:41 +01: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