2022-11-13 05:34:43 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
const client = useClient()
|
2022-11-13 16:05:32 +00:00
|
|
|
const { data: posts } = await useAsyncData(() => client.getPublicTimeline())
|
2022-11-13 05:34:43 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div w-150>
|
|
|
|
<template v-for="post in posts" :key="post.id">
|
2022-11-13 16:05:32 +00:00
|
|
|
<PostCard :post="post" border="t gray/10" pt-4 />
|
2022-11-13 05:34:43 +00:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</template>
|