-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31f90fc
commit f8b341d
Showing
1 changed file
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,61 @@ | ||
<script setup lang="ts"> | ||
import {computed} from "vue"; | ||
import CamerasCard from "@/components/Dashboard/CamerasCard.vue"; | ||
import PipelineConfigCard from "@/components/Dashboard/CameraAndPipelineSelectCard.vue"; | ||
import StreamConfigCard from "@/components/Dashboard/StreamConfigCard.vue"; | ||
import OperationConfigCard from "@/components/Dashboard/PipelineConfigCard.vue"; | ||
import {useCameraSettingsStore} from "@/stores/settings/CameraSettingsStore"; | ||
const cameraViewType = computed<number[]>({ | ||
get: (): number[] => { | ||
// Only show the output stream in Driver Mode | ||
if(useCameraSettingsStore().isDriverMode) return [1]; | ||
const ret: number[] = []; | ||
if(useCameraSettingsStore().currentPipelineSettings.inputShouldShow) { | ||
ret.push(0); | ||
} | ||
if(useCameraSettingsStore().currentPipelineSettings.outputShouldShow) { | ||
ret.push(1); | ||
} | ||
return ret; | ||
}, | ||
set: v => useCameraSettingsStore().changeCurrentPipelineSetting({ | ||
inputShouldShow: v.includes(0), | ||
outputShouldShow: v.includes(1) | ||
}) | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
Hello From the Dashboard View | ||
</div> | ||
<v-container | ||
class="pa-3" | ||
fluid | ||
> | ||
<v-row | ||
no-gutters | ||
align="center" | ||
justify="center" | ||
> | ||
<v-col | ||
cols="12" | ||
:class="['pb-3 ', 'pr-lg-3']" | ||
lg="8" | ||
align-self="stretch" | ||
> | ||
<CamerasCard v-model="cameraViewType"/> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
class="pb-3" | ||
lg="4" | ||
style="display: flex; flex-direction: column" | ||
> | ||
<PipelineConfigCard/> | ||
<StreamConfigCard v-model="cameraViewType"/> | ||
</v-col> | ||
</v-row> | ||
<OperationConfigCard/> | ||
</v-container> | ||
</template> |