Initial Websockets, Rooms & Players done

This commit is contained in:
Johnathon Slightham
2021-02-20 03:43:23 -05:00
parent eb946e93be
commit d9da392ae8
18 changed files with 3964 additions and 104 deletions

View File

@@ -1,8 +1,31 @@
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
import VueRouter from 'vue-router';
Vue.use(VueRouter);
new Vue({
render: h => h(App),
}).$mount('#app')
import VueAxios from 'vue-axios';
import axios from 'axios';
Vue.use(VueAxios, axios);
Vue.config.productionTip = false;
import Home from './components/Home.vue';
import Game from './components/Game.vue';
const routes = [
{
name: 'home',
path: '/',
component: Home
},
{
name: 'game',
path: '/game/:id',
component: Game
}
];
const router = new VueRouter({ mode: 'history', routes: routes});
new Vue(Vue.util.extend({ router }, App)).$mount('#app');