summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-commands/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-10-25 00:55:14 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-25 01:03:38 +0200
commitdd1c538b2ed4e025be6a4006e0e8e2a2bf37ad18 (patch)
tree6cabbe7b5abc3e683709d8961e4070808bf3b145 /applications/luci-app-commands/luasrc/model
parent036424df5b76111f32d4dce0253bfb8260d8a41f (diff)
luci-app-commands: rewrite to client side rendering
Rewrite the luci-app-command configuration to client side cbi forms and port the server side templates and controller logic to ucode. Also utilize a query string parameter to pass custom arguments. Fixes: #5559 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-commands/luasrc/model')
-rw-r--r--applications/luci-app-commands/luasrc/model/cbi/commands.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/applications/luci-app-commands/luasrc/model/cbi/commands.lua b/applications/luci-app-commands/luasrc/model/cbi/commands.lua
deleted file mode 100644
index 7794f15379..0000000000
--- a/applications/luci-app-commands/luasrc/model/cbi/commands.lua
+++ /dev/null
@@ -1,27 +0,0 @@
--- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
--- Licensed to the public under the Apache License 2.0.
-
-local m, s
-
-m = Map("luci", translate("Custom Commands"),
- translate("This page allows you to configure custom shell commands which can be easily invoked from the web interface."))
-
-s = m:section(TypedSection, "command", "")
-s.template = "cbi/tblsection"
-s.anonymous = true
-s.addremove = true
-
-
-s:option(Value, "name", translate("Description"),
- translate("A short textual description of the configured command"))
-
-s:option(Value, "command", translate("Command"),
- translate("Command line to execute"))
-
-s:option(Flag, "param", translate("Custom arguments"),
- translate("Allow the user to provide additional command line arguments"))
-
-s:option(Flag, "public", translate("Public access"),
- translate("Allow executing the command and downloading its output without prior authentication"))
-
-return m