Maxim Prokhorov
a0ed9b0e82
test: sync webui data
2024-08-03 01:31:45 +03:00
Maxim Prokhorov
af3f83841f
emon: side-by-side current and expected values
2024-08-03 01:31:45 +03:00
Maxim Prokhorov
2c8470c11c
sns: poll the remote until sensors are ready
2024-08-03 01:31:45 +03:00
Maxim Prokhorov
5f830c28ce
sns: redundant code in units and energy ui
...
also fix template anonymous types warnings
2024-08-03 01:31:45 +03:00
Maxim Prokhorov
de2f96a7eb
webui: disallow empty type[number]
...
...unless necessary, like with magnitude zero threshold
2024-08-03 01:31:45 +03:00
Maxim Prokhorov
8d8d60fb81
sns: nicer inputs and reworked units ws payload
...
send tuples per unit type, not per magnitude
fix label and span init order for magnitude settings
2024-08-03 01:31:45 +03:00
Maxim Prokhorov
4fda84082a
setup: missing panel switch trigger
...
password panel should not show up on initial page load in normal mode
2024-08-03 01:30:53 +03:00
Maxim Prokhorov
8fcf4a842d
webui: custom enumerable callback
2024-07-30 01:18:18 +03:00
Maxim Prokhorov
2e6389002f
webui: numeric inputs and NaNs
...
allow empty numeric input
fix element setters sometimes forgetting to set the value
fix NaN equality comparison for element value getters
2024-07-30 00:37:29 +03:00
Maxim Prokhorov
4807a95627
test: extra condition check for #2613
2024-07-25 22:38:47 +03:00
Maxim Prokhorov
a2cd6857b1
webui: password pair validation fixes
...
move isChanged check to validator, always return both inputs for the given form
add assumeChanged?: boolean to opts, allowes forced check (similar to getData option)
small layout test for password and general forms, resolve #2613
attempt to make 'original' === undefined return consistent value
2024-07-25 22:01:58 +03:00
Maxim Prokhorov
6716780f1f
rfb: no spellcheck for hex codes
2024-07-17 21:46:49 +03:00
Maxim Prokhorov
a12e734ee7
webui: show panel and elem when failing validation
...
expect regexp to validate length too
simplify hostname checks
more module shuffling, move ui ids into a separate one
amend 72fbdc2425
amend ed26dbda8b
2024-07-17 21:42:29 +03:00
Maxim Prokhorov
71d96ed316
webui: fix "listen to" naming, proper array usage
2024-07-15 15:56:43 +03:00
Maxim Prokhorov
18ce6690bf
webui: typo
2024-07-13 11:22:53 +03:00
Maxim Prokhorov
d72c653483
webui: bump to pure-css 3.0.0
...
missed 2.0.5 release media queries for hi-res screens
mention side-menu layout css origin
2024-07-13 11:02:30 +03:00
Maxim Prokhorov
351ca62184
webui: dispatch event with urls payload
...
and just store as a dataset item on the button
2024-07-13 10:48:46 +03:00
Maxim Prokhorov
72fbdc2425
webui: password webmode as a panel
2024-07-12 20:55:09 +03:00
Maxim Prokhorov
ed26dbda8b
webui: more annoying group input/select
...
revert set:/del: merge, do not allow to miss key pruning
allow certain fields to have 'unset' state via 'required' attribute
ensure 'unset' fields cannot be added to data payload
generate ui tooltip when 'unset' field is created in a group or erased by user
ref. #2612
2024-07-12 18:27:42 +03:00
Maxim Prokhorov
8c40476ab8
webui: event-based name updates
...
enumerable key:entries[] delivered as events
update span / label as well as select
2024-07-12 18:05:32 +03:00
Maxim Prokhorov
13ca2149db
webui: real index override w/ sourcemaps
...
generate debugable .html output per build flavour
drop device-fs-friendly blobs from the repo, expect local rebuild
2024-07-08 10:16:41 +03:00
Maxim Prokhorov
3c4bae2007
webui: filter panel click by data-panel
2024-07-07 08:20:50 +03:00
Maxim Prokhorov
fb1bec5e11
dcz: invalid class in webui
2024-07-05 00:52:16 +03:00
Maxim Prokhorov
58f95f44a3
webui: more local.mjs values
2024-07-05 00:52:16 +03:00
Maxim Prokhorov
80d06e440e
webui: duplicate error in dev console
2024-07-05 00:52:16 +03:00
Maxim Prokhorov
5aa459b4c1
webui: scan datetime footer
2024-07-05 00:52:16 +03:00
Maxim Prokhorov
d2764400c9
webui: fix reload events, connection opts
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
8c4ce35eac
webui: checkbox outline
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
55778a99bf
ha: missing webui color
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
6e07b92b21
webui: type typos, more dynamic checkboxes ignore, local mode
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
a1d74164bf
webui: dynamic checkboxes have to use action=none
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
fa03639422
ws: filter out {-,}Infinity and NaN
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
18455d8f9f
webui: selector errors, fixing password inputs
2024-07-05 00:50:48 +03:00
Maxim Prokhorov
53dc51ff41
webui: more typings, clean-up sensor units init
2024-07-04 07:30:50 +03:00
Maxim Prokhorov
c3e587d6fd
webui: attempt to reduce wifi element searches
2024-07-03 02:09:34 +03:00
Maxim Prokhorov
1c19066eab
webui: incorrect initial types, add ota and cmd
2024-07-03 01:41:04 +03:00
Maxim Prokhorov
0157a62f69
webui: fix empty actions, typings for connection and errors
2024-07-03 01:18:08 +03:00
Maxim Prokhorov
31a838fab7
webui: vitest specs
2024-07-02 18:52:51 +03:00
Maxim Prokhorov
02e825571f
webui: (key in cfg) => check for null too
...
should not do implicit 'falsy' check by accessing the value, since boolean 'false' triggers it too
2024-07-02 18:45:19 +03:00
Maxim Prokhorov
937a51d0d4
webui: missing type="range" in input setter
2024-07-02 18:43:07 +03:00
Maxim Prokhorov
3a2da6341e
webui: group element indexing typo
2024-07-02 18:42:43 +03:00
Maxim Prokhorov
41e8360e25
webui: pending changes canceling out
2024-07-02 18:41:59 +03:00
Maxim Prokhorov
585efd2cba
webui: more handlers typings
2024-07-02 18:41:29 +03:00
Maxim Prokhorov
28c748e393
webui: types for templates, clean-up consumers
2024-07-01 23:24:22 +03:00
Maxim Prokhorov
a47764c80c
webui: separate originals setter for node and list of elems
...
'FromValuesForNode' is never referencing 'node' when list of elems is provided
'FromValues' with '[]' would simply do nothing
prefer either an explicit list, or a root to perform default query 'input,select'
2024-07-01 19:46:57 +03:00
Maxim Prokhorov
b286859d7a
webui: select value list as stringify func input
2024-07-01 19:42:52 +03:00
Maxim Prokhorov
7926c44b9c
webui: keep save button green with pending changes
...
change event handler should not apply style without checking settings 'changed' property first
export extra func to determine whether element 'changed' attribute itself was changed
2024-07-01 16:12:48 +03:00
Maxim Prokhorov
efd2da6269
webui: enumerables getter cannot return undefined
2024-07-01 16:10:39 +03:00
Maxim Prokhorov
f5b0340cea
webui: bogus original update when setting select
2024-07-01 16:10:15 +03:00
Maxim Prokhorov
7870972492
webui: select setter always replaces the value
2024-07-01 16:09:42 +03:00