summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/root/usr/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-10 08:49:24 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-16 18:07:18 +0100
commitc698cd5ab9ad9021ac7b92a45d7ba401cb3617d0 (patch)
tree844f0ee3772d3a28da9b4919d1a3f4300a1665a9 /modules/luci-mod-status/root/usr/share
parent5448a10e302bae5c5f0a45b2e43328ed00664cb0 (diff)
luci-mod-status: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/root/usr/share')
-rw-r--r--modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json129
1 files changed, 129 insertions, 0 deletions
diff --git a/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json b/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
new file mode 100644
index 0000000000..03f7dce3b9
--- /dev/null
+++ b/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
@@ -0,0 +1,129 @@
+{
+ "admin/status/overview": {
+ "title": "Overview",
+ "order": 1,
+ "action": {
+ "type": "template",
+ "path": "admin_status/index"
+ }
+ },
+
+ "admin/status/iptables/*": {
+ "title": "Firewall",
+ "order": 2,
+ "action": {
+ "type": "template",
+ "path": "admin_status/iptables"
+ }
+ },
+
+ "admin/status/iptables_dump/*": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.status",
+ "function": "dump_iptables"
+ }
+ },
+
+ "admin/status/iptables_action/*": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.status",
+ "function": "action_iptables"
+ }
+ },
+
+ "admin/status/routes": {
+ "title": "Routes",
+ "order": 3,
+ "action": {
+ "type": "template",
+ "path": "admin_status/routes"
+ }
+ },
+
+ "admin/status/syslog": {
+ "title": "System Log",
+ "order": 4,
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.status",
+ "function": "action_syslog"
+ }
+ },
+
+ "admin/status/dmesg": {
+ "title": "Kernel Log",
+ "order": 5,
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.status",
+ "function": "action_dmesg"
+ }
+ },
+
+ "admin/status/processes": {
+ "title": "Processes",
+ "order": 6,
+ "action": {
+ "type": "view",
+ "path": "status/processes"
+ }
+ },
+
+ "admin/status/realtime": {
+ "title": "Realtime Graphs",
+ "order": 7,
+ "action": {
+ "type": "alias",
+ "path": "admin/status/realtime/load"
+ }
+ },
+
+ "admin/status/realtime/load": {
+ "title": "Load",
+ "order": 1,
+ "action": {
+ "type": "view",
+ "path": "status/load"
+ }
+ },
+
+ "admin/status/realtime/bandwidth": {
+ "title": "Traffic",
+ "order": 2,
+ "action": {
+ "type": "view",
+ "path": "status/bandwidth"
+ }
+ },
+
+ "admin/status/realtime/wireless": {
+ "title": "Wireless",
+ "order": 3,
+ "action": {
+ "type": "view",
+ "path": "status/wireless"
+ },
+ "depends": {
+ "uci": { "wireless": { "@wifi-device": true } }
+ }
+ },
+
+ "admin/status/realtime/connections": {
+ "title": "Connections",
+ "order": 4,
+ "action": {
+ "type": "view",
+ "path": "status/connections"
+ }
+ },
+
+ "admin/status/nameinfo/*": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.status",
+ "function": "action_nameinfo"
+ }
+ }
+}