Add routing, state mgmt and train types

This commit is contained in:
Conor McNamara
2023-03-04 17:02:06 +00:00
parent b0b5ecd36a
commit 8af615a429
12 changed files with 606 additions and 89 deletions

View File

@ -7,7 +7,16 @@ import 'vue3-openlayers/dist/vue3-openlayers.css'
import { LoadingPlugin } from 'vue-loading-overlay'
import 'vue-loading-overlay/dist/css/index.css'
import { createRouter, createWebHistory } from 'vue-router';
import routes from './router/routes';
let router = createRouter({
history: createWebHistory(),
routes: routes
})
const app = createApp(App);
app.use(router);
app.use(OpenLayersMap)
app.use(LoadingPlugin)
app.mount('#app')