fix(parental): resolve quota increase unblocking and preserve domain rules

- Unblock devices when admin increases daily_quota_minutes in parental_quota.uc
- Unblock devices removed from active quota schedules and flush sets on disable
- Ignore target != 'all' schedules in parental_quota.uc screen-time dropper
- Do not suppress domain DNS reject or nft redirect rules when quota is set
- Run parental_quota.uc tick on service start and reload for instant sync
- Add target:all dependency to daily_quota_minutes in LuCI parental view
- Add tests in content_blocking.sh and parental_control.sh
This commit is contained in:
Dushnilin
2026-09-12 21:31:03 +03:00
parent dceb04677e
commit 040b1291c6
7 changed files with 265 additions and 39 deletions
@@ -1214,13 +1214,14 @@ function createParentalContent(section) {
"daily_quota_minutes",
_("Daily time quota (minutes)"),
_(
"Limit device network usage per day. When the quota is exhausted, the device is blocked until midnight. 0 disables the limit.",
"Limit device network usage per day. When the quota is exhausted, internet access is blocked until midnight. 0 disables the limit.",
),
);
o.modalonly = true;
o.rmempty = true;
o.default = "0";
o.placeholder = "0";
o.depends("target", "all");
o.validate = function (_sectionId, value) {
if (value === "" || value === null || value === undefined) return true;
const n = Number(value);