78 lines
2.1 KiB
JavaScript
78 lines
2.1 KiB
JavaScript
import DashView from './components/Dash.vue'
|
|
import LoginView from './components/Login.vue'
|
|
import NotFoundView from './components/404.vue'
|
|
|
|
// Import Views - Dash
|
|
import DashboardView from './components/views/Dashboard.vue'
|
|
import TablesView from './components/views/Tables.vue'
|
|
import TasksView from './components/views/Tasks.vue'
|
|
import SettingView from './components/views/Setting.vue'
|
|
import AccessView from './components/views/Access.vue'
|
|
import ServerView from './components/views/Server.vue'
|
|
import CryptosView from './components/views/Cryptos.vue'
|
|
import PersonalFinancesView from './components/views/PersonalFinances.vue'
|
|
|
|
// Routes
|
|
const routes = [
|
|
{
|
|
path: '/login',
|
|
component: LoginView
|
|
},
|
|
{
|
|
path: '/',
|
|
component: DashView,
|
|
children: [
|
|
{
|
|
path: 'personalfinancesLogin',
|
|
alias: '',
|
|
component: PersonalFinancesView,
|
|
name: 'Personal Finances',
|
|
meta: {description: 'Overview of environment'}
|
|
},
|
|
{
|
|
path: 'dashboard',
|
|
alias: '',
|
|
component: DashboardView,
|
|
name: 'Dashboard',
|
|
meta: {description: 'Overview of environment'}
|
|
}, {
|
|
path: 'tables',
|
|
component: TablesView,
|
|
name: 'Tables',
|
|
meta: {description: 'Simple and advance table in CoPilot'}
|
|
}, {
|
|
path: 'tasks',
|
|
component: TasksView,
|
|
name: 'Tasks',
|
|
meta: {description: 'Tasks page in the form of a timeline'}
|
|
}, {
|
|
path: 'setting',
|
|
component: SettingView,
|
|
name: 'Settings',
|
|
meta: {description: 'User settings page'}
|
|
}, {
|
|
path: 'access',
|
|
component: AccessView,
|
|
name: 'Access',
|
|
meta: {description: 'Example of using maps'}
|
|
}, {
|
|
path: 'server',
|
|
component: ServerView,
|
|
name: 'Servers',
|
|
meta: {description: 'List of our servers', requiresAuth: true}
|
|
}, {
|
|
path: 'cryptos',
|
|
component: CryptosView,
|
|
name: 'Cryptos',
|
|
meta: {description: 'List of popular javascript repos'}
|
|
}
|
|
]
|
|
}, {
|
|
// not found handler
|
|
path: '*',
|
|
component: NotFoundView
|
|
}
|
|
]
|
|
|
|
export default routes
|