feat: explore (#14)
This commit is contained in:
parent
0312547629
commit
0dda5c9b15
|
@ -12,7 +12,7 @@
|
||||||
<div i-ri:notification-4-line />
|
<div i-ri:notification-4-line />
|
||||||
<span>Notifications</span>
|
<span>Notifications</span>
|
||||||
</NuxtLink>
|
</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 />
|
<div i-ri:hashtag />
|
||||||
<span>Explore</span>
|
<span>Explore</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
23
pages/explore.vue
Normal file
23
pages/explore.vue
Normal 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>
|
Loading…
Reference in a new issue