2019-09-02 07:29:49 +00:00
|
|
|
import Vue from "vue";
|
|
|
|
import Router from "vue-router";
|
2019-09-02 16:02:40 +00:00
|
|
|
import Home from "@/views/Home.vue";
|
|
|
|
import DeckBuilder from "@/views/DeckBuilder.vue";
|
2019-09-04 10:19:29 +00:00
|
|
|
import GameView from "@/views/Game.vue";
|
|
|
|
import DraftView from "@/views/Draft.vue";
|
|
|
|
import Lobby from "@/views/Lobby.vue";
|
2019-09-04 12:56:02 +00:00
|
|
|
import RoomView from "@/views/Room.vue";
|
2019-09-02 07:29:49 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
mode: "history",
|
|
|
|
base: process.env.BASE_URL,
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
name: "home",
|
|
|
|
component: Home
|
|
|
|
},
|
|
|
|
{
|
2019-09-02 16:02:40 +00:00
|
|
|
path: "/build",
|
|
|
|
name: "deck-editor",
|
|
|
|
component: DeckBuilder
|
2019-09-04 10:19:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/game",
|
|
|
|
name: "game",
|
|
|
|
component: GameView
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/draft",
|
|
|
|
name: "draft",
|
|
|
|
component: DraftView
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/lobby",
|
|
|
|
name: "lobby",
|
|
|
|
component: Lobby
|
2019-09-04 12:56:02 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/room",
|
|
|
|
name: "room",
|
|
|
|
component: RoomView
|
2019-09-02 07:29:49 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|