mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-28 05:28:05 +03:00
21 lines
479 B
Vue
21 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>
|