summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-babeld/root/usr/share
diff options
context:
space:
mode:
authorJonathan Pagel <jonny_tischbein@systemli.org>2021-02-09 22:32:28 +0100
committerPaul Spooren <mail@aparcar.org>2021-02-15 07:44:02 -1000
commit17ee61c6014329d44f5864f45986dbe626868289 (patch)
treeccd2dd00b942556cb3381fe00654debb8ff15980 /applications/luci-app-babeld/root/usr/share
parente8415ff64e337d60c3cf9838a5916cc358436285 (diff)
luci-app-babeld: rewrite javascript without CDN includes
Rewrite luci app in javascript without external sources CC-Signed-off-by: Nick Hainke <vincent@systemli.org> Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
Diffstat (limited to 'applications/luci-app-babeld/root/usr/share')
-rw-r--r--applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json5
-rw-r--r--applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json10
2 files changed, 10 insertions, 5 deletions
diff --git a/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json b/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json
index 8d0b010c21..a5f7e9259e 100644
--- a/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json
+++ b/applications/luci-app-babeld/root/usr/share/luci/menu.d/luci-app-babeld.json
@@ -2,9 +2,8 @@
"admin/status/babeld": {
"title": "Babeld",
"action": {
- "type": "cbi",
- "path": "babeld",
- "post": { "cbi.submit": true }
+ "type": "template",
+ "path": "babeld"
},
"depends": {
"acl": [ "luci-app-babeld" ]
diff --git a/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json b/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json
index 51687bad5c..71755b30d4 100644
--- a/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json
+++ b/applications/luci-app-babeld/root/usr/share/rpcd/acl.d/luci-app-babeld.json
@@ -2,10 +2,16 @@
"luci-app-babeld": {
"description": "Grant UCI access for babeld",
"read": {
- "uci": [ "babeld" ]
+ "uci": [ "babeld" ],
+ "ubus": {
+ "babeld": [ "*" ]
+ }
},
"write": {
- "uci": [ "babeld" ]
+ "uci": [ "babeld" ],
+ "ubus": {
+ "babeld": [ "*" ]
+ }
}
}
}