summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root/usr/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-06 21:51:32 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-16 18:07:17 +0100
commit16853bcd2e4224c281731adbfa490d704784ec20 (patch)
treebb7bb7a98e6ed2a58026b2b369fcd4cd23d2a17e /modules/luci-base/root/usr/share
parentcf1219bd0790506279b14007595e8389e5eb99ff (diff)
luci-base: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/root/usr/share')
-rw-r--r--modules/luci-base/root/usr/share/luci/menu.d/luci-base.json142
1 files changed, 142 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json b/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json
new file mode 100644
index 0000000000..cdfffb5123
--- /dev/null
+++ b/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json
@@ -0,0 +1,142 @@
+{
+ "admin": {
+ "title": "Administration",
+ "order": 10,
+ "action": {
+ "type": "firstchild",
+ "recurse": true
+ },
+ "auth": {
+ "methods": [ "cookie:sysauth" ],
+ "login": true
+ }
+ },
+
+ "admin/status": {
+ "title": "Status",
+ "order": 10,
+ "action": {
+ "type": "firstchild",
+ "preferred": "overview",
+ "recurse": true
+ }
+ },
+
+ "admin/system": {
+ "title": "System",
+ "order": 20,
+ "action": {
+ "type": "firstchild",
+ "preferred": "system",
+ "recurse": true
+ }
+ },
+
+ "admin/vpn": {
+ "title": "VPN",
+ "order": 30,
+ "action": {
+ "type": "firstchild",
+ "recurse": true
+ }
+ },
+
+ "admin/services": {
+ "title": "Services",
+ "order": 40,
+ "action": {
+ "type": "firstchild",
+ "recurse": true
+ }
+ },
+
+ "admin/network": {
+ "title": "Network",
+ "order": 50,
+ "action": {
+ "type": "firstchild",
+ "recurse": true
+ }
+ },
+
+ "admin/translations/*": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.index",
+ "function": "action_translations"
+ },
+ "auth": {
+ "methods": [ "cookie:sysauth" ]
+ }
+ },
+
+ "admin/ubus/*": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.index",
+ "function": "action_ubus"
+ },
+ "auth": {}
+ },
+
+ "admin/logout": {
+ "title": "Logout",
+ "order": 999,
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.index",
+ "function": "action_logout"
+ }
+ },
+
+ "admin/uci": {
+ "action": {
+ "type": "firstchild"
+ }
+ },
+
+ "admin/uci/revert": {
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.uci",
+ "function": "action_revert",
+ "post": true
+ }
+ },
+
+ "admin/uci/apply_rollback": {
+ "cors": true,
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.uci",
+ "function": "action_apply_rollback",
+ "post": true
+ },
+ "auth": {
+ "methods": [ "cookie:sysauth" ]
+ }
+ },
+
+ "admin/uci/apply_unchecked": {
+ "cors": true,
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.uci",
+ "function": "action_apply_unchecked",
+ "post": true
+ },
+ "auth": {
+ "methods": [ "cookie:sysauth" ]
+ }
+ },
+
+ "admin/uci/confirm": {
+ "cors": true,
+ "action": {
+ "type": "call",
+ "module": "luci.controller.admin.uci",
+ "function": "action_confirm"
+ },
+ "auth": {}
+ }
+}