pinafore/routes/_components/Timeline.html
2018-01-15 10:54:02 -08:00

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>