pinafore/routes/_components/Timeline.html

33 lines
590 B
HTML
Raw Normal View History

2018-01-08 18:14:21 -08:00
<ul>
{{#each statuses as status}}
2018-01-11 00:26:35 -08:00
<li>
<Status :status />
</li>
2018-01-08 18:14:21 -08:00
{{/each}}
</ul>
2018-01-11 00:26:35 -08:00
<style>
ul {
list-style: none;
padding-right: 10px;
}
2018-01-14 21:41:19 -08:00
li {
border-bottom: 1px solid var(--main-border);
}
2018-01-11 00:26:35 -08:00
</style>
2018-01-08 18:14:21 -08:00
<script>
import { store } from '../_utils/store'
2018-01-13 14:19:51 -08:00
import { getHomeTimeline } from '../_utils/mastodon/oauth'
2018-01-10 20:45:02 -08:00
import fixture from '../_utils/fixture.json'
import Status from './Status.html'
2018-01-08 18:14:21 -08:00
export default {
data: () => ({
target: 'home',
2018-01-14 23:24:27 -08:00
statuses: fixture
2018-01-08 18:14:21 -08:00
}),
2018-01-10 20:45:02 -08:00
store: () => store,
components: {
Status
}
2018-01-08 18:14:21 -08:00
}
</script>