1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-07-21 21:56:48 +01:00
elk/pages/home.vue
patak a17d3276d3
feat: /public/local timeline and timeline header (#3)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-11-15 21:50:41 +08:00

24 lines
552 B
Vue

<script setup lang="ts">
const token = useCookie('nuxtodon-token')
const router = useRouter()
if (!token.value)
router.replace('/public')
const masto = await useMasto()
const paginator = masto.timelines.getHomeIterable()
</script>
<template>
<MainContent>
<template #title>
<div i-ri:home-fill h-6 mr-1 /><span>Home</span>
</template>
<template #actions>
<div color-gray i-ri:equalizer-fill mr-1 h-6 />
</template>
<slot>
<TimelinePaginator :timelines="paginator" />
</slot>
</MainContent>
</template>