1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-23 02:58:01 +09:00
elk/pages/public/index.vue

22 lines
469 B
Vue

<script setup lang="ts">
const paginator = useMasto().timelines.getPublicIterable()
const stream = await useMasto().stream.streamPublicTimeline()
onBeforeUnmount(() => stream.disconnect())
useHead({
title: 'Federated',
})
</script>
<template>
<MainContent>
<template #title>
<span text-lg font-bold>Federated Timeline</span>
</template>
<slot>
<TimelinePaginator v-bind="{ paginator, stream }" />
</slot>
</MainContent>
</template>