-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrouter.ts
More file actions
72 lines (69 loc) · 1.64 KB
/
router.ts
File metadata and controls
72 lines (69 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { createRouter, createWebHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";
const routes: RouteRecordRaw[] = [
{
path: "/",
name: "home",
component: () => import("@/views/main/HomeView.vue"),
},
{
path: "/about",
name: "about",
component: () => import("@/views/AboutView.vue"),
},
{
path: "/queue",
name: "queue",
component: () => import("@/components/schedule/queue/QueueView.vue"),
},
{
path: "/preview",
name: "preview",
component: () => import("@/components/schedule/preview/PreviewView.vue"),
},
{
path: "/db/runs",
name: "runs",
component: () => import("@/components/rdb/RunsView.vue"),
},
{
path: "/db/runs/:runNo",
name: "run",
component: () => import("@/components/rdb/RunView.vue"),
},
{
path: "/dev",
name: "dev",
component: () => import("@/views/dev/DevView.vue"),
},
{
path: "/dev/headers",
name: "dev-headers",
component: () => import("@/views/dev/DevHeadersView.vue"),
},
{
path: "/scratch",
name: "scratch",
component: () => import("@/views/scratch/ScratchView.vue"),
},
{
path: "/scratch/theme",
name: "scratch-theme",
component: () => import("@/views/scratch/ScratchThemeView.vue"),
},
{
path: "/scratch/urql",
name: "scratch-urql",
component: () => import("@/views/scratch/ScratchUrql.vue"),
},
{
path: "/:pathMatch(.*)*",
name: "NotFound",
component: () => import("@/views/NotFoundView.vue"),
},
];
const router = createRouter({
history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH),
routes,
});
export default router;