Squash merge nostrfeed-localStorage into ario
This commit is contained in:
parent
5e6bc32f02
commit
5ceb12ca3b
5 changed files with 432 additions and 121 deletions
|
|
@ -7,7 +7,21 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
import NostrFeed from '@/components/nostr/NostrFeed.vue'
|
||||
import NotificationPermission from '@/components/notifications/NotificationPermission.vue'
|
||||
import PWAInstallPrompt from '@/components/pwa/PWAInstallPrompt.vue'
|
||||
import { useNostrFeedPreloader } from '@/composables/useNostrFeedPreloader'
|
||||
|
||||
// Preload the announcements feed for better UX
|
||||
const feedPreloader = useNostrFeedPreloader({
|
||||
feedType: 'announcements',
|
||||
limit: 50,
|
||||
includeReplies: false
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
// Auto-preload if we have stored data
|
||||
await feedPreloader.autoPreload()
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue