Commit Graph

23 Commits

Author SHA1 Message Date
DL6ER
d7cf23ba2f Add support the same list being used once as allow- and once as blocklist
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-02-13 08:41:50 +01:00
DL6ER
a53086e0c5 Fix deletion of addresses with spaces in them by avoiding encoding to "application/x-www-form-urlencoded"
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-01-08 20:33:29 +01:00
DL6ER
10ca38da47 Use new special POST :batchDelete callbacks for /api/groups, /api/domains/, /api/clients, and /api/lists and remove some code duplication along the way. Also ensure that the "Default" group cannot be selected for deletion (we already suppress the trash button for this entry)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-12-07 19:00:59 +01:00
DL6ER
a39c8a5c0a Escape only where we are displaying
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-18 22:38:01 +01:00
DL6ER
9815602ecd Call initTable() from getGroups() when finished to avoid a possible race-collision
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-17 10:33:38 +01:00
DL6ER
4d3c0cded9 Fix errors happening when editing groups/clients/domains/lists not being shown. Also fix logic of the strings "enabling/disabling" as the variable "enabled" already has the new (not the current state). This was correct in groups.js, but not the others
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-05 21:54:40 +01:00
DL6ER
bb7a75815b Implement DNS control (enable/disable blocking, possibly with a given timeout)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-07 09:05:49 +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
XhmikosR
444e97b2b9 Rename groups-common.js to utils.js.
It's not used only in group pages, and we should try to move more common stuff here later.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:48 +03:00
XhmikosR
0fa7de82b0 JS: Enforce camelcase.
It's a common convention to use camelcase for variable names.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:44 +03:00
DL6ER
b0f54f5451 Add new Pi-hole diagnostics page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-17 16:07:21 +03:00
DL6ER
54715b7117 Merge pull request #1261 from pi-hole/rm-glyphicons
groups-common.js: use FontAwesome for consistency
2020-05-11 21:53:29 +02:00
DL6ER
963ec6bde1 Merge pull request #1254 from pi-hole/XhmikosR-patch-3
Update groups-common.js
2020-05-11 21:36:32 +02:00
XhmikosR
ed528c00e6 groups-common.js: use FontAwesome for consistency
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-11 16:59:55 +03:00
XhmikosR
e02df5467a Fix lint errors.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-11 09:20:32 +03:00
XhmikosR
ba31df2602 Update groups-common.js
Remove unused assignment

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-11 08:27:29 +03: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
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
Th3M3
3ea59d5d36 shorter button textes & cleanup
Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-05 20:49:53 +02:00
Th3M3
fd983a2b68 improve multiselect
Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-05 14:56:28 +02:00
DL6ER
ded679a9b7 Add IPv4/IPv6 address validation to clients management page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-03-14 13:37:33 +00:00
DL6ER
516c9e946a Add utils object for common code.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-01-27 11:21:02 +00:00
DL6ER
43a861a6a9 Disable form elements while database operation is pending.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-01-22 19:51:48 +01:00