2018-09-06 19:46:09 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
|
|
|
|
|
|
|
import HomeComponent from '@/components/Home'
|
2018-09-08 22:27:13 +02:00
|
|
|
// User Handling
|
|
|
|
import LoginComponent from '@/components/user/Login'
|
|
|
|
import RegisterComponent from '@/components/user/Register'
|
2018-09-08 23:33:23 +02:00
|
|
|
// List Handling
|
|
|
|
import ShowListComponent from '@/components/lists/ShowList'
|
2018-09-09 21:28:07 +02:00
|
|
|
import NewListComponent from '@/components/lists/NewList'
|
2018-09-12 08:42:07 +02:00
|
|
|
import EditListComponent from '@/components/lists/EditList'
|
2018-09-11 19:20:07 +02:00
|
|
|
// Namespace Handling
|
|
|
|
import NewNamespaceComponent from '@/components/namespaces/NewNamespace'
|
2018-09-11 19:46:14 +02:00
|
|
|
import EditNamespaceComponent from '@/components/namespaces/EditNamespace'
|
2018-09-14 07:23:25 +02:00
|
|
|
// Team Handling
|
|
|
|
import ListTeamsComponent from '@/components/teams/ListTeams'
|
|
|
|
import EditTeamComponent from '@/components/teams/EditTeam'
|
2018-09-06 19:46:09 +02:00
|
|
|
|
|
|
|
Vue.use(Router)
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'home',
|
|
|
|
component: HomeComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'login',
|
|
|
|
component: LoginComponent
|
2018-09-08 22:27:13 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/register',
|
|
|
|
name: 'register',
|
|
|
|
component: RegisterComponent
|
2018-09-08 23:33:23 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/lists/:id',
|
|
|
|
name: 'showList',
|
|
|
|
component: ShowListComponent
|
2018-09-09 21:28:07 +02:00
|
|
|
},
|
2018-09-12 08:42:07 +02:00
|
|
|
{
|
|
|
|
path: '/lists/:id/edit',
|
|
|
|
name: 'editList',
|
|
|
|
component: EditListComponent
|
|
|
|
},
|
2018-09-09 21:28:07 +02:00
|
|
|
{
|
2018-09-11 19:20:07 +02:00
|
|
|
path: '/namespaces/:id/list',
|
2018-09-09 21:28:07 +02:00
|
|
|
name: 'newList',
|
|
|
|
component: NewListComponent
|
2018-09-11 19:20:07 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/namespaces/new',
|
|
|
|
name: 'newNamespace',
|
|
|
|
component: NewNamespaceComponent
|
2018-09-11 19:46:14 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/namespaces/:id/edit',
|
|
|
|
name: 'editNamespace',
|
|
|
|
component: EditNamespaceComponent
|
2018-09-14 07:23:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/teams',
|
|
|
|
name: 'listTeams',
|
|
|
|
component: ListTeamsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/teams/:id/edit',
|
|
|
|
name: 'editTeam',
|
|
|
|
component: EditTeamComponent
|
|
|
|
},
|
2018-09-06 19:46:09 +02:00
|
|
|
]
|
|
|
|
})
|