fix: remove UCI dependencies from menu definitions

Removes mandatory UCI config dependencies from dashboard modules to allow
LuCI menus to display even when backend services are not installed.

This fixes 'Permission denied' errors when accessing dashboards for services
that haven't been installed yet (crowdsec, netdata, netifyd, etc.).

Changes:
- Remove uci dependency: crowdsec-dashboard, netdata-dashboard
- Remove uci dependency: netifyd-dashboard, wireguard-dashboard
- Remove uci dependency: client-guardian, media-flow
- Remove uci dependency: network-modes, traffic-shaper

Dashboards will now gracefully handle missing backend services and can
guide users to install required packages.

Related: SecuBox menu organization (v0.1.2-alpha)
This commit is contained in:
CyberMind-FR 2025-12-25 16:23:30 +01:00
parent 75da2ddca4
commit e67df835e2
8 changed files with 8 additions and 16 deletions

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-client-guardian"],
"uci": {"client_guardian": true}
"acl": ["luci-app-client-guardian"]
}
},
"admin/secubox/security/client-guardian/overview": {

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-crowdsec"],
"uci": {"crowdsec": true}
"acl": ["luci-app-crowdsec"]
}
},
"admin/secubox/security/crowdsec/overview": {

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-media-flow"],
"uci": {"media_flow": true}
"acl": ["luci-app-media-flow"]
}
},
"admin/secubox/monitoring/mediaflow/dashboard": {

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-netdata-dashboard"],
"uci": {"netdata": true}
"acl": ["luci-app-netdata-dashboard"]
}
},
"admin/secubox/monitoring/netdata/dashboard": {

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-netifyd-dashboard"],
"uci": {"netifyd": true}
"acl": ["luci-app-netifyd-dashboard"]
}
},
"admin/secubox/security/netifyd/overview": {

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-network-modes"],
"uci": {"network_modes": true}
"acl": ["luci-app-network-modes"]
}
},
"admin/secubox/network/network-modes/overview": {

View File

@ -7,8 +7,7 @@
"path": "traffic-shaper/overview"
},
"depends": {
"acl": ["luci-app-traffic-shaper"],
"uci": ["traffic-shaper"]
"acl": ["luci-app-traffic-shaper"]
}
},
"admin/secubox/network/traffic-shaper/overview": {

View File

@ -6,8 +6,7 @@
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-wireguard-dashboard"],
"uci": {"wireguard": true}
"acl": ["luci-app-wireguard-dashboard"]
}
},
"admin/secubox/network/wireguard/overview": {