1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-09-06 20:29:08 +01:00
elk/pages/public/local.vue

22 lines
479 B
Vue

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