🐶 Sync 2026-04-18 02:04:09

This commit is contained in:
github-actions[bot]
2026-04-18 02:04:09 +08:00
parent 646d2ea077
commit 5eb416f3e2
207 changed files with 3148 additions and 3426 deletions
+2 -1
View File
@@ -9,9 +9,10 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI Access Control Configuration
LUCI_DEPENDS:=
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-accesscontrol
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk
@@ -5,10 +5,7 @@ function index()
return
end
local page = entry({"admin", "services", "mia"}, cbi("mia"), _("Internet Access Schedule Control"), 30)
page.dependent = true
page.acl_depends = { "luci-app-accesscontrol" }
entry({"admin", "services", "mia"}, cbi("mia"), _("Internet Access Schedule Control"), 30).dependent = true
entry({"admin", "services", "mia", "status"}, call("act_status")).leaf = true
end
@@ -1,5 +1,7 @@
a = Map("mia")
a.title = translate("Internet Access Schedule Control")
a.description = translate("Access Schedule Control Settins")
a = Map("mia", translate("Internet Access Schedule Control"), translate("Access Schedule Control Settins"))
a:section(SimpleSection).template = "mia/mia_status"
t = a:section(TypedSection, "basic")
@@ -9,8 +11,8 @@ e = t:option(Flag, "enable", translate("Enabled"))
e.rmempty = false
e = t:option(Flag, "strict", translate("Strict Mode"))
e.rmempty = false
e.description = translate("Strict Mode will degrade CPU performance, but it can achieve better results")
e.rmempty = false
t = a:section(TypedSection, "macbind", translate("Client Rules"))
t.template = "cbi/tblsection"
@@ -28,12 +30,12 @@ e:value(t,"%s (%s)"%{t,a})
end)
e = t:option(Value, "timeon", translate("Start time"))
e.default = "00:00"
e.optional = false
e.default = "00:00"
e = t:option(Value, "timeoff", translate("End time"))
e.default = "23:59"
e.optional = false
e.default = "23:59"
e = t:option(Flag, "z1", translate("Mon"))
e.rmempty = true
-1
View File
@@ -1 +0,0 @@
zh_Hans
@@ -28,9 +28,6 @@ msgstr "开始时间"
msgid "End time"
msgstr "结束时间"
msgid "Enabled"
msgstr "启用"
msgid "Mon"
msgstr "一"
+1
View File
@@ -0,0 +1 @@
zh-cn
+1 -1
View File
@@ -1 +1 @@
/etc/init.d/mia restart
/etc/init.d/mia restart
@@ -13,6 +13,7 @@ uci -q batch <<-EOF >/dev/null
add ucitrack mia
set ucitrack.@mia[-1].init=mia
commit ucitrack
delete firewall.mia
set firewall.mia=include
set firewall.mia.type=script