|
|
@@ -1,10 +1,11 @@
|
|
|
<template>
|
|
|
<div class="timeline">
|
|
|
- <div v-for="timeline in this.timelineStore.timelines" :class="`container ${timeline.posittion}`">
|
|
|
+ <div v-for="timeline in timelineStore.timelines" :class="`container ${timeline.posittion}`">
|
|
|
<div class="content">
|
|
|
<p :class="`text-${timeline.posittion}`">{{moment(timeline.date).format("DD.MMM.YYYY HH:mm")}}</p>
|
|
|
<h2>{{timeline.label}}</h2>
|
|
|
<p>{{timeline.discription}}</p>
|
|
|
+ <Map v-if="timeline.mapQuery" :q="timeline.mapQuery"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -14,10 +15,12 @@
|
|
|
import { useTimelineStore } from '@/stores/timeline'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
import moment from 'moment'
|
|
|
+ import Map from './Map.vue'
|
|
|
|
|
|
export default {
|
|
|
- setup(){
|
|
|
- const timelineStore = useTimelineStore()
|
|
|
+ components:{Map},
|
|
|
+ setup(){
|
|
|
+ const timelineStore = useTimelineStore()
|
|
|
const { t } = useI18n({
|
|
|
inheritLocale: true
|
|
|
})
|
|
|
@@ -26,8 +29,8 @@
|
|
|
timelineStore,
|
|
|
moment
|
|
|
}
|
|
|
- },
|
|
|
- }
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|