59 lines
1.4 KiB
JavaScript
59 lines
1.4 KiB
JavaScript
import HomePage from '@/pages/home/HomePage.vue'
|
|
import LoginPage from '@/pages/login/LoginPage.vue'
|
|
import LaravelPage from '@/pages/testing/LaravelPage.vue'
|
|
import WebsocketsPage from '@/pages/testing/WebsocketsPage.vue'
|
|
import TestAnimations from '@/pages/TestAnimations.vue'
|
|
import TestDealing from '@/pages/TestDealing.vue'
|
|
import TestAllAnimations from '@/pages/TestAllAnimations.vue'
|
|
import TestGameBoard from '@/pages/TestGameBoard.vue'
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
component: HomePage,
|
|
},
|
|
{
|
|
path: '/login',
|
|
component: LoginPage,
|
|
},
|
|
{
|
|
path: '/user',
|
|
component: UserPage,
|
|
},
|
|
{
|
|
path: '/testing',
|
|
children: [
|
|
{
|
|
path: 'laravel',
|
|
component: LaravelPage,
|
|
},
|
|
{
|
|
path: 'websockets',
|
|
component: WebsocketsPage,
|
|
},
|
|
{
|
|
path: 'animations',
|
|
component: TestAnimations,
|
|
},
|
|
{
|
|
path: 'dealing',
|
|
component: TestDealing,
|
|
},
|
|
{
|
|
path: 'all-animations',
|
|
component: TestAllAnimations,
|
|
},
|
|
{
|
|
path: 'gameboard',
|
|
component: TestGameBoard,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
})
|
|
|
|
export default router
|