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

This commit is contained in:
github-actions[bot] committed 2026-04-18 02:04:09 +08:00
1 parent 411261cf2a
commit 50677d77a8
207 files changed
+3148 -3426

No files matched your search

+5 -4
View File
@@ -8,11 +8,12 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI page for Web Admin
LUCI_DEPENDS:=+uhttpd
PKG_VERSION:=1.0
PKG_RELEASE:=1
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-webadmin
PKG_VERSION:=2
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
@@ -8,10 +8,5 @@ function index()
return
end
local page
page = entry({"admin", "system", "webadmin"}, cbi("webadmin"), _("Web Admin"), 1)
page.leaf = true
page.acl_depends = { "luci-app-webadmin" }
entry({"admin", "system", "webadmin"}, cbi("webadmin"), _("Web Admin"), 1).leaf = true
end
@@ -3,14 +3,16 @@
local fs = require("nixio.fs")
local m = Map("uhttpd", translate("Web Admin Settings"),
translate("Web Admin Settings Page"))
m = Map("uhttpd")
m.title = translate("Web Admin Settings")
m.description = translate("Web Admin Settings Page")
local ucs = m:section(TypedSection, "uhttpd")
ucs = m:section(TypedSection, "uhttpd")
ucs.addremove = false
ucs.anonymous = true
lhttp = ucs:option(DynamicList, "listen_http", translate("HTTP listeners (address:port)"), translate("Bind to specific interface:port (by specifying interface address"))
lhttp = ucs:option(DynamicList, "listen_http", translate("HTTP listeners (address:port)"))
lhttp.description = translate("Bind to specific interface:port (by specifying interface address")
lhttp.datatype = "list(ipaddrport(1))"
function lhttp.validate(self, value, section)
@@ -39,11 +41,12 @@ function lhttp.validate(self, value, section)
end
o = ucs:option(Flag, "redirect_https", translate("Redirect all HTTP to HTTPS"))
o.description = translate("Redirect all HTTP to HTTPS when SSl cert was installed")
o.default = o.enabled
o.rmempty = false
o.description = translate("Redirect all HTTP to HTTPS when SSl cert was installed")
o = ucs:option(Flag, "rfc1918_filter", translate("Ignore private IPs on public interface"), translate("Prevent access from private (RFC1918) IPs on an interface if it has an public IP address"))
o = ucs:option(Flag, "rfc1918_filter", translate("Ignore private IPs on public interface"))
o.description = translate("Prevent access from private (RFC1918) IPs on an interface if it has an public IP address")
o.default = o.enabled
o.rmempty = false
-1
View File
@@ -1 +0,0 @@
zh_Hans
@@ -1,10 +1,16 @@
msgid ""
msgstr ""
"Language: zh_Hans\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: dingpengyu <dingpengyu06@gmail.com>\n"
"Language-Team: \n"
"X-Generator: Poedit 2.3.1\n"
msgid "Web Admin"
msgstr "Web 管理"
@@ -15,8 +21,8 @@ msgstr "Web 管理页面设置"
msgid "Web Admin Settings Page"
msgstr "设置更改Web管理页面端口,绑定地址,是否允许从互联网访问等"
msgid "HTTP listeners (address:port)""
msgstr "HTTP 监听 (IP地址:端口)""
msgid "HTTP listeners (address:port)"
msgstr "HTTP 监听 (IP地址:端口)"
msgid "Bind to specific interface:port (by specifying interface address"
msgstr "绑定到指定的IP地址:端口"
@@ -38,4 +44,3 @@ msgstr "只允许内网访问"
msgid "Prevent access from private (RFC1918) IPs on an interface if it has an public IP address"
msgstr "拒绝从互联网访问Web管理页面"
+1
View File
@@ -0,0 +1 @@
zh-cn
@@ -1,11 +0,0 @@
{
"luci-app-webadmin": {
"description": "Grant UCI access for luci-app-webadmin",
"read": {
"uci": [ "uhttpd" ]
},
"write": {
"uci": [ "uhttpd" ]
}
}
}