feat: timeline paginator
This commit is contained in:
parent
f3dd3fe8a5
commit
cf22ca25bf
5 changed files with 64 additions and 7 deletions
|
@ -6,9 +6,9 @@ if (!token.value)
|
|||
router.replace('/public')
|
||||
|
||||
const masto = await useMasto()
|
||||
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchHome().then(r => r.value))
|
||||
const paginator = masto.timelines.getHomeIterable()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<TimelineList :timelines="timelines" />
|
||||
<TimelinePaginator :paginator="paginator" />
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue