luci-base: convert JavaScript code to ES6 style
authorPaul Donald <newtwen+github@gmail.com>
Fri, 6 Dec 2024 21:23:59 +0000 (22:23 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 19 Dec 2024 23:42:19 +0000 (23:42 +0000)
commit1750968879c8805355d1c3517ea492791c07c457
tree4e8c241ff9cb26418460a5541866d70e7a383daa
parent234e1315073595771a7397d74a039d0eb4c1a89d
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/luci.js