Add the server routes
This commit is contained in:
parent
79ea4cbe1a
commit
92905a6c2a
2 changed files with 19 additions and 53 deletions
|
@ -9,6 +9,15 @@ import Dashboard from './components/dashboard/Dashboard';
|
|||
import Account from './components/dashboard/Account';
|
||||
import ResetPassword from './components/auth/ResetPassword';
|
||||
import User from './models/user';
|
||||
import {
|
||||
Server,
|
||||
ServerAllocations,
|
||||
ServerConsole, ServerDatabases,
|
||||
ServerFiles,
|
||||
ServerSchedules,
|
||||
ServerSettings,
|
||||
ServerSubusers
|
||||
} from './components/server';
|
||||
|
||||
const routes = [
|
||||
{name: 'login', path: '/auth/login', component: Login},
|
||||
|
@ -28,13 +37,16 @@ const routes = [
|
|||
{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 }
|
||||
// ],
|
||||
{ path: '/server/:id', component: Server,
|
||||
children: [
|
||||
{ name: 'server', path: '', component: ServerConsole },
|
||||
{ name: 'server-files', path: 'files', component: ServerFiles },
|
||||
{ name: 'server-subusers', path: 'subusers', component: ServerSubusers },
|
||||
{ name: 'server-schedules', path: 'schedules', component: ServerSchedules },
|
||||
{ name: 'server-databases', path: 'databases', component: ServerDatabases },
|
||||
{ name: 'server-allocations', path: 'allocations', component: ServerAllocations },
|
||||
{ name: 'server-settings', path: 'settings', component: ServerSettings },
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
// 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';
|
||||
import {
|
||||
Server,
|
||||
ServerAllocations,
|
||||
ServerConsole,
|
||||
ServerDatabases,
|
||||
ServerFiles,
|
||||
ServerSchedules,
|
||||
ServerSettings,
|
||||
ServerSubusers
|
||||
} from "./components/server";
|
||||
|
||||
export const routes = [
|
||||
{ name: 'login', path: '/auth/login', component: Login },
|
||||
{ name: 'forgot-password', path: '/auth/password', component: Login },
|
||||
{ name: 'checkpoint', path: '/auth/checkpoint', component: Login },
|
||||
{
|
||||
name: 'reset-password',
|
||||
path: '/auth/password/reset/:token',
|
||||
component: ResetPassword,
|
||||
props: function (route) {
|
||||
return { token: route.params.token, email: route.query.email || '' };
|
||||
}
|
||||
},
|
||||
|
||||
{ name : 'dashboard', path: '/', component: Dashboard },
|
||||
{ name : 'account', path: '/account', component: Account },
|
||||
{ name : 'account.api', path: '/account/api', component: Account },
|
||||
{ name : 'account.security', path: '/account/security', component: Account },
|
||||
|
||||
{ path: '/server/:serverID', component: Server,
|
||||
children: [
|
||||
{ name: 'server', path: '', component: ServerConsole },
|
||||
{ name: 'server-files', path: 'files', component: ServerFiles },
|
||||
{ name: 'server-subusers', path: 'subusers', component: ServerSubusers },
|
||||
{ name: 'server-schedules', path: 'schedules', component: ServerSchedules },
|
||||
{ name: 'server-databases', path: 'databases', component: ServerDatabases },
|
||||
{ name: 'server-allocations', path: 'allocations', component: ServerAllocations },
|
||||
{ name: 'server-settings', path: 'settings', component: ServerSettings },
|
||||
]
|
||||
}
|
||||
];
|
Loading…
Reference in a new issue