mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-17 22:13:17 +08:00
🚀 Sync 2026-11-14 15:02:09
This commit is contained in:
1 parent
90f27ab347
commit
9f5777add1
44 files changed
+3970
-5
No files matched your search
@@ -0,0 +1,4 @@
|
||||
|
||||
config theme 'main'
|
||||
option palette 'clay'
|
||||
option mode 'auto'
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Register the 7Dollar theme and make it the active one, except on an upgrade where it was
|
||||
# already registered: then the user's own theme choice stays. (Packages up to 1.0.7 unregister
|
||||
# the theme when upgraded, so upgrading from those still lands on 7Dollar, as before.)
|
||||
|
||||
[ -f /etc/config/7dollar ] || printf "\nconfig theme 'main'\n\toption palette 'clay'\n\toption mode 'auto'\n" > /etc/config/7dollar
|
||||
|
||||
uci -q delete 7dollar.main.plugin_openclash && uci commit 7dollar # replaced by the apps card in 1.0.12
|
||||
|
||||
[ "$PKG_UPGRADE" = 1 ] && uci -q get luci.themes.7Dollar >/dev/null || uci -q set luci.main.mediaurlbase=/luci-static/7dollar
|
||||
uci -q set luci.themes.7Dollar=/luci-static/7dollar
|
||||
uci -q commit luci
|
||||
|
||||
# LuCI caches the menu, and our pages depend on the active theme: when the theme is switched
|
||||
# (Language and Style), touching our menu file makes LuCI rebuild it. 24.10+ (ucitrack).
|
||||
[ -x /etc/init.d/ucitrack ] && /etc/init.d/ucitrack reload >/dev/null 2>&1
|
||||
|
||||
rm -rf /tmp/luci-indexcache* /tmp/luci-modulecache/ 2>/dev/null
|
||||
exit 0
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"admin/home": {
|
||||
"title": "Home",
|
||||
"order": 0,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "7dollar/home"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-theme-7dollar" ],
|
||||
"uci": {
|
||||
"luci": {
|
||||
"main": {
|
||||
"mediaurlbase": "/luci-static/7dollar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"admin/clients": {
|
||||
"title": "Devices",
|
||||
"order": 2,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "7dollar/devices"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-theme-7dollar" ],
|
||||
"uci": {
|
||||
"luci": {
|
||||
"main": {
|
||||
"mediaurlbase": "/luci-static/7dollar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"admin/apps": {
|
||||
"title": "Apps",
|
||||
"order": 39,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "7dollar/apps"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-theme-7dollar" ],
|
||||
"uci": {
|
||||
"luci": {
|
||||
"main": {
|
||||
"mediaurlbase": "/luci-static/7dollar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"admin/system/appearance": {
|
||||
"title": "Appearance",
|
||||
"order": 3,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "7dollar/appearance"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-theme-7dollar" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"luci-theme-7dollar": {
|
||||
"description": "Grant access to the 7Dollar theme dashboard and appearance settings",
|
||||
"read": {
|
||||
"ubus": {
|
||||
"luci-rpc": [ "getDHCPLeases", "getHostHints", "getWirelessDevices", "getNetworkDevices" ],
|
||||
"iwinfo": [ "assoclist" ],
|
||||
"network.interface": [ "dump" ],
|
||||
"system": [ "board", "info" ],
|
||||
"service": [ "list" ],
|
||||
"luci": [ "getMountPoints" ],
|
||||
"uci": [ "get" ],
|
||||
"file": [ "read", "exec" ]
|
||||
},
|
||||
"file": {
|
||||
"/proc/stat": [ "read" ],
|
||||
"/proc/net/dev": [ "read" ],
|
||||
"/proc/net/route": [ "read" ],
|
||||
"/proc/net/arp": [ "read" ],
|
||||
"/sys/class/net/*/brforward": [ "read" ],
|
||||
"/sys/devices/virtual/net/*/brforward": [ "read" ],
|
||||
"/proc/sys/net/ipv4/tcp_congestion_control": [ "read" ],
|
||||
"/sys/class/thermal": [ "list" ],
|
||||
"/sys/class/hwmon": [ "list" ],
|
||||
"/sys/class/thermal/thermal_zone*/type": [ "read" ],
|
||||
"/sys/class/thermal/thermal_zone*/temp": [ "read" ],
|
||||
"/sys/class/hwmon/hwmon*/name": [ "read" ],
|
||||
"/sys/class/hwmon/hwmon*/temp1_input": [ "read" ],
|
||||
"/proc/[0-9]*/net/dev": [ "read" ],
|
||||
"/proc/[0-9]*/net/route": [ "read" ],
|
||||
"/proc/[0-9]*/net/arp": [ "read" ],
|
||||
"/sys/devices/*/thermal_zone*/type": [ "read" ],
|
||||
"/sys/devices/*/thermal_zone*/temp": [ "read" ],
|
||||
"/sys/devices/*/hwmon*/name": [ "read" ],
|
||||
"/sys/devices/*/hwmon*/temp1_input": [ "read" ],
|
||||
"/sys/module/mt79*e/parameters/wed_enable": [ "read" ],
|
||||
"/opt/open-box/data/panel-port": [ "read" ],
|
||||
"/bin/ping": [ "exec" ]
|
||||
},
|
||||
"uci": [ "7dollar", "firewall", "luci", "AdGuardHome", "bandix", "homeproxy", "ksmbd", "mosdns", "nikki", "openclash", "passwall", "passwall2", "samba4", "shadowsocksr", "smartdns" ]
|
||||
},
|
||||
"write": {
|
||||
"ubus": {
|
||||
"uci": [ "add", "set", "delete", "commit" ]
|
||||
},
|
||||
"uci": [ "7dollar", "luci" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"config": "luci",
|
||||
"exec": "/bin/touch -c /usr/share/luci/menu.d/luci-theme-7dollar.json"
|
||||
}
|
||||
Reference in new issue
Block a user