luci-app-commands: rewrite to client side rendering 5976/head
authorJo-Philipp Wich <jo@mein.io>
Mon, 24 Oct 2022 22:55:14 +0000 (00:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 24 Oct 2022 23:03:38 +0000 (01:03 +0200)
commitdd1c538b2ed4e025be6a4006e0e8e2a2bf37ad18
tree6cabbe7b5abc3e683709d8961e4070808bf3b145
parent036424df5b76111f32d4dce0253bfb8260d8a41f
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>
applications/luci-app-commands/htdocs/luci-static/resources/view/commands.js [new file with mode: 0644]
applications/luci-app-commands/luasrc/controller/commands.lua [deleted file]
applications/luci-app-commands/luasrc/model/cbi/commands.lua [deleted file]
applications/luci-app-commands/luasrc/view/commands.htm [deleted file]
applications/luci-app-commands/luasrc/view/commands_public.htm [deleted file]
applications/luci-app-commands/root/usr/share/luci/menu.d/luci-app-commands.json [new file with mode: 0644]
applications/luci-app-commands/ucode/controller/commands.uc [new file with mode: 0644]
applications/luci-app-commands/ucode/template/commands.ut [new file with mode: 0644]
applications/luci-app-commands/ucode/template/commands_public.ut [new file with mode: 0644]