2022-11-26 00:49:56 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
const params = useRoute().params
|
2022-11-30 08:08:10 +01:00
|
|
|
const handle = $(computedEager(() => params.account as string))
|
2022-11-26 00:49:56 +01:00
|
|
|
|
2022-11-30 18:15:18 +01:00
|
|
|
definePageMeta({ name: 'account-index' })
|
|
|
|
|
2022-12-13 22:01:25 +01:00
|
|
|
const { t } = useI18n()
|
|
|
|
|
2023-01-02 01:00:13 +01:00
|
|
|
const account = await fetchAccountByHandle(handle)
|
2022-11-26 00:49:56 +01:00
|
|
|
|
2023-01-08 07:21:09 +01:00
|
|
|
const paginator = useMasto().v1.accounts.listStatuses(account.id, { excludeReplies: true })
|
2022-11-26 18:36:23 +01:00
|
|
|
|
2022-12-13 22:01:25 +01:00
|
|
|
if (account) {
|
|
|
|
useHeadFixed({
|
2023-01-02 01:00:13 +01:00
|
|
|
title: () => `${t('account.posts')} | ${getDisplayName(account)} (@${account.acct})`,
|
2022-12-13 22:01:25 +01:00
|
|
|
})
|
|
|
|
}
|
2022-11-26 00:49:56 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-03 06:42:00 +01:00
|
|
|
<div>
|
2022-12-13 22:01:25 +01:00
|
|
|
<AccountTabs />
|
2023-01-06 19:29:44 +01:00
|
|
|
<TimelinePaginator :paginator="paginator" :preprocess="reorderedTimeline" context="account" :account="account" />
|
2022-11-26 00:49:56 +01:00
|
|
|
</div>
|
|
|
|
</template>
|