2022-11-13 05:34:43 +00:00
|
|
|
<script setup lang="ts">
|
2022-11-14 14:54:30 +00:00
|
|
|
const token = useCookie('nuxtodon-token')
|
|
|
|
const router = useRouter()
|
|
|
|
if (!token.value)
|
|
|
|
router.replace('/public')
|
|
|
|
|
2022-11-14 02:20:07 +00:00
|
|
|
const masto = await useMasto()
|
2022-11-14 14:54:30 +00:00
|
|
|
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchHome().then(r => r.value))
|
2022-11-13 05:34:43 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-14 14:54:30 +00:00
|
|
|
<TimelineList :timelines="timelines" />
|
2022-11-13 05:34:43 +00:00
|
|
|
</template>
|