-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.ts
24 lines (21 loc) · 1.15 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { createRouter, createWebHistory } from '@ionic/vue-router';
import { RouteRecordRaw } from 'vue-router';
import EventSelectorPage from "@/views/EventSelectorPage.vue";
const routes: Array<RouteRecordRaw> = [
{ path: '/', redirect: '/event-selector' },
{ path: '/event-selector', component: EventSelectorPage },
{ path: '/events/:eventId', component: () => import('@/views/event/_BaseEventPages.vue'), children: [
{ path: '', redirect: (route) => `/events/${route.params.eventId}/schedule` },
{ path: 'schedule', component: () => import('@/views/event/SchedulePage.vue') },
{ path: 'favorites', component: () => import('@/views/event/FavoritesPage.vue') },
{ path: 'feedbacks', component: () => import('@/views/event/FeedbacksPage.vue') },
{ path: 'notifications', component: () => import('@/views/event/NotificationsPage.vue') },
{ path: 'infos', component: () => import('@/views/event/InfosPage.vue') },
{ path: 'talks/:talkId/details', component: () => import('@/views/event/TalkDetailsPage.vue') },
]},
]
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes
})
export default router