Commit Graph

22 Commits

Author SHA1 Message Date
Maxim Prokhorov
e7acf9fb6a webui(build): rollup circular dependency
avoid sharing utility funcs through the main module
2025-04-14 04:08:48 +03:00
Maxim Prokhorov
9dc57878c1 webui(build): build params & vite dev support
- experimental vite dev server support
- gulp webui_build & webui_PRESET -> build
- gulp task params for build and dev server
- bundle sources using rollup in both gulp and vite
- PRESET lib to manage available modules and their constants
  replacing 'define' method of .js code treeshaking
2025-04-14 01:14:13 +03:00
Maxim Prokhorov
1697f0193f webui(local): do not attach network event handlers 2025-04-04 17:12:37 +03:00
Maxim Prokhorov
efffead793 webui(settings): datalist enumerable for ntp timezones
making use of the feature to programatically generate offset options
additionally, saves 38bytes in the resulting blob
2025-03-19 04:41:06 +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
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
72fbdc2425 webui: password webmode as a panel 2024-07-12 20:55:09 +03:00
Maxim Prokhorov
3c4bae2007 webui: filter panel click by data-panel 2024-07-07 08:20:50 +03:00
Maxim Prokhorov
80d06e440e webui: duplicate error in dev console 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
6e07b92b21 webui: type typos, more dynamic checkboxes ignore, local mode 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
0157a62f69 webui: fix empty actions, typings for connection and errors 2024-07-03 01:18:08 +03:00
Maxim Prokhorov
585efd2cba webui: more handlers typings 2024-07-02 18:41:29 +03:00
Maxim Prokhorov
cca45a69be webui: getGata fixes
inverse logic for 'get everything' agrument (currently, only external use)
search specific forms vs. all document when performing cleanup
more explicit types, allow imports
2024-06-30 17:28:01 +03:00
Maxim Prokhorov
324ed9761b webui: more type warnings clean-up 2024-06-25 22:14:03 +03:00
Maxim Prokhorov
f007db1ff6 webui: implicit build-only consts via .d file 2024-06-25 17:53:50 +03:00
Maxim Prokhorov
a7697a2578 webui: attempt to clean-up index js types
minimal type info for internal and some external funcs
fix Ago updates depending on uptime, use onmessage

html/src/types/* useless (at least without tsc actually running)
2024-06-25 17:53:50 +03:00
Maxim Prokhorov
a1363ddad9 system: iso8601 datetime & webui in local timezone
ref. #2608
2024-06-24 22:42:00 +03:00
Maxim Prokhorov
289fea4f3d webui: separate sources per module
* migrate to esbuild from terser, since now js source needs bundling
* (temporary?) hijack inline-source object handling to inline html files
* get rid of legacy removeIf comments in source in favour of explicit
  removal either through bundling tree-shaking and / or manual module-*
  class element removal w/ jsdom
* get rid of multi-layered custom checkboxes in favour of
  `appearance: none` directly styling the `input` elem
  also removes scripting part that was supposed to adjust for=... labels
* update to html-minifier-terser, up-to-date html-minifier fork
* update to iro.js 5.5.x, using npm to manage dependencies
* build script can now update resulting html output
  (called after bundling stage, before minification)
2024-06-22 19:49:59 +03:00