Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/js/routes.js
import Vue from 'vue' | import Vue from 'vue' | ||||
import VueRouter from 'vue-router' | import VueRouter from 'vue-router' | ||||
Vue.use(VueRouter) | Vue.use(VueRouter) | ||||
import DashboardComponent from '../components/Dashboard' | import DashboardComponent from '../components/Dashboard' | ||||
import DomainInfoComponent from '../components/Domain/Info' | import DomainInfoComponent from '../components/Domain/Info' | ||||
import DomainListComponent from '../components/Domain/List' | import DomainListComponent from '../components/Domain/List' | ||||
import Error404Component from '../components/404' | import Error404Component from '../components/404' | ||||
import LoginComponent from '../components/Login' | import LoginComponent from '../components/Login' | ||||
import LogoutComponent from '../components/Logout' | import LogoutComponent from '../components/Logout' | ||||
import PasswordResetComponent from '../components/PasswordReset' | import PasswordResetComponent from '../components/PasswordReset' | ||||
import SignupComponent from '../components/Signup' | import SignupComponent from '../components/Signup' | ||||
import UserInfoComponent from '../components/User/Info' | import UserInfoComponent from '../components/User/Info' | ||||
import UserListComponent from '../components/User/List' | import UserListComponent from '../components/User/List' | ||||
import UserProfileComponent from '../components/User/Profile' | import UserProfileComponent from '../components/User/Profile' | ||||
import UserProfileDeleteComponent from '../components/User/ProfileDelete' | |||||
import store from './store' | import store from './store' | ||||
const routes = [ | const routes = [ | ||||
{ | { | ||||
path: '/', | path: '/', | ||||
redirect: { name: 'dashboard' } | redirect: { name: 'dashboard' } | ||||
}, | }, | ||||
Show All 32 Lines | const routes = [ | ||||
}, | }, | ||||
{ | { | ||||
path: '/profile', | path: '/profile', | ||||
name: 'profile', | name: 'profile', | ||||
component: UserProfileComponent, | component: UserProfileComponent, | ||||
meta: { requiresAuth: true } | meta: { requiresAuth: true } | ||||
}, | }, | ||||
{ | { | ||||
path: '/profile/delete', | |||||
name: 'profile-delete', | |||||
component: UserProfileDeleteComponent, | |||||
meta: { requiresAuth: true } | |||||
}, | |||||
{ | |||||
path: '/signup/:param?', | path: '/signup/:param?', | ||||
name: 'signup', | name: 'signup', | ||||
component: SignupComponent | component: SignupComponent | ||||
}, | }, | ||||
{ | { | ||||
path: '/user/:user', | path: '/user/:user', | ||||
name: 'user', | name: 'user', | ||||
component: UserInfoComponent, | component: UserInfoComponent, | ||||
Show All 36 Lines |