mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
luci-app-uugamebooster: code alignment
This commit is contained in:
parent
84ad659f11
commit
2ae54de565
@ -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
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user