luci-app-argon-config: sync upstream

This commit is contained in:
sbwml 2023-05-27 19:12:03 +08:00
parent dc947294d7
commit 85d2658fb8
4 changed files with 14 additions and 31 deletions

View File

@ -1,27 +1,19 @@
#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-argon-config PKG_NAME:=luci-app-argon-config
LUCI_PKGARCH:=all
PKG_VERSION:=0.9 PKG_VERSION:=0.9
PKG_RELEASE:=20210309 PKG_RELEASE:=20220424
include $(INCLUDE_DIR)/package.mk PKG_MAINTAINER:=jerrykuku <jerrykuku@qq.com>
define Package/luci-app-argon-config LUCI_TITLE:=LuCI page for Argon Config
SECTION:=luci LUCI_PKGARCH:=all
CATEGORY:=LuCI LUCI_DEPENDS:=+luci-compat
SUBMENU:=3. Applications
TITLE:=LuCI page for Argon Config define Package/$(PKG_NAME)/conffiles
PKGARCH:=all /etc/config/argon
DEPENDS:=+luci-compat
endef endef
$(eval $(call BuildPackage,luci-app-argon-config)) include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature

View File

@ -1,7 +1,3 @@
--[[
luci-app-argon-config
]]--
module("luci.controller.argon-config", package.seeall) module("luci.controller.argon-config", package.seeall)
function index() function index()
@ -9,5 +5,6 @@ function index()
return return
end end
entry({"admin", "system", "argon-config"}, form("argon-config"), _("Argon Config"), 90) local page = entry({"admin", "system", "argon-config"}, form("argon-config"), _("Argon Config"), 90)
page.acl_depends = { "luci-app-argon-config" }
end end

View File

@ -207,10 +207,4 @@ btnrm.write = function(self, section)
return v return v
end end
function IsIpkFile(name)
name = name or ''
local ext = string.lower(string.sub(name, -4, -1))
return ext == '.ipk'
end
return br, ful, form return br, ful, form

View File

@ -1,6 +1,6 @@
{ {
"luci-argon-config": { "luci-app-argon-config": {
"description": "Luci Argon theme config ", "description": "Grant UCI access for luci-app-argon-config",
"read": { "read": {
"uci": [ "argon" ] "uci": [ "argon" ]
}, },