Commit Graph

3823 Commits

Author SHA1 Message Date
DL6ER
79539bdd6c Merge pull request #1121 from pi-hole/fix/queries_over_time
Fix tooltip percentage computation and more...
2020-04-28 04:36:02 +02:00
DL6ER
6c26852295 Use classes for highlighting to ensure the alternate row colors are not lost when removing a column from the selection.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-26 21:51:38 +00:00
DL6ER
cb3be64a23 Simply reply type code.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-26 09:57:11 +02:00
DL6ER
84046528bf Allow ( and ) in adlist URLs.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-26 09:31:45 +02:00
DL6ER
fec4550ab4 Merge pull request #1225 from pi-hole/tweak/idna_uts46
Fix IDN handling
2020-04-25 23:58:37 +02:00
DL6ER
4d9409e708 Apply filtering events only on Ctrl/Command/Shift + Click.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 15:20:58 +02:00
DL6ER
1466ecd486 Add reply type filtering.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 15:04:09 +02:00
DL6ER
f17b216b6b As of ICU 55.1 (released 2015-04-01) the IDNA2003 APIs are deprecated, because UTS #46 should be preferred over the obsolete IDNA 2003 variant. Implement this change. Fixes #1223
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 07:02:37 +02:00
DL6ER
82f4549219 Add filtering on status column.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 06:39:00 +02:00
DL6ER
fcd4751cb7 Implement selective undoing using the Shift key.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-24 12:09:55 +02:00
DL6ER
6f2a878371 Store filtering columns in array instead of in a string. This makes adding a column multiple times impossible.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-24 11:50:55 +02:00
DL6ER
00040d4372 Fill missing time intervals with zero
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-24 10:10:55 +02:00
DL6ER
f8ca9d4173 Replace / by "or".
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 16:21:04 +02:00
DL6ER
77b421b133 Show how many domains have been added in case of an error.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 13:47:50 +02:00
DL6ER
7d1163ff9c Try to be clearer with the "failed to add domain" message by showing the original input when idn_to_ascii() failed and by showing both, the original and the converted domain when the conversion result itself is invalid.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 11:39:57 +02:00
DL6ER
14dd1350df Strip whitespaces from the beginning and end of user input to prevent errors getting triggered due to users trying to add "empty" domains.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 11:27:24 +02:00
DL6ER
51064df4fd Remove pointer cursor when auto-filtering is disabled.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 09:34:06 +02:00
DL6ER
c24900ddff Reduce code duplication
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 09:30:18 +02:00
DL6ER
728d907780 Add meta key modifier and highlight filtering columns
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 09:17:10 +02:00
DL6ER
b74816d8f6 Improve wording
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 08:41:37 +02:00
DL6ER
c49bcb1454 Merge pull request #1147 from Th3M3/fix/custom_tooltips
tweak chartjs customtooltips
2020-04-21 16:34:19 +02:00
DL6ER
2439c3c76a Add comment that holding down [Ctrl] can do something magical
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 15:38:46 +02:00
DL6ER
0aecefcbc8 Add comments and simplify code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 11:41:16 +02:00
DL6ER
8c82872f4a Add missing space in front of and on the dynamically generated button text.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 11:32:15 +02:00
DL6ER
8c1503cac5 Show filtering details on clear button.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 11:20:17 +02:00
DL6ER
e9ba5e440a Add [Ctrl] key action to combine filters.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 10:56:23 +02:00
DL6ER
6fa9d036b4 Initialize regex filter mode and clear search field (if set previously)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 10:39:40 +02:00
DL6ER
7d0882723c Add exact searching using modified regex for query type, domain, and client.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 10:33:37 +02:00
DL6ER
c1ddf66487 Merge pull request #1206 from pi-hole/fix/dhcp_static_error
Check for existence and readability of static leases file before trying to access it
2020-04-21 10:07:15 +02:00
Adam Warner
71d32c34d1 Merge pull request #1141 from Smarre/safer_pihole_execution
Execute pihole through wrapper
2020-04-18 11:27:40 +01:00
dependabot-preview[bot]
ad01f75573 Bump xo from 0.29.0 to 0.29.1 (#1219)
Bumps [xo](https://github.com/xojs/xo) from 0.29.0 to 0.29.1.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](https://github.com/xojs/xo/compare/v0.29.0...v0.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-18 09:57:40 +03:00
Samu Voutilainen
39ec67829b Execute pihole through wrapper
All different exec() calls basically just calls sudo pihole,
with various different syntaxes. Using a wrapper function
allows sanitization of arguments for better safety.

Signed-off-by: Samu Voutilainen <smar@smar.fi>
2020-04-17 07:55:16 +03:00
Adam Warner
cf0c7193ab Merge pull request #1217 from pi-hole/tweak/debuguploadoptin
Flip default state of debug log upload checkbox.
2020-04-16 19:21:50 +01:00
Adam Warner
3f001031a1 Flip default stae of debug log upload checkbox.
Resolves #1216

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-04-16 19:17:35 +01:00
DL6ER
2e7b9191fc Update scripts/pi-hole/js/queries.js
Co-Authored-By: TheME <andreas_fl@outlook.com>
2020-04-14 19:54:43 +02:00
DL6ER
ade3ef5b79 Merge pull request #1214 from pi-hole/fix/ipv6_cidr_regex
Accept open-ended IPv6 addresses
2020-04-13 21:48:21 +02:00
DL6ER
8ad3b70f96 We should also accept open-ended IPv6 addresses such as, e.g., fda2:2001:5555::
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-13 09:48:08 +02:00
Th3M3
fadc6073db tweak chartjs customtooltips...
...and disable 'maintainAspectRatio' for the clients chart to avoid a squeezed display on small screens.

Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-12 15:25:29 +02:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
dependabot-preview[bot]
256887b78e Bump xo from 0.28.3 to 0.29.0
Bumps [xo](https://github.com/xojs/xo) from 0.28.3 to 0.29.0.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](https://github.com/xojs/xo/compare/v0.28.3...v0.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-10 18:34:47 +00:00
DL6ER
373d59f751 Improve conditional forwarding settings so users can specify the subnet according to their needs.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-10 10:54:41 +02:00
DL6ER
0f21f6d269 Release possible previous onClick event handler on regex links to avoid multiple tabs being opened on click.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-10 10:45:26 +02:00
DL6ER
25a08ed161 Merge pull request #1207 from pi-hole/update_devel
Update development from release/v5.0
2020-04-08 12:32:36 +02:00
DL6ER
a64810e00e Merge branch 'release/v5.0' into devel
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-08 12:25:18 +02:00
DL6ER
43b45d3da7 Merge pull request #1100 from Ghalid/patch-1
Disable text correction features, change types to make input fields easier to type in (especially for mobile devices)
2020-04-07 13:59:44 +02:00
DL6ER
8e51f754e4 Merge pull request #1163 from Th3M3/th3m3/add_class_form-group
fix input fields spacing issues
2020-04-07 12:38:41 +02:00
DL6ER
0f892c9ffc Check for existance and readability of static leases file before trying to access it.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-07 12:30:51 +02:00
TheME
ff5e4eec86 fix input fields spacing issues
Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-06 20:52:17 +02:00
DL6ER
3dc9290d77 Merge pull request #1186 from Th3M3/th3m3/improve_group-select
improve group selection
2020-04-06 16:05:25 +02:00
dependabot-preview[bot]
e27a1afff6 Bump xo from 0.28.2 to 0.28.3
Bumps [xo](https://github.com/xojs/xo) from 0.28.2 to 0.28.3.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](https://github.com/xojs/xo/compare/v0.28.2...v0.28.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-06 13:45:57 +00:00