File organization (#6356)

This commit is contained in:
Beginner 2021-02-23 12:01:11 +08:00 committed by GitHub
parent a5169dbd05
commit bdb5fa60ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 14 additions and 14 deletions

View File

@ -8,8 +8,8 @@ function index()
entry({"admin", "services", "familycloud"},firstchild(), _("天翼家庭云/云盘提速"), 80).dependent = false
entry({"admin", "services", "familycloud", "general"},cbi("familycloud"), _("Base Setting"), 1)
entry({"admin", "services", "familycloud", "log"},form("familycloudlog"), _("Log"), 2)
entry({"admin", "services", "familycloud", "general"},cbi("familycloud/familycloud"), _("Base Setting"), 1)
entry({"admin", "services", "familycloud", "log"},form("familycloud/familycloudlog"), _("Log"), 2)
entry({"admin","services","familycloud","status"},call("act_status")).leaf=true
end

View File

@ -8,5 +8,5 @@ Modify: ayongwifi@126.com www.openwrtdl.com
module("luci.controller.filetransfer", package.seeall)
function index()
entry({"admin", "system", "filetransfer"}, form("updownload"), _("FileTransfer"),89)
entry({"admin", "system", "filetransfer"}, form("filetransfer"), _("FileTransfer"),89)
end

View File

@ -7,18 +7,18 @@ ful.submit = false
sul = ful:section(SimpleSection, "", translate("Upload file to '/tmp/upload/'"))
fu = sul:option(FileUpload, "")
fu.template = "cbi/other_upload"
fu.template = "filetransfer/other_upload"
um = sul:option(DummyValue, "", nil)
um.template = "cbi/other_dvalue"
um.template = "filetransfer/other_dvalue"
fdl = SimpleForm("download", translate("Download"), nil)
fdl.reset = false
fdl.submit = false
sdl = fdl:section(SimpleSection, "", translate("Download file"))
fd = sdl:option(FileUpload, "")
fd.template = "cbi/other_download"
fd.template = "filetransfer/other_download"
dm = sdl:option(DummyValue, "", nil)
dm.template = "cbi/other_dvalue"
dm.template = "filetransfer/other_dvalue"
function Download()
local sPath, sFile, fd, block
@ -138,7 +138,7 @@ function IsIpkFile(name)
end
btnis = tb:option(Button, "install", translate("Install"))
btnis.template = "cbi/other_button"
btnis.template = "filetransfer/other_button"
btnis.render = function(self, section, scope)
if not inits[section] then return false end
if IsIpkFile(inits[section].name) then

View File

@ -2,5 +2,5 @@ module("luci.controller.netdata", package.seeall)
function index()
entry({"admin","status","netdata"},template("netdata"),_("NetData"),10).leaf=true
entry({"admin","status","netdata"},template("netdata/netdata"),_("NetData"),10).leaf=true
end

View File

@ -5,5 +5,5 @@ function index()
return
end
entry({"admin", "system", "terminal"}, template("terminal"), _("TTYD Terminal"), 10).leaf = true
entry({"admin", "system", "terminal"}, template("terminal/terminal"), _("TTYD Terminal"), 10).leaf = true
end

View File

@ -8,8 +8,8 @@ function index()
entry({"admin", "services", "unblockmusic"},firstchild(), _("Unblock Netease Music"), 50).dependent = false
entry({"admin", "services", "unblockmusic", "general"},cbi("unblockmusic"), _("Base Setting"), 1)
entry({"admin", "services", "unblockmusic", "log"},form("unblockmusiclog"), _("Log"), 2)
entry({"admin", "services", "unblockmusic", "general"},cbi("unblockmusic/unblockmusic"), _("Base Setting"), 1)
entry({"admin", "services", "unblockmusic", "log"},form("unblockmusic/unblockmusiclog"), _("Log"), 2)
entry({"admin", "services", "unblockmusic", "status"},call("act_status")).leaf=true
end

View File

@ -2,7 +2,7 @@ module("luci.controller.wrtbwmon", package.seeall)
function index()
entry({"admin", "nlbw", "usage"}, alias("admin", "nlbw", "usage", "details"), _("Usage"), 60)
entry({"admin", "nlbw", "usage", "details"}, template("wrtbwmon"), _("Details"), 10).leaf=true
entry({"admin", "nlbw", "usage", "details"}, template("wrtbwmon/wrtbwmon"), _("Details"), 10).leaf=true
entry({"admin", "nlbw", "usage", "config"}, cbi("wrtbwmon/config"), _("Configuration"), 20).leaf=true
entry({"admin", "nlbw", "usage", "custom"}, form("wrtbwmon/custom"), _("User file"), 30).leaf=true
entry({"admin", "nlbw", "usage", "check_dependency"}, call("check_dependency")).dependent=true

View File

@ -42,5 +42,5 @@
<tbody id="tableBody"><tr><td><%=translate("Loading...")%></td></tr></tbody>
</table>
<!--suppress HtmlUnknownTarget -->
<script src="/luci-static/wrtbwmon.js"></script>
<script src="/luci-static/wrtbwmon/wrtbwmon.js"></script>
<%+footer%>