2 import Router
from "vue-router";
3 import Hall
from "./views/Hall.vue";
7 function loadView(view
) {
9 import(/* webpackChunkName: "view-[request]" */ `@/views/${view}.vue`);
12 const router
= new Router({
22 component: loadView("Variants")
25 path: "/variants/:vname([a-zA-Z0-9]+)",
27 component: loadView("Rules")
30 path: "/authenticate/:token",
32 component: loadView("Auth")
37 component: loadView("Logout")
42 component: loadView("Problems")
47 component: loadView("MyGames")
50 path: "/game/:id([a-zA-Z0-9]+)",
52 component: loadView("Game")
55 path: "/analyse/:vname([a-zA-Z0-9]+)",
57 component: loadView("Analyse")
62 component: loadView("About")
67 component: loadView("News")
72 export default router
;