elk/pages/public/index.vue
2022-11-29 00:55:09 +08:00

24 lines
529 B
Vue

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