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