Update vantage.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-10-05 09:16:16 +08:00
1 parent 565693519d
commit 36917719e0
1 file changed
+11 -43
+11 -43
View File
@@ -39,52 +39,20 @@
LUCI_MAINTAINER:=anothaDev <10740588+anothaDev@users.noreply.github.com>
LUCI_URL:=https://github.com/anothaDev/luci-theme-vantage
diff --git a/luci-app-vantage/root/usr/share/luci/menu.d/luci-app-vantage.json b/luci-app-vantage/root/usr/share/luci/menu.d/luci-app-vantage.json
deleted file mode 100644
index ad0a166..0000000
diff --git a/luci-app-vantage/root/usr/share/luci/menu.d/luci-app-vantage.json b/luci-app-vantage/root/usr/share/luci/menu.d/z-luci-app-vantage.json
similarity index 85%
rename from luci-app-vantage/root/usr/share/luci/menu.d/luci-app-vantage.json
rename to luci-app-vantage/root/usr/share/luci/menu.d/z-luci-app-vantage.json
index ad0a166..c58c860 100644
--- a/luci-app-vantage/root/usr/share/luci/menu.d/luci-app-vantage.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "admin/dashboard": {
- "title": "Dashboard",
- "order": 1,
- "action": {
- "type": "view",
- "path": "vantage/overview"
- },
- "depends": {
- "acl": [ "luci-app-vantage" ]
- }
- }
-}
diff --git a/luci-app-vantage/root/usr/share/luci/menu.d/z-luci-app-vantage.json b/luci-app-vantage/root/usr/share/luci/menu.d/z-luci-app-vantage.json
new file mode 100644
index 0000000..c2de6d4
--- /dev/null
+++ b/luci-app-vantage/root/usr/share/luci/menu.d/z-luci-app-vantage.json
@@ -0,0 +1,21 @@
+{
@@ -1,5 +1,5 @@
{
- "admin/dashboard": {
+ "admin/status/dashboard": {
+ "title": "Dashboard",
+ "order": 1,
+ "action": {
+ "type": "view",
+ "path": "vantage/overview"
+ },
+ "depends": {
+ "acl": [ "luci-app-vantage" ],
+ "uci": {
+ "vantage": true,
+ "luci": {
+ "main": {
+ "mediaurlbase": "/luci-static/vantage"
+ }
+ }
+ }
+ }
+ }
+}
"title": "Dashboard",
"order": 1,
"action": {
--- a/luci-theme-vantage/ucode/template/themes/vantage/header.ut
+++ b/luci-theme-vantage/ucode/template/themes/vantage/header.ut