forked from bluerobotics/BlueOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: frontend: split vehicle setup configurations
- Loading branch information
1 parent
e77593b
commit ce190a7
Showing
2 changed files
with
56 additions
and
39 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,56 +1,60 @@ | ||
<template> | ||
<div> | ||
<v-row class="mt-5"> | ||
<v-col | ||
cols="12" | ||
sm="7" | ||
<v-container fluid> | ||
<v-tabs | ||
v-model="page_selected" | ||
centered | ||
show-arrows | ||
> | ||
<v-tabs-slider /> | ||
<v-tab | ||
v-for="page in pages" | ||
:key="page.value" | ||
> | ||
<v-card class="pa-5 ma-2"> | ||
<vehicle-viewer | ||
noannotations | ||
:autorotate="true" | ||
/> | ||
</v-card> | ||
</v-col> | ||
<v-col | ||
cols="12" | ||
sm="5" | ||
{{ page.title }} | ||
<!-- <v-icon>{{ page.icon }}</v-icon> --> | ||
</v-tab> | ||
</v-tabs> | ||
<v-tabs-items v-model="page_selected"> | ||
<v-tab-item | ||
v-for="page in pages" | ||
:key="page.value" | ||
> | ||
<vehicle-info :autorotate="true" /> | ||
<param-sets /> | ||
</v-col> | ||
</v-row> | ||
<v-sheet class="d-flex"> | ||
<lights-info /> | ||
<gripper-info /> | ||
<leak-info /> | ||
<power-info /> | ||
</v-sheet> | ||
</div> | ||
<param-sets v-if="page.value === 'parameters'" /> | ||
</v-tab-item> | ||
</v-tabs-items> | ||
</v-container> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue' | ||
import VehicleInfo from '@/components/vehiclesetup/overview/VehicleInfo.vue' | ||
import VehicleViewer from '@/components/vehiclesetup/viewers/VehicleViewer.vue' | ||
import GripperInfo from './overview/gripper.vue' | ||
import LeakInfo from './overview/LeakInfo.vue' | ||
import LightsInfo from './overview/LightsInfo.vue' | ||
import ParamSets from './overview/ParamSets.vue' | ||
import PowerInfo from './overview/PowerInfo.vue' | ||
export interface Item { | ||
title: string, | ||
icon: string, | ||
value: string, | ||
} | ||
export default Vue.extend({ | ||
name: 'Configure', | ||
components: { | ||
VehicleViewer, | ||
VehicleInfo, | ||
GripperInfo, | ||
PowerInfo, | ||
LightsInfo, | ||
LeakInfo, | ||
ParamSets, | ||
}, | ||
data() { | ||
return { | ||
page_selected: null as string | null, | ||
pages: [ | ||
{ title: 'Parameters', value: 'parameters' }, | ||
{ title: 'Compass', value: 'compass' }, | ||
{ title: 'Baro', value: 'baro' }, | ||
{ title: 'Accelerometer', value: 'acc' }, | ||
{ title: 'Gripper', value: 'gripper' }, | ||
{ title: 'lights', value: 'lights' }, | ||
{ title: 'Camera Mount', value: 'mount' }, | ||
] as Item[], | ||
} | ||
}, | ||
}) | ||
</script> |
13 changes: 13 additions & 0 deletions
13
core/frontend/src/components/vehiclesetup/viewers/configuration/ParametersSetup.vue
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div>batata </div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue' | ||
export default Vue.extend({ | ||
name: 'Configure', | ||
components: { | ||
}, | ||
}) | ||
</script> |