diff --git a/public/js/main.js b/public/js/main.js index 8b7479b..7162594 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -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); \ No newline at end of file + diff --git a/public/template/home.html b/public/template/home.html index 078e086..01fc8d1 100644 --- a/public/template/home.html +++ b/public/template/home.html @@ -1,4 +1,5 @@ - + + Helcel-OTM @@ -109,13 +110,13 @@ - - - + + + - - + + diff --git a/public/template/journey.html b/public/template/journey.html index 2398912..11839c5 100644 --- a/public/template/journey.html +++ b/public/template/journey.html @@ -474,16 +474,17 @@ - - - + + + - - + + +