2018-11-05 15:26:18 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
|
|
|
import ROUTES from '@/utils/constants/routerConstants';
|
|
|
|
import Login from '@/views/Login.vue';
|
|
|
|
import Register from '@/views/Register.vue';
|
2018-11-14 14:00:01 +00:00
|
|
|
import Dashboard from '@/views/Dashboard.vue';
|
|
|
|
import AccountArea from '@/components/dashboard/account/AccountArea.vue';
|
2018-11-23 15:48:11 +00:00
|
|
|
import ProjectDetails from '@/components/projectDetails/ProjectDetailsArea.vue';
|
2018-11-05 15:26:18 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
mode: 'history',
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: ROUTES.DEFAULT.path,
|
|
|
|
name: ROUTES.DEFAULT.name,
|
|
|
|
component: Login
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ROUTES.REGISTER.path,
|
|
|
|
name: ROUTES.REGISTER.name,
|
|
|
|
component: Register
|
2018-11-14 14:00:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ROUTES.DASHBOARD.path,
|
|
|
|
name: ROUTES.DASHBOARD.name,
|
|
|
|
component: Dashboard,
|
|
|
|
children: [
|
|
|
|
{
|
2018-11-23 15:48:11 +00:00
|
|
|
path: '/account-settings',
|
|
|
|
name: 'AccountSettings',
|
2018-11-14 14:00:01 +00:00
|
|
|
component: AccountArea
|
2018-11-23 15:48:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/project-details',
|
|
|
|
name: 'ProjectDetails',
|
|
|
|
component: ProjectDetails
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
|
|
|
]
|
2018-11-05 15:26:18 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|