diff options
author | Tianling Shen <cnsztl@immortalwrt.org> | 2023-12-26 10:49:28 +0800 |
---|---|---|
committer | Paul Donald <itsascambutmailmeanyway@gmail.com> | 2023-12-30 02:45:13 +0000 |
commit | f0c6defa1eeea6d3e9614fd4974d6df2aef6646f (patch) | |
tree | 7f01d50fe4ad0a40d1d7cc7d35762428b1d4bafb /applications/luci-app-alist/root/usr/share | |
parent | d5db17361a556f9c7eda8fa1a0b0c59d57034633 (diff) |
luci-app-alist: add new package
Add LuCI interface for the AList package.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'applications/luci-app-alist/root/usr/share')
-rw-r--r-- | applications/luci-app-alist/root/usr/share/luci/menu.d/luci-app-alist.json | 28 | ||||
-rw-r--r-- | applications/luci-app-alist/root/usr/share/rpcd/acl.d/luci-app-alist.json | 17 |
2 files changed, 45 insertions, 0 deletions
diff --git a/applications/luci-app-alist/root/usr/share/luci/menu.d/luci-app-alist.json b/applications/luci-app-alist/root/usr/share/luci/menu.d/luci-app-alist.json new file mode 100644 index 0000000000..084085a132 --- /dev/null +++ b/applications/luci-app-alist/root/usr/share/luci/menu.d/luci-app-alist.json @@ -0,0 +1,28 @@ +{ + "admin/services/alist": { + "title": "AList", + "action": { + "type": "firstchild" + }, + "depends": { + "acl": [ "luci-app-alist" ], + "uci": { "alist": true } + } + }, + "admin/services/alist/config": { + "title": "Settings", + "order": 10, + "action": { + "type": "view", + "path": "alist/config" + } + }, + "admin/services/alist/log": { + "title": "Log", + "order": 20, + "action": { + "type": "view", + "path": "alist/log" + } + } +} diff --git a/applications/luci-app-alist/root/usr/share/rpcd/acl.d/luci-app-alist.json b/applications/luci-app-alist/root/usr/share/rpcd/acl.d/luci-app-alist.json new file mode 100644 index 0000000000..991dfa0291 --- /dev/null +++ b/applications/luci-app-alist/root/usr/share/rpcd/acl.d/luci-app-alist.json @@ -0,0 +1,17 @@ +{ + "luci-app-alist": { + "description": "Grant UCI access for luci-app-alist", + "read": { + "file": { + "/var/run/alist/log/alist.log": [ "read" ] + }, + "ubus": { + "service": [ "list" ] + }, + "uci": [ "alist" ] + }, + "write": { + "uci": [ "alist" ] + } + } +} |