🛸 Sync 2026-09-20 11:04:31

This commit is contained in:
github-actions[bot] committed 2026-09-20 11:04:31 +08:00
1 parent 4b4d482791
commit 8df28edee1
10 files changed
+14 -69

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=26.9.16
PKG_RELEASE:=283
PKG_RELEASE:=284
PKG_PO_VERSION:=$(PKG_VERSION)
PKG_CONFIG_DEPENDS:= \
@@ -83,21 +83,6 @@ o = s:option(DynamicList, "users", translate("User"))
for i, v in ipairs(user_list) do
o:value(v[".name"], v.username)
end
o.validate = function(self, value, t)
if type(value) == "string" then value = {value} end
if type(value) == "table" then
for _, u in ipairs(value) do
local found = false
for _, v in ipairs(user_list) do
if u == v[".name"] then found = true; break end
end
if not found then
return nil, translate("Please configure user info on the User Management page.")
end
end
end
return value
end
o:depends({ protocol = "mixed" })
o:depends({ protocol = "socks" })
o:depends({ protocol = "http" })
@@ -76,21 +76,6 @@ o = s:option(DynamicList, "users", translate("User"))
for i, v in ipairs(user_list) do
o:value(v[".name"], v.username)
end
o.validate = function(self, value, t)
if type(value) == "string" then value = {value} end
if type(value) == "table" then
for _, u in ipairs(value) do
local found = false
for _, v in ipairs(user_list) do
if u == v[".name"] then found = true; break end
end
if not found then
return nil, translate("Please configure user info on the User Management page.")
end
end
end
return value
end
o:depends({ protocol = "http" })
o:depends({ protocol = "socks" })
o:depends({ protocol = "shadowsocks" })
@@ -50,21 +50,6 @@ for i, v in ipairs(user_list) do
o:value(v[".name"], v.username)
end
o:depends({ custom = false })
o.validate = function(self, value, t)
if type(value) == "string" then value = {value} end
if type(value) == "table" then
for _, u in ipairs(value) do
local found = false
for _, v in ipairs(user_list) do
if u == v[".name"] then found = true; break end
end
if not found then
return nil, translate("Please configure user info on the User Management page.")
end
end
end
return value
end
o = s:option(Flag, "realms", translate("Realms"))
o.default = "0"
@@ -3,13 +3,6 @@ local map = self.map
local api = map.api
local section = self.section
-%>
<style>
[id*="_users"] .cbi-dropdown li[data-value="-"],
[id*="_users"] .cbi-dropdown input[type="text"],
[id*="_users"] .cbi-dropdown .preview li[data-value="-"] {
display: none !important;
}
</style>
<script type="text/javascript">
//<![CDATA[
function server_update_config(cfgid, data, redirect_url) {
-3
View File
@@ -1682,9 +1682,6 @@ msgstr "用户管理"
msgid "User Config"
msgstr "用户配置"
msgid "Please configure user info on the User Management page."
msgstr "请在用户管理页设置用户信息。"
msgid "Logs"
msgstr "日志"