Refactor LED control UI to Vue3

This commit is contained in:
sealks
2026-07-17 02:10:08 +08:00
parent fe906e028b
commit ba9f0044f3
16 changed files with 1906 additions and 752 deletions
+13
View File
@@ -90,6 +90,19 @@ async def output_ws(websocket: WebSocket, tile_id: str) -> None:
node_id = str(raw.get("node_id") or node_id or "")
sync.clock_quality(node_id, raw.get("clock_offset_ms"), raw.get("rtt_ms"))
record = sync.ack(raw)
release_record = None
if record and raw.get("status") == "prepared":
release_record = sync.release_if_prepared(record.command_id)
if release_record:
await hub.broadcast(
CommandEnvelope(
type=CommandType.COMMIT_SCENE,
command_id=release_record.command_id,
payload=release_record.payload,
),
"admin",
"outputs",
)
await hub.broadcast(
CommandEnvelope(
type=CommandType.ACK,