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("MyGames"),
49 component: loadView("Game"),
52 path: "/analyse/:vname([a-zA-Z0-9]+)",
54 component: loadView("Analyse"),
59 component: loadView("About"),
64 export default router
;