luci-base: convert JavaScript code to ES6 style
authorPaul Donald <newtwen+github@gmail.com>
Sat, 7 Dec 2024 03:14:37 +0000 (04:14 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 19 Dec 2024 23:42:20 +0000 (23:42 +0000)
commitecd6cee5f63fb5c48b8c877fb50d8c759de45da1
tree7fa5c20a26859008f3551d4d086e93223e9fd8ce
parentc2fc96cc4c6b35f19638f8c54599041ce6e39da4
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/ui.js