2018-03-09 07:21:25 +01:00
|
|
|
<template>
|
|
|
|
<div id="home">
|
2018-03-12 09:17:41 +01:00
|
|
|
<div class="home-timeline" v-for="message in timeline" v-bind:key="message.id">
|
2018-03-12 08:42:05 +01:00
|
|
|
<toot :message="message"></toot>
|
|
|
|
</div>
|
2018-03-09 07:21:25 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-03-12 08:42:05 +01:00
|
|
|
import { mapState } from 'vuex'
|
|
|
|
import Toot from './Toot'
|
|
|
|
|
2018-03-09 07:21:25 +01:00
|
|
|
export default {
|
2018-03-12 08:42:05 +01:00
|
|
|
name: 'home',
|
|
|
|
components: { Toot },
|
|
|
|
computed: {
|
|
|
|
...mapState({
|
|
|
|
timeline: state => state.TimelineSpace.homeTimeline
|
|
|
|
})
|
|
|
|
}
|
2018-03-09 07:21:25 +01:00
|
|
|
}
|
|
|
|
</script>
|
2018-03-12 08:42:05 +01:00
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.home-timeline {
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
</style>
|