feat: move timelines to components (#514)

This commit is contained in:
patak 2022-12-22 18:48:41 +01:00 committed by GitHub
parent 6b7a8baa8e
commit fef082af13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 123 additions and 68 deletions

View file

@ -1,19 +1,10 @@
<script setup lang="ts">
const { t } = useI18n()
// Default limit is 20 notifications, and servers are normally caped to 30
const paginator = useMasto().notifications.iterate({ limit: 30, types: ['mention'] })
const { clearNotifications } = useNotifications()
onActivated(clearNotifications)
const stream = await useMasto().stream.streamUser()
useHeadFixed({
title: () => `${t('tab.notifications_mention')} | ${t('nav_side.notifications')}`,
})
</script>
<template>
<NotificationPaginator v-bind="{ paginator, stream }" />
<TimelineNotifications v-if="isMastoInitialised" />
</template>