elk/pages/index.vue

13 lines
310 B
Vue
Raw Normal View History

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