elk/pages/index.vue

15 wiersze
333 B
Vue
Czysty Zwykły widok Historia

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()
2022-11-15 11:54:07 +00:00
// TODO: move to middleware
2022-11-14 14:54:30 +00:00
if (!token.value)
router.replace('/public')
2022-11-14 02:20:07 +00:00
const masto = await useMasto()
2022-11-15 13:00:28 +00:00
const paginator = masto.timelines.getHomeIterable()
2022-11-13 05:34:43 +00:00
</script>
<template>
2022-11-15 13:00:28 +00:00
<TimelinePaginator :paginator="paginator" />
2022-11-13 05:34:43 +00:00
</template>