elk/pages/index.vue

13 lines
374 B
Vue
Raw Normal View History

2022-11-13 06:34:43 +01:00
<script setup lang="ts">
2022-11-14 03:20:07 +01:00
const masto = await useMasto()
const { data: timelines } = await useAsyncData('public-timelines', () => masto.timelines.fetchPublic().then(r => r.value))
2022-11-13 06:34:43 +01:00
</script>
<template>
<div w-150>
2022-11-14 03:20:07 +01:00
<template v-for="status of timelines" :key="status.id">
<StatusCard :status="status" border="t gray/10" pt-4 />
2022-11-13 06:34:43 +01:00
</template>
</div>
</template>