mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-25 18:56:37 +03:00
26 lines
686 B
Vue
26 lines
686 B
Vue
<script setup lang="ts">
|
|
const paginator = useMasto().timelines.getPublicIterable({ local: true })
|
|
const stream = await useMasto().stream.streamCommunityTimeline()
|
|
onBeforeUnmount(() => stream.disconnect())
|
|
|
|
const { t } = useI18n()
|
|
|
|
useHeadFixed({
|
|
title: () => t('title.local_timeline'),
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<MainContent>
|
|
<template #title>
|
|
<NuxtLink to="/public/local" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
<div i-ri:group-2-line />
|
|
<span>{{ t('title.local_timeline') }}</span>
|
|
</NuxtLink>
|
|
</template>
|
|
|
|
<slot>
|
|
<TimelinePaginator v-bind="{ paginator, stream }" />
|
|
</slot>
|
|
</MainContent>
|
|
</template>
|