luci icon indicating copy to clipboard operation
luci copied to clipboard

Convert LuCI JS code to ES6 standard

Open jow- opened this issue 2 years ago • 3 comments

This PR contains commits dropping polyfills not needed anymore on modern browsers and refactoring code to utilize ES6 syntax elements and features.

jow- avatar Sep 26 '23 07:09 jow-

With this PR, is it your opinion that we can start implementing ES6 for future JS code?

systemcrash avatar Nov 13 '23 17:11 systemcrash

The luci already have many places where the ES6 syntax is used. Keep sources simple and small is complicated so we better to move to ES6. Also please consider to use the JavaScript Standard Style e.g indent with spaces and no semicolons.

I can convert to ES6 other apps.

stokito avatar Dec 06 '23 22:12 stokito

I dislike semicolon omission and space indentation, so personally I am opposed to standard style.

jow- avatar Dec 07 '23 09:12 jow-