1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-08 18:09:58 +00:00
elk/pages/[[server]]/list/[list]/index/index.vue
2024-01-09 08:56:15 +00:00

18 lines
471 B
Vue

<script setup lang="ts">
definePageMeta({
name: 'list',
})
const params = useRoute().params
const listId = $(computedEager(() => params.list as string))
const client = useMastoClient()
const paginator = client.v1.timelines.list.$select(listId).list()
const stream = useStreaming(client => client.list.subscribe({ list: listId }))
</script>
<template>
<TimelinePaginator v-bind="{ paginator, stream }" :preprocess="reorderedTimeline" context="home" />
</template>