2018-10-19 05:15:28 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
2020-08-14 23:59:29 +00:00
|
|
|
import Board from '@/pages/Board';
|
2020-08-18 18:56:10 +00:00
|
|
|
import LegacyBoard from '@/pages/LegacyBoard';
|
2019-08-09 19:12:11 +00:00
|
|
|
import SessionExpired from '@/pages/SessionExpired';
|
2020-08-18 18:56:10 +00:00
|
|
|
import Dashboard from '@/pages/Dashboard';
|
2019-04-19 17:35:02 +00:00
|
|
|
import NotFound from '@/pages/NotFound';
|
2018-10-19 05:15:28 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
2019-11-08 19:56:03 +00:00
|
|
|
routes: [
|
|
|
|
{
|
2020-08-11 04:16:43 +00:00
|
|
|
name: 'home',
|
|
|
|
path: '/',
|
2020-08-18 18:56:10 +00:00
|
|
|
component: Dashboard,
|
2019-11-08 19:56:03 +00:00
|
|
|
meta: {
|
2020-08-18 18:56:10 +00:00
|
|
|
title: 'Dashboard',
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-08-18 18:56:10 +00:00
|
|
|
name: 'boards',
|
|
|
|
path: '/boards',
|
|
|
|
component: Dashboard,
|
2019-11-08 19:56:03 +00:00
|
|
|
meta: {
|
2020-08-18 18:56:10 +00:00
|
|
|
title: 'Dashboard',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'legacy-board',
|
|
|
|
path: '/legacy-board',
|
|
|
|
component: LegacyBoard,
|
|
|
|
meta: {
|
|
|
|
title: 'Boards',
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-08-26 06:38:33 +00:00
|
|
|
path: '/board/:id',
|
2020-08-14 23:59:29 +00:00
|
|
|
name: 'board',
|
|
|
|
component: Board,
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
2020-08-18 18:56:10 +00:00
|
|
|
{
|
|
|
|
name: 'sessionExpired',
|
|
|
|
path: '/session-expired',
|
|
|
|
component: SessionExpired,
|
|
|
|
meta: {
|
|
|
|
title: 'Session expired',
|
|
|
|
},
|
|
|
|
},
|
2019-11-08 19:56:03 +00:00
|
|
|
{
|
|
|
|
path: '/auth/:authProvider',
|
|
|
|
name: 'auth',
|
2020-08-14 23:59:29 +00:00
|
|
|
component: Board,
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
name: 'not-found',
|
|
|
|
component: NotFound,
|
|
|
|
},
|
|
|
|
],
|
2018-10-19 05:15:28 +00:00
|
|
|
});
|