feat: following and followers routes (#4)
This commit is contained in:
parent
39249e378f
commit
a6a189ba59
7 changed files with 127 additions and 39 deletions
22
components/account/AccountPaginator.client.vue
Normal file
22
components/account/AccountPaginator.client.vue
Normal file
|
@ -0,0 +1,22 @@
|
|||
<script setup lang="ts">
|
||||
import type { Account, Paginator } from 'masto'
|
||||
|
||||
const { paginator } = defineProps<{
|
||||
paginator: Paginator<any, Account[]>
|
||||
}>()
|
||||
|
||||
const { items: accounts, isLoading, isDone, endAnchor } = usePaginator(paginator)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-for="account of accounts" :key="account.id">
|
||||
<AccountCard :account="account" border="t border" pt-4 />
|
||||
</template>
|
||||
<div ref="endAnchor" />
|
||||
<div v-if="isLoading">
|
||||
Loading...
|
||||
</div>
|
||||
<div v-if="isDone">
|
||||
End of list
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue