semaphore/routes/_components/Timeline.html

27 lines
629 B
HTML

<div class="timeline">
<VirtualList component="{{StatusListItem}}" items="{{statuses}}" />
</div>
<style>
.timeline {
padding-right: 10px;
}
</style>
<script>
import { store } from '../_utils/store'
import { getHomeTimeline } from '../_utils/mastodon/oauth'
import fixture from '../_utils/fixture.json'
import StatusListItem from './StatusListItem.html'
import VirtualList from './VirtualList.html'
export default {
data: () => ({
target: 'home',
statuses: fixture,
StatusListItem: StatusListItem
}),
store: () => store,
components: {
VirtualList
}
}
</script>