2018-05-28 18:34:24 +00:00
|
|
|
// Base Vuejs Templates
|
|
|
|
import Login from './components/auth/Login';
|
|
|
|
import Dashboard from './components/dashboard/Dashboard';
|
|
|
|
import Account from './components/dashboard/Account';
|
|
|
|
import ResetPassword from './components/auth/ResetPassword';
|
|
|
|
|
|
|
|
export const routes = [
|
|
|
|
{ name: 'login', path: '/auth/login', component: Login },
|
|
|
|
{ name: 'forgot-password', path: '/auth/password', component: Login },
|
2018-06-03 00:12:45 +00:00
|
|
|
{ name: 'checkpoint', path: '/auth/checkpoint', component: Login },
|
2018-05-28 18:34:24 +00:00
|
|
|
{
|
|
|
|
name: 'reset-password',
|
|
|
|
path: '/auth/password/reset/:token',
|
|
|
|
component: ResetPassword,
|
|
|
|
props: function (route) {
|
|
|
|
return { token: route.params.token, email: route.query.email || '' };
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-06-03 06:15:10 +00:00
|
|
|
{ name : 'dashboard', path: '/', component: Dashboard },
|
2018-05-28 18:34:24 +00:00
|
|
|
{ name : 'account', path: '/account', component: Account },
|
|
|
|
{ name : 'account.api', path: '/account/api', component: Account },
|
|
|
|
{ name : 'account.security', path: '/account/security', component: Account },
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'server',
|
|
|
|
path: '/server/:id',
|
|
|
|
// component: Server,
|
|
|
|
// children: [
|
|
|
|
// { path: 'files', component: ServerFileManager }
|
|
|
|
// ],
|
|
|
|
}
|
|
|
|
];
|