diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-09-09 17:01:22 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-09-09 17:01:22 +0200 |
commit | 2f0e65dd27549ef4fde5b18588083968a59b66bd (patch) | |
tree | 371bf5fd09ddf206442848a95796d41bf81f95b8 /luci2/share | |
download | luci2-ui-2f0e65dd27549ef4fde5b18588083968a59b66bd.tar.gz |
Initial commit of LuCI2
Diffstat (limited to 'luci2/share')
-rw-r--r-- | luci2/share/acl.d/main.json | 201 | ||||
-rw-r--r-- | luci2/share/menu.d/status.json | 36 | ||||
-rw-r--r-- | luci2/share/menu.d/system.json | 42 |
3 files changed, 279 insertions, 0 deletions
diff --git a/luci2/share/acl.d/main.json b/luci2/share/acl.d/main.json new file mode 100644 index 0000000..e912e17 --- /dev/null +++ b/luci2/share/acl.d/main.json @@ -0,0 +1,201 @@ +{ + "core": { + "description": "Core functions for LuCI", + "read": { + "ubus": { + "luci2.ui": [ + "*" + ], + "session": [ + "access" + ], + "uci": [ + "*" + ] + } + } + }, + + "status": { + "description": "Status information display", + "read": { + "ubus": { + "iwinfo": [ + "devices", + "info", + "assoclist" + ], + "system": [ + "info", + "board" + ], + "network.interface": [ + "status" + ], + "luci2.network": [ + "conntrack_count", + "dhcp_leases", + "dhcp6_leases", + "arp_table", + "routes", + "routes6" + ], + "luci2.system": [ + "diskfree", + "syslog", + "dmesg", + "process_list" + ] + } + }, + "write": { + "ubus": { + "luci2.system": [ + "process_signal" + ] + } + } + }, + + "system": { + "description": "General system settings", + "read": { + "ubus": { + "system": [ + "info", + "board" + ], + "luci2.system": [ + "init_list" + ] + }, + "uci": [ + "luci" + ] + }, + "write": { + "ubus": { + "luci2.system": [ + "init_action" + ] + }, + "uci": [ + "luci" + ] + } + }, + + "admin": { + "description": "Authentication and SSH settings", + "read": { + "ubus": { + "luci2.system": [ + "sshkeys_get" + ] + }, + "uci": [ + "dropbear" + ] + }, + "write": { + "ubus": { + "luci2.system": [ + "sshkeys_set", + "password_set" + ] + }, + "uci": [ + "dropbear" + ] + } + }, + + "software": { + "description": "Package management", + "read": { + "ubus": { + "system": [ + "info", + "board" + ], + "luci2.opkg": [ + "list", + "list_installed", + "find", + "config_get" + ] + } + }, + "write": { + "ubus": { + "luci2.opkg": [ + "install", + "remove", + "update", + "config_set" + ] + } + } + }, + + "startup": { + "description": "System boot settings", + "read": { + "ubus": { + "luci2.system": [ + "init_list", + "rclocal_get" + ] + } + }, + "write": { + "ubus": { + "luci2.system": [ + "init_action", + "rclocal_set" + ] + } + } + }, + + "cron": { + "description": "Crontab management", + "read": { + "ubus": { + "luci2.system": [ + "crontab_get" + ] + } + }, + "write": { + "ubus": { + "luci2.system": [ + "crontab_set" + ] + } + } + }, + + "leds": { + "description": "Hardware LED configuration", + "read": { + "ubus": { + "network.device": [ + "status" + ], + "luci2.system": [ + "led_list", + "usb_list" + ] + }, + "uci": [ + "system" + ] + }, + "write": { + "uci": [ + "system" + ] + } + } +} diff --git a/luci2/share/menu.d/status.json b/luci2/share/menu.d/status.json new file mode 100644 index 0000000..b814b00 --- /dev/null +++ b/luci2/share/menu.d/status.json @@ -0,0 +1,36 @@ +{ + "status": { + "title": "Status", + "index": 10 + }, + "status/overview": { + "title": "Overview", + "acls": [ "status" ], + "view": "status/overview", + "index": 10 + }, + "status/routes": { + "title": "Routes", + "acls": [ "status" ], + "view": "status/routes", + "index": 20 + }, + "status/syslog": { + "title": "System Log", + "acls": [ "status" ], + "view": "status/syslog", + "index": 30 + }, + "status/dmesg": { + "title": "Kernel Log", + "acls": [ "status" ], + "view": "status/dmesg", + "index": 40 + }, + "status/processes": { + "title": "Processes", + "acls": [ "status" ], + "view": "status/processes", + "index": 50 + } +} diff --git a/luci2/share/menu.d/system.json b/luci2/share/menu.d/system.json new file mode 100644 index 0000000..4b2ee72 --- /dev/null +++ b/luci2/share/menu.d/system.json @@ -0,0 +1,42 @@ +{ + "system": { + "title": "System", + "index": 20 + }, + "system/system": { + "title": "System", + "acls": [ "system" ], + "view": "system/system", + "index": 10 + }, + "system/admin": { + "title": "Administration", + "acls": [ "admin" ], + "view": "system/admin", + "index": 20 + }, + "system/software": { + "title": "Software", + "acls": [ "software" ], + "view": "system/software", + "index": 30 + }, + "system/startup": { + "title": "Startup", + "acls": [ "startup" ], + "view": "system/startup", + "index": 40 + }, + "system/cron": { + "title": "Scheduled Tasks", + "acls": [ "cron" ], + "view": "system/cron", + "index": 50 + }, + "system/leds": { + "title": "LED Configuration", + "acls": [ "leds" ], + "view": "system/leds", + "index": 60 + } +} |