rimajon-vue/src/router/index.ts

78 lines
2.6 KiB
TypeScript
Raw Normal View History

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")
},
{
path: "cartas/",
component: () => import(/* webpackChunkName: "tutorial_cartas" */ "../views/Tutorial/views/Cartas.vue")
},
{
path: "mano/",
2020-10-22 22:40:43 +00:00
component: () => import(/* webpackChunkName: "tutorial_mano" */ "../views/Tutorial/views/Mano.vue")
},
{
path: "mano/par/",
component: () => import(/* webpackChunkName: "tutorial_mano_par" */ "../views/Tutorial/views/Mano/Par.vue")
2020-10-22 22:49:32 +00:00
},
{
path: "mano/secuencia/",
component: () => import(/* webpackChunkName: "tutorial_mano_secuencia" */ "../views/Tutorial/views/Mano/Secuencia.vue")
2020-10-22 22:56:55 +00:00
},
{
path: "mano/triple/",
component: () => import(/* webpackChunkName: "tutorial_mano_triple" */ "../views/Tutorial/views/Mano/Triple.vue")
2020-10-22 23:19:28 +00:00
},
{
path: "mano-lista/",
component: () => import(/* webpackChunkName: "tutorial_flujo-juego" */ "../views/Tutorial/views/ManoLista.vue")
},
{
path: "bonus/",
component: () => import(/* webpackChunkName: "tutorial_bonus" */ "../views/Tutorial/views/Bonus.vue")
2020-11-26 20:40:38 +00:00
},
{
path: "puntaje/",
component: () => import(/* webpackChunkName: "tutorial_puntaje" */ "../views/Tutorial/views/Puntaje.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;