mirror of
https://github.com/Vale54321/schafkopf-bot.git
synced 2025-12-18 04:29:33 +01:00
Message types and server (#44)
* message type and handling * deleted web-content and fixed bug * edited main page
This commit is contained in:
committed by
GitHub
parent
cab2d36f48
commit
a0a1cfaa4a
@@ -1,5 +1,24 @@
|
||||
import { createApp } from 'vue'
|
||||
import {createApp} from 'vue'
|
||||
import './style.css'
|
||||
import App from './App.vue'
|
||||
import {createRouter, createWebHistory} from "vue-router";
|
||||
import {setupService} from "./services/DependencyInjection.ts";
|
||||
|
||||
createApp(App).mount('#app')
|
||||
const routes = [
|
||||
{path: '/', component: () => import('./pages/MainMenu.vue'),},
|
||||
{path: '/online', component: () => import('./pages/OnlineGameList.vue'),},
|
||||
{path: '/localgame', component: () => import('./pages/LocalGame.vue'),},
|
||||
{path: '/dedicatedgame', component: () => import('./pages/DedicatedGame.vue'),},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
const websocketIp = import.meta.env.VITE_APP_WEBSOCKET_IP;
|
||||
setupService("ws://" + websocketIp + ":8080/schafkopf-events/");
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(router)
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user