2022-12-13 13:50:42 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
2022-12-25 14:04:50 +00:00
|
|
|
const masto = useMasto()
|
2022-12-23 05:02:13 +00:00
|
|
|
|
|
|
|
// Default limit is 20 notifications, and servers are normally caped to 30
|
2022-12-25 14:04:50 +00:00
|
|
|
const paginator = masto.notifications.iterate({ limit: 30 })
|
2022-12-23 05:02:13 +00:00
|
|
|
|
|
|
|
const { clearNotifications } = useNotifications()
|
|
|
|
onActivated(clearNotifications)
|
|
|
|
|
2022-12-25 14:04:50 +00:00
|
|
|
const stream = await masto.stream.streamUser()
|
2022-12-23 05:02:13 +00:00
|
|
|
|
2022-12-13 13:50:42 +00:00
|
|
|
useHeadFixed({
|
|
|
|
title: () => `${t('tab.notifications_all')} | ${t('nav_side.notifications')}`,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-23 05:02:13 +00:00
|
|
|
<NotificationPaginator v-bind="{ paginator, stream }" />
|
2022-12-13 13:50:42 +00:00
|
|
|
</template>
|