mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-07 04:39:10 +01:00
23 lines
586 B
Vue
23 lines
586 B
Vue
<script setup lang="ts">
|
|
const token = useCookie('nuxtodon-token')
|
|
const router = useRouter()
|
|
if (!token.value)
|
|
router.replace('/public')
|
|
|
|
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value))
|
|
</script>
|
|
|
|
<template>
|
|
<MainContent>
|
|
<template #title>
|
|
<span text-lg font-bold>Local timeline</span>
|
|
</template>
|
|
<template #actions>
|
|
<div i-ri:equalizer-fill mr-1 h-6 />
|
|
</template>
|
|
<slot>
|
|
<TimelineList :timelines="timelines" />
|
|
</slot>
|
|
</MainContent>
|
|
</template>
|