Ui rework (#96)

* updated libs, folder rework

* started store modules added data handle mixin

* more store rework

* name refractor and component split

* bug fixes and code cleanup
This commit is contained in:
Ori agranat
2020-05-25 22:46:44 +03:00
committed by GitHub
parent 47c2f8cab0
commit 9141efa2ed
35 changed files with 1316 additions and 1192 deletions

View File

@@ -1,29 +1,23 @@
import Vue from 'vue'
import Router from 'vue-router'
import Camera from "./views/PipelineView";
import Settings from "./views/SettingsView";
Vue.use(Router);
function lazyLoad(view) {
return () => import(`@/views/${view}.vue`)
}
export default new Router({
// mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
redirect: '/vision'
},
{
path: '/vision',
name: 'Vision',
component: lazyLoad('Camera')
},
{
path: '/settings',
name: 'Settings',
component: lazyLoad('Settings')
},
]
routes: [{
path: '/',
redirect: '/vision'
}, {
path: '/vision',
name: 'Vision',
component: Camera
}, {
path: '/settings',
name: 'Settings',
component: Settings
}]
})