2023-01-25 20:55:24 -03:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router';
|
2023-01-18 22:46:19 -03:00
|
|
|
import AppLayout from '@/layout/AppLayout.vue';
|
2023-01-25 20:55:24 -03:00
|
|
|
import HomeView from '../views/HomeView.vue';
|
2023-01-30 12:48:37 -03:00
|
|
|
import Landing from '../views/Landing.vue';
|
2023-01-30 21:32:32 -03:00
|
|
|
import Login from '../views/Login.vue';
|
2023-01-18 22:46:19 -03:00
|
|
|
|
|
|
|
const router = createRouter({
|
2023-01-25 20:55:24 -03:00
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
2023-01-18 22:46:19 -03:00
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
2023-01-30 12:48:37 -03:00
|
|
|
component: Landing
|
|
|
|
},
|
2023-01-30 21:32:32 -03:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
component: Login
|
|
|
|
},
|
2023-01-30 12:48:37 -03:00
|
|
|
{
|
|
|
|
path: '/home',
|
2023-01-18 22:46:19 -03:00
|
|
|
component: AppLayout,
|
|
|
|
children: [
|
|
|
|
{
|
2023-01-30 12:48:37 -03:00
|
|
|
path: '/home',
|
|
|
|
name: 'Home',
|
2023-01-25 20:55:24 -03:00
|
|
|
component: HomeView
|
2023-01-18 22:46:19 -03:00
|
|
|
},
|
2023-01-30 12:48:37 -03:00
|
|
|
{
|
|
|
|
path: '/charts',
|
|
|
|
name: 'charts',
|
|
|
|
component: () => import('@/views/menu/Chart.vue')
|
|
|
|
},
|
2023-01-18 22:46:19 -03:00
|
|
|
{
|
2023-01-25 20:55:24 -03:00
|
|
|
path: '/about',
|
|
|
|
name: 'about',
|
|
|
|
// route level code-splitting
|
|
|
|
// this generates a separate chunk (About.[hash].js) for this route
|
|
|
|
// which is lazy-loaded when the route is visited.
|
2023-01-30 12:48:37 -03:00
|
|
|
|
2023-01-25 20:55:24 -03:00
|
|
|
component: () => import('../views/AboutView.vue')
|
2023-01-18 22:46:19 -03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|