60 lines
1.2 KiB
TypeScript
60 lines
1.2 KiB
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import Home from '../views/Home.vue'
|
|
import Maintenance from '../views/Maintenance.vue'
|
|
import Players from '../views/Players.vue'
|
|
import Start from '../views/Start.vue'
|
|
import Text from '../views/Text.vue'
|
|
|
|
const routeBase: string = "nerdyssey.de/exodus/king-arthur"
|
|
|
|
const routes: any[] = [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: Home
|
|
},
|
|
{
|
|
path: '/players',
|
|
name: 'PlayersDirect',
|
|
component: Players
|
|
},
|
|
{
|
|
path: '/start',
|
|
name: 'StartDirect',
|
|
component: Start
|
|
},
|
|
{
|
|
path: '/text',
|
|
name: 'TextDirect',
|
|
component: Text
|
|
},
|
|
{
|
|
path: '/maintenance',
|
|
name: 'Maintenance',
|
|
component: Maintenance,
|
|
redirect: '/maintenance/players',
|
|
children: [
|
|
{
|
|
path: 'players',
|
|
name: 'PlayersInMaintenance',
|
|
component: Players
|
|
},
|
|
{
|
|
path: 'start',
|
|
name: 'StartInMaintenance',
|
|
component: Start
|
|
},
|
|
{
|
|
path: 'text',
|
|
name: 'TextInMaintenance',
|
|
component: Text
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
export const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes
|
|
})
|