feat: live SSE stage, phone view and presenter control
- proxy Go /api/stream through Nitro; drive /stage, /live, /plan and /forecast from scenario events - fall back to 5 s polling after SSE failures or heartbeat silence; show Live/Polling/Offline - authenticate /control and POST /api/scenario in Nitro with server-side control credentials - add big-screen stage with local QR and a no-login phone recommendation view - add SSE unit tests and a live smoke test; refresh README/Makefile
This commit is contained in:
1 parent
7181562e0f
commit
233fdbf66c
24 files changed
+2757
-49
No files matched your search
+6
-1
@@ -5,6 +5,8 @@ import {
|
||||
iconCircleInformation,
|
||||
iconFlash,
|
||||
iconHome,
|
||||
iconMobileSignal,
|
||||
iconPresentionBoard,
|
||||
} from '@sit-onyx/icons'
|
||||
|
||||
const route = useRoute()
|
||||
@@ -21,11 +23,14 @@ const navigation = [
|
||||
{ to: '/forecast', label: 'Forecast', icon: iconChart },
|
||||
{ to: '/plan', label: 'Plan', icon: iconCalendar },
|
||||
{ to: '/simulate', label: 'Simulate', icon: iconFlash },
|
||||
{ to: '/stage', label: 'Stage', icon: iconPresentionBoard },
|
||||
{ to: '/live', label: 'Live', icon: iconMobileSignal },
|
||||
{ to: '/about', label: 'About', icon: iconCircleInformation },
|
||||
]
|
||||
|
||||
const hiddenPageLabels: Record<string, string> = { '/control': 'Control' }
|
||||
const activeLabel = computed(
|
||||
() => navigation.find((item) => item.to === route.path)?.label ?? 'PulseCast',
|
||||
() => navigation.find((item) => item.to === route.path)?.label ?? hiddenPageLabels[route.path] ?? 'PulseCast',
|
||||
)
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user