Skip to content

Commit

Permalink
Update DashboardView.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 9, 2023
1 parent 31f90fc commit f8b341d
Showing 1 changed file with 59 additions and 3 deletions.
62 changes: 59 additions & 3 deletions photon-client/src/views/DashboardView.vue
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>

0 comments on commit f8b341d

Please sign in to comment.