2018-03-07 14:28:48 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
|
|
|
|
|
|
|
Vue.use(Router)
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
routes: [
|
2018-03-08 15:08:33 +01:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'login',
|
|
|
|
component: require('@/components/Login').default
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/authorize',
|
|
|
|
name: 'authorize',
|
|
|
|
component: require('@/components/Authorize').default
|
|
|
|
},
|
2018-03-07 14:28:48 +01:00
|
|
|
{
|
|
|
|
path: '/',
|
2018-03-08 11:53:14 +01:00
|
|
|
name: 'global-header',
|
|
|
|
component: require('@/components/GlobalHeader').default,
|
|
|
|
children: [
|
|
|
|
{
|
2018-03-09 07:21:25 +01:00
|
|
|
path: ':id/',
|
2018-03-08 16:24:18 +01:00
|
|
|
name: 'timeline-space/',
|
2018-03-09 07:21:25 +01:00
|
|
|
component: require('@/components/TimelineSpace').default,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'home',
|
|
|
|
name: 'home',
|
|
|
|
component: require('@/components/TimelineSpace/Home').default
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'notification',
|
|
|
|
name: 'notification',
|
|
|
|
component: require('@/components/TimelineSpace/Notification').default
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'fav',
|
|
|
|
name: 'fav',
|
|
|
|
component: require('@/components/TimelineSpace/Fav').default
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'local',
|
|
|
|
name: 'local',
|
|
|
|
component: require('@/components/TimelineSpace/Local').default
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'global',
|
|
|
|
name: 'global',
|
|
|
|
component: require('@/components/TimelineSpace/Global').default
|
|
|
|
}
|
|
|
|
]
|
2018-03-08 11:53:14 +01:00
|
|
|
}
|
|
|
|
]
|
2018-03-08 10:36:09 +01:00
|
|
|
},
|
2018-03-07 14:28:48 +01:00
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
redirect: '/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|