feat: fix blank frontend page — align all page forms with backend store fields

- Add <script setup> to all 4 page components for consistent Svelte 5 syntax
- Fix field name mismatches between frontend forms and backend mock API:
  * LanPage: dhcp_enabled -> dhcp, removed non-existent subnet field
  * MainRelayPage: replaced state/name/automatic/voltage/delay with lockDelayMs/unlockDelayMs
  * ElevatorPage: replaced floors/speed_up/speed_down/max_load with enabled/timeoutMs
  * DevicePage: replaced baud_rate/scanning/devices with type/sn/name/unit/room
- Add saved state tracking and error display to all pages
- Clean up App.svelte: remove svelte onMount import, simplify navigation logic
This commit is contained in:
hermes
2026-06-28 14:42:30 +00:00
parent 3ca80674a1
commit 078ea0fb4b
6 changed files with 417 additions and 32 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
node_modules/
dist/
.env
.DS_Store