feat: explore (#14)

zio/stable
patak 2022-11-17 14:09:05 +01:00 committed by GitHub
parent 0312547629
commit 0dda5c9b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<div i-ri:notification-4-line />
<span>Notifications</span>
</NuxtLink>
<NuxtLink flex gap2 items-center active-class="text-primary">
<NuxtLink flex gap2 items-center to="/explore" active-class="text-primary">
<div i-ri:hashtag />
<span>Explore</span>
</NuxtLink>

23
pages/explore.vue 100644
View File

@ -0,0 +1,23 @@
<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
const masto = await useMasto()
const paginator = masto.trends.getStatuses()
</script>
<template>
<MainContent>
<template #title>
<div i-ri:hashtag h-6 mr-1 /><span>Explore</span>
</template>
<template #actions>
<div color-gray i-ri:equalizer-fill mr-1 h-6 />
</template>
<slot>
<!-- TODO: Tabs for trending statuses, tags, and links -->
<TimelinePaginator :paginator="paginator" />
</slot>
</MainContent>
</template>