2020-10-03 15:14:47 +00:00
|
|
|
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
|
|
|
|
import Inicio from "../views/Inicio/Inicio.vue";
|
|
|
|
import Sala from "@/views/Sala/Sala.vue";
|
|
|
|
import Juego from "@/views/Juego/Juego.vue";
|
2020-09-30 11:32:44 +00:00
|
|
|
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
2020-10-03 15:14:47 +00:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'Home',
|
|
|
|
component: Inicio
|
|
|
|
},
|
|
|
|
{
|
2020-10-22 13:09:43 +00:00
|
|
|
path: "/sala/:id/",
|
2020-10-03 15:14:47 +00:00
|
|
|
name: "Sala",
|
|
|
|
component: Sala
|
|
|
|
},
|
|
|
|
{
|
2020-10-22 13:09:43 +00:00
|
|
|
path: "/juego/:id/",
|
2020-10-03 15:14:47 +00:00
|
|
|
name: "Juego",
|
|
|
|
component: Juego
|
|
|
|
},
|
|
|
|
{
|
2020-10-22 13:09:43 +00:00
|
|
|
path: "/ayuda/",
|
2020-10-03 15:14:47 +00:00
|
|
|
name: "Ayuda",
|
|
|
|
component: () => import(/* webpackChunkName: "ayuda" */ "../views/Ayuda/Ayuda.vue")
|
2020-10-22 13:09:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/tutorial/",
|
|
|
|
name: "Tutorial",
|
|
|
|
component: () => import(/* webpackChunkName: "tutorial" */ "../views/Tutorial/Tutorial.vue"),
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "",
|
|
|
|
component: () => import(/* webpackChunkName: "tutorial_index" */ "../views/Tutorial/views/Index.vue")
|
2020-10-22 13:52:35 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "cartas/",
|
|
|
|
component: () => import(/* webpackChunkName: "tutorial_cartas" */ "../views/Tutorial/views/Cartas.vue")
|
2020-10-22 15:33:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "mano/",
|
|
|
|
component: () => import(/* webpackChunkName: "tutorial_cartas" */ "../views/Tutorial/views/Mano.vue")
|
2020-10-22 13:09:43 +00:00
|
|
|
}
|
|
|
|
]
|
2020-10-03 15:14:47 +00:00
|
|
|
}
|
|
|
|
];
|
2020-09-30 11:32:44 +00:00
|
|
|
|
|
|
|
const router = createRouter({
|
2020-10-03 15:14:47 +00:00
|
|
|
history: createWebHistory(process.env.BASE_URL),
|
|
|
|
routes
|
|
|
|
});
|
2020-09-30 11:32:44 +00:00
|
|
|
|
2020-10-03 15:14:47 +00:00
|
|
|
export default router;
|