Revert to Vue2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-23 10:35:46 +01:00
parent e49982389c
commit 808f631024
4 changed files with 2244 additions and 24 deletions

View File

@ -74,9 +74,19 @@ const icon_type = (item)=>{
}
}
const { createApp } = Vue
Vue
.component('l-map', window.Vue2Leaflet.LMap)
.component('l-tile-layer', window.Vue2Leaflet.LTileLayer)
.component('l-marker', window.Vue2Leaflet.LMarker)
.component('l-icon', window.Vue2Leaflet.LIcon)
.component('l-popup', window.Vue2Leaflet.LPopup)
.component('l-tooltip', window.Vue2Leaflet.LTooltip)
.component('l-control-scale', window.Vue2Leaflet.LControlScale)
.component('multiselect', window.VueMultiselect.default);
Vue
.use(window.VueTextareaAutosize);
const app = createApp({
const app = new Vue({
el: '#app',
data: {
journey_id : window.location.pathname.split('/').pop() || gen_id(16),
@ -296,14 +306,4 @@ const app = createApp({
},
})
app
.component('l-map', window.Vue2Leaflet.LMap)
.component('l-tile-layer', window.Vue2Leaflet.LTileLayer)
.component('l-marker', window.Vue2Leaflet.LMarker)
.component('l-icon', window.Vue2Leaflet.LIcon)
.component('l-popup', window.Vue2Leaflet.LPopup)
.component('l-tooltip', window.Vue2Leaflet.LTooltip)
.component('l-control-scale', window.Vue2Leaflet.LControlScale)
.component('multiselect', window.VueMultiselect.default);
app
.use(window.VueTextareaAutosize);