1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add dashboard with omr support

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-18 20:50:14 +02:00
parent 3c25b997dc
commit c98df165fe
13 changed files with 1589 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{
"admin/dashboard": {
"title": "Dashboard",
"order": 1,
"action": {
"type": "view",
"path": "dashboard/index"
},
"depends": {
"acl": [ "luci-mod-dashboard-index" ]
}
}
}

View file

@ -0,0 +1,41 @@
{
"luci-mod-dashboard-routes": {
"description": "Grant access to the system route status",
"read": {
"ubus": {
"file": [ "exec" ]
}
}
},
"luci-mod-dashboard-index": {
"description": "Grant access to main status display",
"read": {
"file": {
"/www/luci-static/resources/view/status/include": [ "list" ]
},
"ubus": {
"file": [ "list", "read" ],
"system": [ "board", "info" ]
}
}
},
"luci-mod-dashboard-index-dhcp": {
"description": "Grant access to DHCP status display",
"read": {
"ubus": {
"luci-rpc": [ "getDHCPLeases" ]
}
}
},
"luci-mod-dashboard-index-wifi": {
"description": "Grant access to wireless status display",
"read": {
"ubus": {
"iwinfo": [ "assoclist" ]
}
}
}
}