Pinafore-Web-Client-Frontend/routes/_components/Timeline.html

33 lines
590 B
HTML
Raw Normal View History

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