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

This commit is contained in:
choelzl 2021-07-16 19:37:35 +02:00
parent 7f9050d31d
commit 0162474bf4
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
2 changed files with 14 additions and 14 deletions

View File

@ -78,15 +78,15 @@ 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.split('/').at(-1) || gen_id(16), journey_id : (window.location.pathname + '').split('/').at(-1) || gen_id(16),
journey_step: window.location.hash.slice(1)==""?((window.location.pathname.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.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

@ -79,9 +79,9 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{item.hotel.sname}}</h1> <h1 class="row text-medium text-center">{{item.hotel.sname}}</h1>
<span class="row text-small text-gray">{{item.hotel.display_name}}</span> <span class="row text-small text-gray">{{item.hotel.display_name}}</span>
<div class="row"> <div class="row input">
<textarea-autosize <textarea-autosize
class="col-12 col-sm-10" class="col-12 col-sm-10 text-small"
placeholder="Notes" placeholder="Notes"
v-model="item.hotel.notes" v-model="item.hotel.notes"
:min-height="30" :min-height="30"
@ -103,9 +103,9 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{place.sname}}</h1> <h1 class="row text-medium text-center">{{place.sname}}</h1>
<span class="row text-small text-gray">{{place.display_name}}</span> <span class="row text-small text-gray">{{place.display_name}}</span>
<div class="row"> <div class="row input">
<textarea-autosize <textarea-autosize
class="col-12 col-sm-10" class="col-12 col-sm-10 text-small"
placeholder="Notes" placeholder="Notes"
v-model="place.notes" v-model="place.notes"
:min-height="30" :min-height="30"
@ -121,9 +121,9 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{place.sname}}</h1> <h1 class="row text-medium text-center">{{place.sname}}</h1>
<span class="row text-small text-gray">{{place.display_name}}</span> <span class="row text-small text-gray">{{place.display_name}}</span>
<div class="row"> <div class="row input">
<textarea-autosize <textarea-autosize
class="col-12 col-sm-10" class="col-12 col-sm-10 text-small"
placeholder="Notes" placeholder="Notes"
v-model="place.notes" v-model="place.notes"
:min-height="30" :min-height="30"
@ -215,9 +215,9 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{journey_data.main[journey_step_data.section].hotel.sname}}</h1> <h1 class="row text-medium text-center">{{journey_data.main[journey_step_data.section].hotel.sname}}</h1>
<span class="row text-small text-gray">{{journey_data.main[journey_step_data.section].hotel.display_name}}</span> <span class="row text-small text-gray">{{journey_data.main[journey_step_data.section].hotel.display_name}}</span>
<div class="row"> <div class="row input">
<textarea-autosize <textarea-autosize
class="col-12 col-sm-10" class="col-12 col-sm-10 text-small"
placeholder="Notes" placeholder="Notes"
v-model="journey_data.main[journey_step_data.section].hotel.notes" v-model="journey_data.main[journey_step_data.section].hotel.notes"
:min-height="30" :min-height="30"
@ -382,7 +382,7 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{place.sname}}</h1> <h1 class="row text-medium text-center">{{place.sname}}</h1>
<span class="row text-small text-gray">{{place.display_name}}</span> <span class="row text-small text-gray">{{place.display_name}}</span>
<span class="row text-small text-white">{{place.notes}}</span> <span class="row text-small text-dark">{{place.notes}}</span>
</l-popup> </l-popup>
</l-marker> </l-marker>
<l-marker v-for="place in journey_data.main[journey_step_data.section].places.activities" :lat-lng="place.latlon" v-if="place.step==undefined || place.step==-1" > <l-marker v-for="place in journey_data.main[journey_step_data.section].places.activities" :lat-lng="place.latlon" v-if="place.step==undefined || place.step==-1" >
@ -392,7 +392,7 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{place.sname}}</h1> <h1 class="row text-medium text-center">{{place.sname}}</h1>
<span class="row text-small text-gray">{{place.display_name}}</span> <span class="row text-small text-gray">{{place.display_name}}</span>
<span class="row text-small text-white">{{place.notes}}</span> <span class="row text-small text-dark">{{place.notes}}</span>
</l-popup> </l-popup>
</l-marker> </l-marker>
<l-marker v-for="place in journey_data.main[journey_step_data.section].places.restaurants" :lat-lng.sync="place.latlon"> <l-marker v-for="place in journey_data.main[journey_step_data.section].places.restaurants" :lat-lng.sync="place.latlon">
@ -402,7 +402,7 @@
<l-popup> <l-popup>
<h1 class="row text-medium text-center">{{place.sname}}</h1> <h1 class="row text-medium text-center">{{place.sname}}</h1>
<span class="row text-small text-gray">{{place.display_name}}</span> <span class="row text-small text-gray">{{place.display_name}}</span>
<span class="row text-small text-white">{{place.notes}}</span> <span class="row text-small text-dark">{{place.notes}}</span>
</l-popup> </l-popup>
</l-marker> </l-marker>
</l-map> </l-map>