From 808f6310241523553c84665296c4f8b1f7c77123 Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 23 Mar 2022 10:35:46 +0100 Subject: [PATCH] Revert to Vue2 --- public/js/main.js | 26 +- public/template/home.html | 13 +- public/template/journey.html | 11 +- yarn.lock | 2218 ++++++++++++++++++++++++++++++++++ 4 files changed, 2244 insertions(+), 24 deletions(-) create mode 100644 yarn.lock 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 @@ - - - + + + - - + + +