Skip to content

Commit

Permalink
add theme
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub committed Oct 13, 2022
1 parent 3c3de52 commit 92ad44b
Show file tree
Hide file tree
Showing 312 changed files with 45,809 additions and 0 deletions.
27 changes: 27 additions & 0 deletions luci-theme-argonne/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright (C) 2008-2019 Jerrykuku
#
# This is free software, licensed under the Apache License, Version 2.0 .
#

include $(TOPDIR)/rules.mk

LUCI_TITLE:=Argonne kenzo
LUCI_DEPENDS:=
PKG_VERSION:=1.7.3
PKG_RELEASE:=2

include $(TOPDIR)/feeds/luci/luci.mk


define Package/luci-theme-argonne/postinst
#!/bin/sh
sed -i ":a;$!N;s/tmpl.render.*sysauth_template.*return/local scope = { duser = default_user, fuser = user }\nlocal ok, res = luci.util.copcall\(luci.template.render_string, [[<% include\(\"themes\/\" .. theme .. \"\/sysauth\"\) %>]], scope\)\nif ok then\nreturn res\nend\nreturn luci.template.render\(\"sysauth\", scope\)/;ba" /usr/lib/lua/luci/dispatcher.lua
sed -i ":a;$!N;s/t.render.*sysauth_template.*return/local scope = { duser = h, fuser = a }\nlocal ok, res = luci.util.copcall\(luci.template.render_string, [[<% include\(\"themes\/\" .. theme .. \"\/sysauth\"\) %>]], scope\)\nif ok then\nreturn res\nend\nreturn luci.template.render\(\"sysauth\", scope\)/;ba" /usr/lib/lua/luci/dispatcher.lua
[ -f /usr/lib/lua/luci/view/themes/argonne/out_header_login.htm ] && mv -f /usr/lib/lua/luci/view/themes/argonne/out_header_login.htm /usr/lib/lua/luci/view/header_login.htm
rm -Rf /var/luci-modulecache
rm -Rf /var/luci-indexcache
exit 0
endef

# call BuildPackage - OpenWrt buildroot signature
10 changes: 10 additions & 0 deletions luci-theme-argonne/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#### argon 原作者是jerrykuku
#### 改argonne是为了编译方便
+ main默认支持luci-18.06
```bash
git clone https://github.com/kenzok78/luci-theme-argonne
```
+ 21.02分支支持最新luci
```bash
git clone -b 21.02 https://github.com/kenzok78/luci-theme-argonne
```

0 comments on commit 92ad44b

Please sign in to comment.