feat: move timelines to components (#514)
This commit is contained in:
parent
6b7a8baa8e
commit
fef082af13
23 changed files with 123 additions and 68 deletions
13
components/timeline/TimelineMentions.vue
Normal file
13
components/timeline/TimelineMentions.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
// 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()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NotificationPaginator v-bind="{ paginator, stream }" />
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue