1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-11 13:18:04 +09:00
elk/pages/@[user]/index.vue

19 lines
520 B
Vue
Raw Normal View History

2022-11-14 01:05:32 +09:00
<script setup lang="ts">
const props = defineProps<{
modelValue?: boolean
}>()
const params = useRoute().params
2022-11-15 21:08:49 +09:00
const user = $computed(() => params.user as string)
2022-11-15 12:26:52 +09:00
const masto = await useMasto()
2022-11-15 21:08:49 +09:00
const { data: account } = await useAsyncData(`${user}:info`, () => masto.accounts.lookup({ acct: user }))
2022-11-15 22:00:28 +09:00
const paginator = masto.accounts.getStatusesIterable(account.value!.id!, {})
2022-11-14 01:05:32 +09:00
</script>
<template>
<div>
2022-11-15 12:26:52 +09:00
<AccountHeader :account="account" />
2022-11-14 01:05:32 +09:00
</div>
2022-11-15 22:00:28 +09:00
<TimelinePaginator :paginator="paginator" />
2022-11-14 01:05:32 +09:00
</template>