plc_control/web/js
caoqianming 8c1b7b636d refactor(engine): replace 500ms ticker with per-unit event-driven tasks
- Engine now spawns one async task per enabled unit (supervised every 10s)
- wait_phase uses sleep_until + select! for precise timing; 500ms fault-tick
  runs inside each phase so fault/comm is still checked promptly
- WS UnitRuntimeChanged pushed only on state transitions, not every tick
- ControlRuntimeStore gains notify_unit/get_or_create_notify for instant
  wake-up when handlers change auto_enabled or fault_locked
- UnitRuntime: remove last_tick_at, current_run/stop/distributor_elapsed_sec;
  add display_acc_sec (snapshot at transition, avoids mid-cycle jitter)
- accumulated_run_sec now increments by exact run_time_sec*1000 per cycle
- unit.state_changed events no longer written to DB (too frequent)
- Frontend: show display_acc_sec instead of accumulated_run_sec
- styles: event-card flex-shrink:0 fixes text overlap under flex column

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 08:33:00 +08:00
..
api.js fix(toast): remove shake class before hiding to ensure animationend fires 2026-03-25 13:16:50 +08:00
app.js feat(web): dual-view UI — 运维/配置 tab, ops equipment cards with live signal values 2026-03-25 10:25:20 +08:00
chart.js fix(chart): restore realtime updates and axes 2026-03-23 12:55:12 +08:00
docs.js fix(docs): widen API drawer and fix TOC scroll hijacking window 2026-03-25 14:41:17 +08:00
dom.js feat(control): batch start/stop auto control for all enabled units 2026-03-25 13:05:23 +08:00
equipment.js fix(frontend): pre-select active unit when opening new equipment modal 2026-03-24 16:35:33 +08:00
events.js refactor(events): display each event on a single line 2026-03-25 16:40:43 +08:00
index.js refactor(web): split index html into flat fragments 2026-03-23 14:14:19 +08:00
logs.js feat: ws backoff, signal dots, dom cap, unwrap fix, batch size limit 2026-03-25 16:37:14 +08:00
ops.js refactor(engine): replace 500ms ticker with per-unit event-driven tasks 2026-03-26 08:33:00 +08:00
points.js fix(web): fix node count showing 2x by counting only details elements 2026-03-25 08:27:06 +08:00
roles.js refactor(control): align point roles and equipment kind 2026-03-24 13:17:53 +08:00
sources.js feat(web): reorganize equipment layout and point flows 2026-03-23 12:49:26 +08:00
state.js feat(web): dual-view UI — 运维/配置 tab, ops equipment cards with live signal values 2026-03-25 10:25:20 +08:00
units.js refactor(engine): replace 500ms ticker with per-unit event-driven tasks 2026-03-26 08:33:00 +08:00