feat: support paginator in local timeline

pull/120/head
三咲智子 2022-11-26 12:08:17 +08:00
rodzic 696ddb2bad
commit eb3f2ab771
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 69992F2250DFD93E
3 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
{
"extends": "@antfu"
"extends": "@antfu",
"ignorePatterns": ["!pages/public"]
}

Wyświetl plik

@ -1,8 +1,8 @@
<script setup lang="ts">
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value))
const paginator = masto.timelines.getPublicIterable({ local: true })
useHead({
title: 'Local'
title: 'Local',
})
</script>
@ -11,9 +11,9 @@ useHead({
<template #title>
<span text-lg font-bold>Local timeline</span>
</template>
<slot>
<TimelineList :timelines="timelines" />
<TimelinePaginator :paginator="paginator" />
</slot>
</MainContent>
</template>

Wyświetl plik

@ -10,7 +10,7 @@ definePageMeta({
status,
},
}
}
},
})
</script>