2022-11-15 13:50:41 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
const token = useCookie('nuxtodon-token')
|
|
|
|
const router = useRouter()
|
|
|
|
if (!token.value)
|
|
|
|
router.replace('/public')
|
|
|
|
|
2022-11-22 23:08:36 +00:00
|
|
|
|
2022-11-15 13:50:41 +00:00
|
|
|
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value))
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<MainContent>
|
|
|
|
<template #title>
|
|
|
|
<div i-ri:group-fill h-6 mr-1 /><span>Local timeline</span>
|
|
|
|
</template>
|
|
|
|
<template #actions>
|
|
|
|
<div color-gray i-ri:equalizer-fill mr-1 h-6 />
|
|
|
|
</template>
|
|
|
|
<slot>
|
|
|
|
<TimelineList :timelines="timelines" />
|
|
|
|
</slot>
|
|
|
|
</MainContent>
|
|
|
|
</template>
|