luci-app-uugamebooster: code alignment

This commit is contained in:
Beginner-Go 2022-06-22 16:59:09 +00:00
parent 84ad659f11
commit 2ae54de565
2 changed files with 7 additions and 5 deletions

View File

@ -1,11 +1,11 @@
module("luci.controller.uuplugin",package.seeall)
module("luci.controller.uuplugin", package.seeall)
function index()
if not nixio.fs.access("/etc/config/uuplugin") then
return
end
entry({"admin", "services", "uuplugin"}, cbi("uuplugin/uuplugin"), ("UU GameAcc"), 99).dependent = true
entry({"admin", "services", "uuplugin"}, cbi("uuplugin"), ("UU GameAcc"), 99).dependent = true
entry({"admin", "services", "uuplugin", "status"}, call("act_status")).leaf = true
end

View File

@ -1,12 +1,14 @@
require("luci.util")
mp = Map("uuplugin", translate("UU Game Accelerator"))
mp = Map("uuplugin")
mp.title = translate("UU Game Accelerator")
mp.description = translate("A Paid Game Acceleration service")
mp:section(SimpleSection).template = "uuplugin/uuplugin_status"
s = mp:section(TypedSection, "uuplugin")
s.anonymous=true
s.addremove=false
s.anonymous = true
s.addremove = false
o = s:option(Flag, "enabled", translate("Enable"))
o.default = 0