diff --git a/app.vue b/app.vue
index 6bb6396cb..a14e8a1a9 100644
--- a/app.vue
+++ b/app.vue
@@ -5,15 +5,12 @@ provideGlobalCommands()
// We want to trigger rerendering the page when account changes
const key = computed(() => `${currentUser.value?.server ?? currentServer.value}:${currentUser.value?.account.id || ''}`)
-
-const { params } = useRoute()
-
-
+
diff --git a/components/common/CommonRouteTabs.vue b/components/common/CommonRouteTabs.vue
index d596b8893..65d8864be 100644
--- a/components/common/CommonRouteTabs.vue
+++ b/components/common/CommonRouteTabs.vue
@@ -5,7 +5,6 @@ const { options, command, replace, preventScrollTop = false } = $defineProps<{
options: {
to: RouteLocationRaw
display: string
- disabled?: boolean
name?: string
icon?: string
}[]
@@ -29,25 +28,18 @@ useCommands(() => command
-
-
- {{ option.display }}
-
-
- {{ option.display }}
-
-
+
{{ option.display }}
+
diff --git a/components/timeline/TimelineBlocks.vue b/components/timeline/TimelineBlocks.vue
deleted file mode 100644
index 5b20b3376..000000000
--- a/components/timeline/TimelineBlocks.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineBookmarks.vue b/components/timeline/TimelineBookmarks.vue
deleted file mode 100644
index f99ba34cf..000000000
--- a/components/timeline/TimelineBookmarks.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineConversations.vue b/components/timeline/TimelineConversations.vue
deleted file mode 100644
index a9af6ba37..000000000
--- a/components/timeline/TimelineConversations.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineDomainBlocks.vue b/components/timeline/TimelineDomainBlocks.vue
deleted file mode 100644
index a0f564f89..000000000
--- a/components/timeline/TimelineDomainBlocks.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
- {{ item }}
-
-
-
-
-
-
-
diff --git a/components/timeline/TimelineFavourites.vue b/components/timeline/TimelineFavourites.vue
deleted file mode 100644
index b5e286a51..000000000
--- a/components/timeline/TimelineFavourites.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineHome.vue b/components/timeline/TimelineHome.vue
deleted file mode 100644
index c9792b9b0..000000000
--- a/components/timeline/TimelineHome.vue
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineMentions.vue b/components/timeline/TimelineMentions.vue
deleted file mode 100644
index 8e0a925bd..000000000
--- a/components/timeline/TimelineMentions.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineMutes.vue b/components/timeline/TimelineMutes.vue
deleted file mode 100644
index 303c10ff9..000000000
--- a/components/timeline/TimelineMutes.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelineNotifications.vue b/components/timeline/TimelineNotifications.vue
deleted file mode 100644
index 53c067ecc..000000000
--- a/components/timeline/TimelineNotifications.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
diff --git a/components/timeline/TimelinePinned.vue b/components/timeline/TimelinePinned.vue
deleted file mode 100644
index e0862f01a..000000000
--- a/components/timeline/TimelinePinned.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/pages/[[server]]/explore.vue b/pages/[[server]]/explore.vue
index ca3446a70..eed38e1b6 100644
--- a/pages/[[server]]/explore.vue
+++ b/pages/[[server]]/explore.vue
@@ -17,11 +17,15 @@ const tabs = $computed(() => [
display: t('tab.news'),
},
// This section can only be accessed after logging in
- {
- to: `/${currentServer.value}/explore/users`,
- display: t('tab.for_you'),
- disabled: !isMastoInitialised.value || !currentUser.value,
- },
+ ...invoke(() => currentUser.value
+ ? [
+ {
+ to: `/${currentServer.value}/explore/users`,
+ display: t('tab.for_you'),
+ },
+ ]
+ : [],
+ ),
] as const)
@@ -37,6 +41,6 @@ const tabs = $computed(() => [
-
+
diff --git a/pages/blocks.vue b/pages/blocks.vue
index 5e4606575..010e20123 100644
--- a/pages/blocks.vue
+++ b/pages/blocks.vue
@@ -3,6 +3,8 @@ definePageMeta({
middleware: 'auth',
})
+const paginator = useMasto().blocks.iterate()
+
useHeadFixed({
title: 'Blocked users',
})
@@ -13,7 +15,6 @@ useHeadFixed({
{{ $t('account.blocked_users') }}
-
-
+
diff --git a/pages/bookmarks.vue b/pages/bookmarks.vue
index c1921a5ca..fd578689c 100644
--- a/pages/bookmarks.vue
+++ b/pages/bookmarks.vue
@@ -3,6 +3,8 @@ definePageMeta({
middleware: 'auth',
})
+const paginator = useMasto().bookmarks.iterate()
+
const { t } = useI18n()
useHeadFixed({
@@ -19,6 +21,8 @@ useHeadFixed({
-
+
+
+
diff --git a/pages/conversations.vue b/pages/conversations.vue
index 136545811..31d54ec31 100644
--- a/pages/conversations.vue
+++ b/pages/conversations.vue
@@ -3,6 +3,8 @@ definePageMeta({
middleware: 'auth',
})
+const paginator = useMasto().conversations.iterate()
+
const { t } = useI18n()
useHeadFixed({
@@ -19,6 +21,8 @@ useHeadFixed({
-
+
+
+
diff --git a/pages/domain_blocks.vue b/pages/domain_blocks.vue
index e91b7e166..fe601afb7 100644
--- a/pages/domain_blocks.vue
+++ b/pages/domain_blocks.vue
@@ -1,13 +1,17 @@
@@ -16,6 +20,15 @@ useHeadFixed({
{{ $t('account.blocked_domains') }}
-
+
+
+
+ {{ item }}
+
+
+
+
+
+
diff --git a/pages/favourites.vue b/pages/favourites.vue
index 236857018..b0f97722d 100644
--- a/pages/favourites.vue
+++ b/pages/favourites.vue
@@ -3,6 +3,7 @@ definePageMeta({
middleware: 'auth',
})
+const paginator = useMasto().favourites.iterate()
const { t } = useI18n()
useHeadFixed({
@@ -18,7 +19,8 @@ useHeadFixed({
{{ t('nav_side.favourites') }}
-
-
+
+
+
diff --git a/pages/home.vue b/pages/home.vue
index 55827f2c5..995f5cb61 100644
--- a/pages/home.vue
+++ b/pages/home.vue
@@ -11,6 +11,10 @@ if (useRoute().path === '/signin/callback') {
useRouter().push('/home')
}
+const paginator = useMasto().timelines.iterateHome()
+const stream = await useMasto().stream.streamUser()
+onBeforeUnmount(() => stream.disconnect())
+
const { t } = useI18n()
useHeadFixed({
title: () => t('nav_side.home'),
@@ -25,7 +29,9 @@ useHeadFixed({
{{ $t('nav_side.home') }}
-
-
+
+
+
+
diff --git a/pages/mutes.vue b/pages/mutes.vue
index 4e773bb74..c26a24a97 100644
--- a/pages/mutes.vue
+++ b/pages/mutes.vue
@@ -2,6 +2,9 @@
definePageMeta({
middleware: 'auth',
})
+
+const paginator = useMasto().mutes.iterate()
+
useHeadFixed({
title: 'Muted users',
})
@@ -12,7 +15,6 @@ useHeadFixed({
{{ $t('account.muted_users') }}
-
-
+
diff --git a/pages/notifications.vue b/pages/notifications.vue
index 795b45774..4e6e63eae 100644
--- a/pages/notifications.vue
+++ b/pages/notifications.vue
@@ -53,7 +53,6 @@ onActivated(() => {
-
diff --git a/pages/notifications/index.vue b/pages/notifications/index.vue
index ce586d624..cf6d66b2a 100644
--- a/pages/notifications/index.vue
+++ b/pages/notifications/index.vue
@@ -1,10 +1,19 @@
-
+
diff --git a/pages/notifications/mention.vue b/pages/notifications/mention.vue
index a85c87c89..87ee8f78d 100644
--- a/pages/notifications/mention.vue
+++ b/pages/notifications/mention.vue
@@ -1,10 +1,19 @@
-
+
diff --git a/pages/pinned.vue b/pages/pinned.vue
index a88a16e67..7094b55f6 100644
--- a/pages/pinned.vue
+++ b/pages/pinned.vue
@@ -18,6 +18,6 @@ useHeadFixed({
{{ t('account.pinned') }}
-
+