* fix: set vite base path during deploy build + allow google fonts * ci: only set vite base path if build is for production release * test: add html-validate ignore rules for vite generated content that is valid * fix: show buttons on regular sessions without agenda materials + link to legacy agenda * fix: temporarily hide left menu on agenda-neue and floor-plan-neue * fix: set resize handler to whole app * fix: apply html-validate ignore to agenda-neue only + deploy/build.sh fix * test: change old agenda cypress to always take the same elements to avoid #3564
32 lines
612 B
JavaScript
32 lines
612 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import piniaPersist from 'pinia-plugin-persist'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
|
|
const app = createApp(App, {})
|
|
|
|
// Initialize store (Pinia)
|
|
|
|
const pinia = createPinia()
|
|
pinia.use(piniaPersist)
|
|
app.use(pinia)
|
|
|
|
// Initialize router
|
|
|
|
router.beforeEach((to, from) => {
|
|
// Route Flags
|
|
// -> Remove Left Menu
|
|
if (to.meta.hideLeftMenu) {
|
|
const leftMenuRef = document.querySelector('.leftmenu')
|
|
if (leftMenuRef) {
|
|
leftMenuRef.remove()
|
|
}
|
|
}
|
|
})
|
|
app.use(router)
|
|
|
|
// Mount App
|
|
|
|
app.mount('#app-meeting')
|