diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2024-04-09 10:37:05 +0300 |
---|---|---|
committer | Sergey Ponomarev <stokito@gmail.com> | 2024-04-09 11:02:00 +0300 |
commit | 6afea76f4e5eabc6f0c73729afa3bd3df745e415 (patch) | |
tree | 3039d10ab4217670de7a3c5ca438ed10610e3e15 /applications/luci-app-filebrowser/root/usr | |
parent | 4b771b3df0c39baed5e0904ad66e460691194636 (diff) |
luci-app-filebrowser: File Browser
Add a File Browser based on the FileUpload CBI element.
It allows browsing files and directories on a router, delete and upload.
This covers only basic needs.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-filebrowser/root/usr')
-rw-r--r-- | applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json | 13 | ||||
-rw-r--r-- | applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json b/applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json new file mode 100644 index 0000000000..506706957c --- /dev/null +++ b/applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json @@ -0,0 +1,13 @@ +{ + "admin/system/filebrowser": { + "title": "File Browser", + "order": 80, + "action": { + "type": "view", + "path": "system/filebrowser" + }, + "depends": { + "acl": [ "luci-app-filebrowser" ] + } + } +} diff --git a/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json b/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json new file mode 100644 index 0000000000..858a8dd70d --- /dev/null +++ b/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json @@ -0,0 +1,14 @@ +{ + "luci-app-filebrowser": { + "description": "Grant access to File Browser", + "write": { + "cgi-io": [ "upload", "download" ], + "ubus": { + "file": [ "*" ] + }, + "file": { + "/*": [ "list", "read", "write" ] + } + } + } +} |