luci-base: convert JavaScript code to ES6 style
authorPaul Donald <newtwen+github@gmail.com>
Fri, 6 Dec 2024 21:21:11 +0000 (22:21 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 19 Dec 2024 23:41:35 +0000 (23:41 +0000)
commit234e1315073595771a7397d74a039d0eb4c1a89d
treeca8aecbf712fb61f29dc37090e2459063feb48ac
parent7fe0218bcf20a38423685cad622b18267d304384
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/rpc.js