webui: more typings, clean-up sensor units init

This commit is contained in:
Maxim Prokhorov
2024-07-04 07:30:40 +03:00
parent c3e587d6fd
commit 53dc51ff41
31 changed files with 1559 additions and 783 deletions

View File

@@ -108,7 +108,7 @@ export function onPanelTargetClick(event) {
* @param {number} length
* @param {RandomStringOptions} options
*/
export function randomString(length, {hex = false, lowercase = true, numbers = true, special = false, uppercase = true} = {}) {
export function randomString(length, {hex = false, lowercase = false, numbers = false, special = false, uppercase = false} = {}) {
let mask = "";
if (lowercase || hex) { mask += "abcdef"; }
if (lowercase) { mask += "ghijklmnopqrstuvwxyz"; }