Skip to content

Commit f3baad1

Browse files
author
ghostry
committed
add luci-theme-material
1 parent 1f7deff commit f3baad1

File tree

20 files changed

+2191
-0
lines changed

20 files changed

+2191
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
luci-app-redsocks2-openssl
1111
luci-app-shadowvpn
1212
luci-app-shadowsocks-spec
13+
luci-theme-material #一个自适应界面,弥补了没有手机客户端的遗憾
1314
aria2 #1.19.3版本
1415
BaiduPCS #百度网盘客户端,命令行使用
1516
cdns #CureDNS
@@ -60,6 +61,7 @@
6061
https://github.com/semigodking/redsocks
6162
https://github.com/semigodking/cdns
6263
https://github.com/GangZhuo/BaiduPCS
64+
https://github.com/LuttyYang/luci-theme-material
6365

6466
==============
6567

luci/luci-theme-material/Makefile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# LuCI Material Theme
2+
# Copyright 2015 Lutty Yang <[email protected]>
3+
#
4+
# Licensed under the Apache License v2.0
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
7+
include $(TOPDIR)/rules.mk
8+
9+
THEME_NAME:=material
10+
THEME_TITLE:=Material
11+
12+
PKG_NAME:=luci-theme-$(THEME_NAME)
13+
PKG_VERSION:=0.2.17
14+
PKG_RELEASE:=1
15+
16+
include $(INCLUDE_DIR)/package.mk
17+
18+
define Package/luci-theme-$(THEME_NAME)
19+
SECTION:=luci
20+
CATEGORY:=LuCI
21+
SUBMENU:=9. Themes
22+
DEPENDS:=+libc
23+
TITLE:=LuCI Theme - $(THEME_TITLE)
24+
URL:=http://wcan.in/
25+
PKGARCH:=all
26+
endef
27+
28+
define Build/Configure
29+
endef
30+
31+
define Build/Compile
32+
endef
33+
34+
define Package/luci-theme-$(THEME_NAME)/install
35+
$(INSTALL_DIR) $(1)/etc/uci-defaults
36+
echo "uci set luci.themes.$(THEME_TITLE)=/luci-static/$(THEME_NAME); uci commit luci" > $(1)/etc/uci-defaults/30-luci-theme-$(THEME_NAME)
37+
$(INSTALL_DIR) $(1)/www/luci-static/$(THEME_NAME)
38+
$(CP) -a ./files/htdocs/* $(1)/www/luci-static/$(THEME_NAME)/ 2>/dev/null || true
39+
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)
40+
$(CP) -a ./files/templates/* $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)/ 2>/dev/null || true
41+
endef
42+
43+
define Package/luci-theme-$(THEME_NAME)/postinst
44+
#!/bin/sh
45+
[ -n "$${IPKG_INSTROOT}" ] || {
46+
( . /etc/uci-defaults/30-luci-theme-$(THEME_NAME) ) && rm -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME)
47+
}
48+
endef
49+
50+
$(eval $(call BuildPackage,luci-theme-$(THEME_NAME)))

luci/luci-theme-material/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Material For LUCI
2+
=================
3+
4+
Material is a clean HTML5 theme for LuCI - the web configuration interface commonly found on OpenWrt installation. It is based on luci-theme-bootstrap and MUI
5+
6+
7+
Bug tracker
8+
-----------
9+
10+
Have a bug? Please create an issue here on GitHub!
11+
12+
https://github.com/LuttyYang/luci-theme-material/issues
13+
14+
15+
Authors
16+
-------
17+
18+
**Lutty Yang**
19+
20+
+ https://github.com/LuttyYang
21+
22+
License
23+
-------
24+
25+
LuCI Theme Material: Copyright 2015 Lutty Yang
26+
27+
LuCI Theme Bootstrap: Copyright 2012 Nut & Bolt
28+
29+
MUI: https://github.com/muicss/mui
30+
31+
32+
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
33+
34+
Screenshot
35+
----------
36+
37+
![Material for LuCI - Computer screenshot 1](https://github.com/LuttyYang/luci-theme-material/blob/master/screenshot/computer-1.png?raw=true)
38+
![Material for LuCI - Computer screenshot 2](https://github.com/LuttyYang/luci-theme-material/blob/master/screenshot/computer-2.png?raw=true)
39+
![Material for LuCI - Computer screenshot 3](https://github.com/LuttyYang/luci-theme-material/blob/master/screenshot/computer-3.png?raw=true)
40+
41+
![Material for LuCI - Mobile screenshot 1](https://github.com/LuttyYang/luci-theme-material/blob/master/screenshot/mobile-1.png?raw=true)
42+
![Material for LuCI - Mobile screenshot 2](https://github.com/LuttyYang/luci-theme-material/blob/master/screenshot/mobile-2.png?raw=true)
43+
![Material for LuCI - Mobile screenshot 3](https://github.com/LuttyYang/luci-theme-material/blob/master/screenshot/mobile-3.png?raw=true)

0 commit comments

Comments
 (0)