2 import Router
from "vue-router";
3 import Hall
from "./views/Hall.vue";
7 function loadView(view
) {
8 return () => import(/* webpackChunkName: "view-[request]" */ `@/views/${view}.vue`)
11 import { ajax
} from "@/utils/ajax";
12 import { store
} from "@/store";
14 const router
= new Router({
24 component: loadView("Variants"),
27 path: "/variants/:vname([a-zA-Z0-9]+)",
29 component: loadView("Rules"),
32 path: "/authenticate/:token",
34 component: loadView("Auth"),
39 component: loadView("Logout"),
44 component: loadView("Problems"),
49 component: loadView("MyGames"),
52 path: "/game/:id([a-zA-Z0-9]+)",
54 component: loadView("Game"),
57 path: "/analyse/:vname([a-zA-Z0-9]+)",
59 component: loadView("Analyse"),
64 component: loadView("About"),
69 component: loadView("News"),
74 export default router
;