mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
added routes and hidden header when not needed
This commit is contained in:
@@ -18,13 +18,22 @@
|
||||
<Icon type="ios-settings"/>
|
||||
<span v-if="!isCollapsed">Settings</span>
|
||||
</template>
|
||||
<MenuItem name="settings-color">System</MenuItem>
|
||||
<MenuItem name="settings-brightness">Cameras</MenuItem>
|
||||
<MenuItem name="settings-color" to="/settings/system">System</MenuItem>
|
||||
<MenuItem name="settings-brightness" to="/settings/camera">Cameras</MenuItem>
|
||||
</Submenu>
|
||||
</Menu>
|
||||
</Sider>
|
||||
<Layout id="main-layout">
|
||||
<Header id="main-header">Header</Header>
|
||||
<Header id="main-header" v-if="['input','threshold'].indexOf($route.name)>-1">
|
||||
<row type="flex" justify="start" align="middle" >
|
||||
<i-col span="12">
|
||||
<chselect title="select a camera" placeholdert="1" :list="[1,2,3]"></chselect>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<chselect title="select pipline" placeholdert="0" :list="[0,1,2,3,4,5,6,7,8,9]"></chselect>
|
||||
</i-col>
|
||||
</Row>
|
||||
</Header>
|
||||
<Content id="main-content">
|
||||
<row type="flex" justify="start" align="middle" :gutter="5" >
|
||||
<i-col span="12">
|
||||
@@ -43,11 +52,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import Vue from "vue"
|
||||
import chselect from './components/ch-select.vue'
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
components:{
|
||||
chselect
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
isCollapsed: false,
|
||||
@@ -107,6 +119,7 @@
|
||||
|
||||
#main-header {
|
||||
box-shadow: 0px 2px 10px black;
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.layout{
|
||||
|
||||
18
chameleon-client/src/components/CameraTab.vue
Normal file
18
chameleon-client/src/components/CameraTab.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<h4>camera</h4>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: '',
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="" scoped>
|
||||
|
||||
</style>
|
||||
18
chameleon-client/src/components/SystemTab.vue
Normal file
18
chameleon-client/src/components/SystemTab.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<h4>system</h4>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: '',
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,11 +1,15 @@
|
||||
import VueRouter from "vue-router";
|
||||
import Input from "./components/InputTab.vue";
|
||||
import ThreeD from "./components/3DTab.vue";
|
||||
import System from "./components/SystemTab.vue";
|
||||
import Camera from "./components/CameraTab.vue";
|
||||
|
||||
const routes = [
|
||||
{ path: '/', redirect: '/vision/input' },
|
||||
{ path: '/vision/input', component: Input },
|
||||
{ path: '/vision/3d', component: ThreeD }
|
||||
{ path: '/', redirect: '/vision/input'},
|
||||
{ path: '/vision/input', component: Input, name:'input' },
|
||||
{ path: '/vision/3d', component: ThreeD ,name:'threshold'},
|
||||
{path:'/settings/system', component: System },
|
||||
{path:'/settings/camera', component: Camera}
|
||||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
|
||||
Reference in New Issue
Block a user