feat: configure overview camera per curriculum week
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lms",
|
"name": "lms",
|
||||||
"version": "1.1.30",
|
"version": "1.1.31",
|
||||||
"description": "Autonomy Studio LMS Electron app",
|
"description": "Autonomy Studio LMS Electron app",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ function LocalPcWorkspaceMockup({
|
|||||||
const visualizationHostInstanceId = useRef(`${platformId}:${Math.random().toString(36).slice(2)}`).current
|
const visualizationHostInstanceId = useRef(`${platformId}:${Math.random().toString(36).slice(2)}`).current
|
||||||
const [powerActionModalOpen, setPowerActionModalOpen] = useState(false)
|
const [powerActionModalOpen, setPowerActionModalOpen] = useState(false)
|
||||||
const [cameraOpen, setCameraOpen] = useState(false)
|
const [cameraOpen, setCameraOpen] = useState(false)
|
||||||
useEffect(() => { setCameraOpen(false) }, [platformId, workspaceVisible])
|
useEffect(() => { setCameraOpen(false) }, [platformId, workspaceVisible, courseKey, weekNumber])
|
||||||
const [controlCountdownNow, setControlCountdownNow] = useState(Date.now())
|
const [controlCountdownNow, setControlCountdownNow] = useState(Date.now())
|
||||||
const {
|
const {
|
||||||
qaMode,
|
qaMode,
|
||||||
@@ -3424,7 +3424,8 @@ function LocalPcWorkspaceMockup({
|
|||||||
return (
|
return (
|
||||||
<div ref={workspaceRootRef} className={['relative h-full min-h-0 overflow-hidden', surface].join(' ')}>
|
<div ref={workspaceRootRef} className={['relative h-full min-h-0 overflow-hidden', surface].join(' ')}>
|
||||||
{cameraOpen && workspaceVisible && <WorkspaceCameraPanel
|
{cameraOpen && workspaceVisible && <WorkspaceCameraPanel
|
||||||
camera={platformOptions.find((platform) => platform.id === platformId)?.camera}
|
key={`${courseKey}:${weekNumber}`}
|
||||||
|
camera={curriculumWeek.detail.camera}
|
||||||
dark={dark}
|
dark={dark}
|
||||||
onClose={() => setCameraOpen(false)}
|
onClose={() => setCameraOpen(false)}
|
||||||
/>}
|
/>}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export type CurriculumWeek = {
|
|||||||
duration: string
|
duration: string
|
||||||
github: string
|
github: string
|
||||||
detail: {
|
detail: {
|
||||||
|
camera?: { url: string; password: string } | null
|
||||||
overview: string
|
overview: string
|
||||||
learningSteps?: LearningStep[]
|
learningSteps?: LearningStep[]
|
||||||
topicDetails: string[]
|
topicDetails: string[]
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export type VehicleRuntimeProfile = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type PlatformOption = {
|
export type PlatformOption = {
|
||||||
camera?: { url: string; password: string } | null
|
|
||||||
id: string
|
id: string
|
||||||
platformKey: string
|
platformKey: string
|
||||||
title: string
|
title: string
|
||||||
|
|||||||
Reference in New Issue
Block a user