elk/pages/tags/[tag].vue

25 lines
559 B
Vue
Raw Normal View History

<script setup lang="ts">
const params = useRoute().params
const tag = $(computedEager(() => params.tag as string))
2022-11-22 23:08:36 +00:00
const paginator = useMasto().timelines.getHashtagIterable(tag)
const stream = await useMasto().stream.streamTagTimeline(tag)
onBeforeUnmount(() => stream.disconnect())
2022-11-25 11:48:48 +00:00
useHead({
title: `#${tag}`,
})
</script>
<template>
2022-11-26 12:58:10 +00:00
<MainContent back>
<template #title>
2022-11-23 08:08:49 +00:00
<span text-lg font-bold>#{{ tag }}</span>
</template>
2022-11-24 06:42:26 +00:00
<slot>
<TimelinePaginator v-bind="{ paginator, stream }" />
</slot>
</MainContent>
</template>