This commit is contained in:
parent
8d10986e35
commit
8a3a3b8d46
@ -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:"",
|
||||||
|
@ -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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user