luci-base: convert JavaScript code to ES6 style es6 6597/head
authorJo-Philipp Wich <jo@mein.io>
Thu, 31 Aug 2023 15:03:49 +0000 (17:03 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 26 Sep 2023 07:36:25 +0000 (09:36 +0200)
commit4c7a3925b83d45e61cb7610614cb8b04705d1ec5
tree842032696f73a7a2dcaede00b9afccb7620509e0
parent01d6d7d326952208d6f3b7d5dbed0c5cad435a03
luci-base: convert JavaScript code to ES6 style

Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.

This makes the code somewhat easier to follow and slightly smaller.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/luci.js
modules/luci-base/htdocs/luci-static/resources/rpc.js
modules/luci-base/htdocs/luci-static/resources/uci.js
modules/luci-base/htdocs/luci-static/resources/ui.js
modules/luci-base/htdocs/luci-static/resources/validation.js