• R/O
  • HTTP
  • SSH
  • HTTPS

luci: Commit

LuCI - OpenWrt Configuration Interface


Commit MetaInfo

Revisão33cd2f3f201e7a038986d8efd2ceb80fd84772c4 (tree)
Hora2022-05-18 17:25:01
AutorBeginner-Go <70857188+Beginner-Go@user...>
CommiterTianling Shen

Mensagem de Log

luci-app-k3usb: code alignment

Mudança Sumário

Diff

--- a/applications/luci-app-k3usb/Makefile
+++ b/applications/luci-app-k3usb/Makefile
@@ -3,7 +3,6 @@
33 include $(TOPDIR)/rules.mk
44
55 LUCI_TITLE:=LuCI Support for k3usb3.0 on or off
6-LUCI_DESCRIPTION:=LuCI Support for k3usb3.0 on or off.
76 LUCI_DEPENDS:=@TARGET_bcm53xx_generic_DEVICE_phicomm_k3
87 LUCI_PKGARCH:=all
98
--- a/applications/luci-app-k3usb/luasrc/controller/k3usb.lua
+++ b/applications/luci-app-k3usb/luasrc/controller/k3usb.lua
@@ -3,8 +3,11 @@
33 module("luci.controller.k3usb", package.seeall)
44
55 function index()
6- if not nixio.fs.access("/etc/config/k3usb") then
7- return
8- end
9- entry({"admin","system","k3usb"}, cbi("k3usb"), _("k3usb"),60).acl_depends = { "luci-app-k3usb" }
6+ if not nixio.fs.access("/etc/config/k3usb") then
7+ return
8+ end
9+
10+ local page = entry({"admin", "system", "k3usb"}, cbi("k3usb"), _("k3usb"), 60)
11+ page.dependent = true
12+ page.acl_depends = { "luci-app-k3usb" }
1013 end
--- a/applications/luci-app-k3usb/luasrc/model/cbi/k3usb.lua
+++ b/applications/luci-app-k3usb/luasrc/model/cbi/k3usb.lua
@@ -1,13 +1,15 @@
11 -- Copyright (C) 2018 XiaoShan mivm.cn
22
3-local m, s ,o
3+local m, s, o
44
5-m = Map("k3usb", translate("k3usb"), translate("k3 usb mode"))
5+m = Map("k3usb", translate("k3usb"))
6+m.description = translate("k3 usb mode")
67
7-s = m:section(TypedSection, "config", translate("usb mode") )
8+s = m:section(TypedSection, "config", translate("usb mode"))
89 s.anonymous = true
910
10-o = s:option(Flag, "usb3_enable", translate("usb3 enable :"), translate("usb3 mode enable"))
11+o = s:option(Flag, "usb3_enable", translate("usb3 enable :"))
12+o.description = translate("usb3 mode enable")
1113 o.default = 1
1214
1315 return m
--- a/applications/luci-app-k3usb/po/zh_Hans/k3usb.po
+++ b/applications/luci-app-k3usb/po/zh_Hans/k3usb.po
@@ -15,5 +15,3 @@ msgstr "开启或禁用USB3"
1515
1616 msgid "usb mode"
1717 msgstr "USB3管理模式"
18-
19-
--- a/applications/luci-app-k3usb/root/etc/uci-defaults/k3usb
+++ b/applications/luci-app-k3usb/root/etc/uci-defaults/luci-k3usb
@@ -7,4 +7,5 @@ uci -q batch <<-EOF >/dev/null
77 commit ucitrack
88 EOF
99
10+rm -rf /tmp/luci-*
1011 exit 0
Show on old repository browser