mirror of
https://github.com/LJ5O/website.git
synced 2026-08-11 14:44:46 +02:00
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import HomeView from '../views/HomeView.vue'
|
|
import BaseArticle from '@/views/BaseArticle.vue'
|
|
import SkillsView from '@/views/SkillsView.vue'
|
|
import ContactView from '@/views/ContactView.vue'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: HomeView,
|
|
},
|
|
{
|
|
path: '/knowledge',
|
|
name: 'knowledge',
|
|
component: BaseArticle
|
|
},
|
|
{
|
|
path: '/skills',
|
|
name: 'skills',
|
|
component: SkillsView
|
|
},
|
|
{
|
|
path: '/education',
|
|
name: 'education',
|
|
component: () => import('../views/EducationView.vue')
|
|
},
|
|
{
|
|
path: '/contact',
|
|
name: 'contact',
|
|
component: ContactView
|
|
},
|
|
{
|
|
path: '/project/semantic-segmentation',
|
|
name: 'semantic_segmentation',
|
|
// route level code-splitting
|
|
// this generates a separate chunk (About.[hash].js) for this route
|
|
// which is lazy-loaded when the route is visited.
|
|
component: () => import('../views/projects/semanticSegmentationView.vue'),
|
|
},
|
|
{
|
|
path: '/project/video-editor',
|
|
name: 'video_editor',
|
|
component: () => import('../views/projects/videoEditorView.vue'),
|
|
}
|
|
],
|
|
})
|
|
|
|
export default router
|