diff --git a/pages/notifications.vue b/pages/notifications.vue
index 6731efa6..591a882c 100644
--- a/pages/notifications.vue
+++ b/pages/notifications.vue
@@ -5,35 +5,18 @@ definePageMeta({
const { t } = useI18n()
-// Default limit is 20 notifications, and servers are normally caped to 30
-const paginatorAll = useMasto().notifications.iterate({ limit: 30 })
-const paginatorMention = useMasto().notifications.iterate({ limit: 30, types: ['mention'] })
-
-const { clearNotifications } = useNotifications()
-onActivated(clearNotifications)
-
-const stream = await useMasto().stream.streamUser()
-
const tabs = $computed(() => [
{
name: 'all',
+ to: '/notifications',
display: t('tab.notifications_all'),
- paginator: paginatorAll,
},
{
name: 'mention',
+ to: '/notifications/mention',
display: t('tab.notifications_mention'),
- paginator: paginatorMention,
},
] as const)
-
-// Don't use local storage because it is better to default to Posts every time you visit a user's profile.
-const tab = $ref(tabs[0].name)
-const paginator = $computed(() => tabs.find(t => t.name === tab)!.paginator)
-
-useHeadFixed({
- title: () => t('nav_side.notifications'),
-})
@@ -46,10 +29,8 @@ useHeadFixed({
-
+
-
-
-
+
diff --git a/pages/notifications/index.vue b/pages/notifications/index.vue
new file mode 100644
index 00000000..cf6d66b2
--- /dev/null
+++ b/pages/notifications/index.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/pages/notifications/mention.vue b/pages/notifications/mention.vue
new file mode 100644
index 00000000..87ee8f78
--- /dev/null
+++ b/pages/notifications/mention.vue
@@ -0,0 +1,19 @@
+
+
+
+
+