2019-09-20 09:59:16 +03:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import Router from 'vue-router'
|
2020-07-13 19:34:31 -07:00
|
|
|
import Dashboard from "./views/PipelineView";
|
2020-07-31 13:50:50 -07:00
|
|
|
import Cameras from "./views/CamerasView";
|
2020-05-25 22:46:44 +03:00
|
|
|
import Settings from "./views/SettingsView";
|
2020-07-07 22:10:28 +03:00
|
|
|
import Docs from "./views/DocsView";
|
2020-09-04 18:18:44 -07:00
|
|
|
|
2019-11-01 17:10:48 +02:00
|
|
|
Vue.use(Router);
|
2019-09-20 09:59:16 +03:00
|
|
|
|
|
|
|
|
export default new Router({
|
2020-03-19 14:02:49 +02:00
|
|
|
// mode: 'history',
|
|
|
|
|
base: process.env.BASE_URL,
|
2020-05-25 22:46:44 +03:00
|
|
|
routes: [{
|
|
|
|
|
path: '/',
|
2020-07-13 19:34:31 -07:00
|
|
|
redirect: '/dashboard'
|
2020-05-25 22:46:44 +03:00
|
|
|
}, {
|
2020-07-13 19:34:31 -07:00
|
|
|
path: '/dashboard',
|
|
|
|
|
name: 'Dashboard',
|
|
|
|
|
component: Dashboard
|
2020-07-31 13:50:50 -07:00
|
|
|
}, {
|
|
|
|
|
path: '/cameras',
|
|
|
|
|
name: 'Cameras',
|
|
|
|
|
component: Cameras
|
2020-05-25 22:46:44 +03:00
|
|
|
}, {
|
|
|
|
|
path: '/settings',
|
|
|
|
|
name: 'Settings',
|
|
|
|
|
component: Settings
|
2020-07-07 22:10:28 +03:00
|
|
|
}, {
|
|
|
|
|
path: '/docs',
|
|
|
|
|
name: 'Docs',
|
|
|
|
|
component: Docs
|
2020-05-25 22:46:44 +03:00
|
|
|
}]
|
2019-09-20 09:59:16 +03:00
|
|
|
})
|