Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-06 23:59:52 +0300
committerJo-Philipp Wich <jo@mein.io>2019-12-16 20:07:17 +0300
commit566a99591b9dd49f1736982a52e17d76f877fa76 (patch)
treea0df6c6241e112f5f891323e869814039bd3cb62 /applications/luci-app-firewall/root
parent16853bcd2e4224c281731adbfa490d704784ec20 (diff)
luci-app-firewall: convert controller to static menu JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/root')
-rw-r--r--applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json b/applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json
new file mode 100644
index 0000000000..c414f36910
--- /dev/null
+++ b/applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json
@@ -0,0 +1,50 @@
+{
+ "admin/network/firewall": {
+ "title": "Firewall",
+ "order": 60,
+ "action": {
+ "type": "alias",
+ "path": "admin/network/firewall/zones"
+ },
+ "depends": {
+ "fs": { "/sbin/fw3": "executable" },
+ "uci": { "firewall": true }
+ }
+ },
+
+ "admin/network/firewall/zones": {
+ "title": "General Settings",
+ "order": 10,
+ "action": {
+ "type": "view",
+ "path": "firewall/zones"
+ }
+ },
+
+ "admin/network/firewall/forwards": {
+ "title": "Port Forwards",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "firewall/forwards"
+ }
+ },
+
+ "admin/network/firewall/rules": {
+ "title": "Traffic Rules",
+ "order": 30,
+ "action": {
+ "type": "view",
+ "path": "firewall/rules"
+ }
+ },
+
+ "admin/network/firewall/custom": {
+ "title": "Custom Rules",
+ "order": 40,
+ "action": {
+ "type": "view",
+ "path": "firewall/custom"
+ }
+ }
+}