This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
2019-07-13 23:20:55 +00:00
|
|
|
import Vue from 'vue';
|
2018-02-01 16:33:18 +00:00
|
|
|
import Router from 'vue-router';
|
2019-07-13 23:20:55 +00:00
|
|
|
import Lines from './views/Lines.vue';
|
|
|
|
import LineStations from './views/LineStations.vue';
|
|
|
|
import Doors from './views/Doors.vue';
|
|
|
|
import Stations from './views/Stations.vue';
|
|
|
|
import Station from './views/Station.vue';
|
|
|
|
import About from './views/About.vue';
|
|
|
|
import NotFound from './views/NotFound.vue';
|
|
|
|
|
|
|
|
Vue.use(Router);
|
2018-02-01 16:33:18 +00:00
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
2018-02-01 18:21:47 +00:00
|
|
|
redirect: '/lines',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/lines',
|
|
|
|
name: 'Lines',
|
|
|
|
component: Lines,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/line/:line/:dest',
|
|
|
|
name: 'LineStations',
|
|
|
|
component: LineStations,
|
2018-02-01 16:33:18 +00:00
|
|
|
},
|
2018-02-07 08:42:23 +00:00
|
|
|
{
|
|
|
|
path: '/doors/:line/:dest/:station',
|
|
|
|
name: 'Doors',
|
|
|
|
component: Doors,
|
|
|
|
},
|
2018-02-02 09:54:19 +00:00
|
|
|
{
|
|
|
|
path: '/stations',
|
|
|
|
name: 'Stations',
|
|
|
|
component: Stations,
|
|
|
|
},
|
2018-02-07 09:13:59 +00:00
|
|
|
{
|
|
|
|
path: '/station/:station',
|
|
|
|
name: 'Station',
|
|
|
|
component: Station,
|
|
|
|
},
|
2018-02-01 20:00:21 +00:00
|
|
|
{
|
|
|
|
path: '/about',
|
|
|
|
name: 'About',
|
|
|
|
component: About,
|
|
|
|
},
|
2018-02-02 09:11:11 +00:00
|
|
|
{
|
|
|
|
path: '/404',
|
|
|
|
component: NotFound,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
redirect: '/404',
|
|
|
|
},
|
2018-02-01 16:33:18 +00:00
|
|
|
],
|
|
|
|
});
|