cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
choelzl 2021-07-16 22:53:57 +02:00
parent 8d10986e35
commit 8a3a3b8d46
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
2 changed files with 7 additions and 8 deletions

View File

@ -71,22 +71,21 @@ Vue.component('l-icon', window.Vue2Leaflet.LIcon);
Vue.component('l-popup', window.Vue2Leaflet.LPopup); Vue.component('l-popup', window.Vue2Leaflet.LPopup);
Vue.component('l-tooltip', window.Vue2Leaflet.LTooltip); Vue.component('l-tooltip', window.Vue2Leaflet.LTooltip);
Vue.component('l-control-scale', window.Vue2Leaflet.LControlScale); Vue.component('l-control-scale', window.Vue2Leaflet.LControlScale);
Vue.use(window.VueTextareaAutosize) Vue.use(window.VueTextareaAutosize);
Vue.component('multiselect', window.VueMultiselect.default);
Vue.component('multiselect', window.VueMultiselect.default)
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
data: { data: {
journey_id : window.location.pathname.toString().split('/').at(-1) || gen_id(16), journey_id : window.location.pathname.split('/').pop() || gen_id(16),
journey_step: window.location.hash.slice(1)==""?((window.location.pathname.toString().split('/').at(1)=='view')?0:-1):parseInt(window.location.hash.slice(1)), journey_step: window.location.hash.slice(1)==""?((window.location.pathname.split('/').at(1)=='view')?0:-1):parseInt(window.location.hash.slice(1)),
journey_step_data: {day:-1, section:-1}, journey_step_data: {day:-1, section:-1},
journey_data : { journey_data : {
name: "New Journey", name: "New Journey",
main:[], main:[],
step_title:[], step_title:[],
}, },
view: window.location.pathname.toString().split('/').at(1)=='view', view: window.location.pathname.split('/').at(1)=='view',
query:{hotel:[],flight:[],nominatim:[]}, query:{hotel:[],flight:[],nominatim:[]},
querying:{hotel:false,flight:false,place:false,food:false}, querying:{hotel:false,flight:false,place:false,food:false},
impexp:"", impexp:"",

View File

@ -184,7 +184,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else-if="journey_step>=0 && journey_data.main[journey_step_data.section]"> <div v-else-if="journey_step>=0 && journey_data.main[journey_step_data.section] != undefined">
<div class="bg-dark text-white" v-cloak> <div class="bg-dark text-white" v-cloak>
<div class="container section"> <div class="container section">
<div class="row text-center"> <div class="row text-center">
@ -333,7 +333,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else> <div v-else-if="journey_data.main[journey_step_data.section] != undefined">
<div class="bg-dark text-white" v-cloak> <div class="bg-dark text-white" v-cloak>
<div class="text-small fright" style="margin:6px 12px;"><a :href="'/'+journey_id" ><i class="fas fa-tools"></i></a></div> <div class="text-small fright" style="margin:6px 12px;"><a :href="'/'+journey_id" ><i class="fas fa-tools"></i></a></div>
<div class="container section"> <div class="container section">