Add FeedService and integrate into NostrFeed module

- Introduced FeedService to manage feed functionality, including subscription and deduplication of posts.
- Updated NostrFeed module to register FeedService in the DI container and initialize it during installation.
- Refactored useFeed composable to utilize FeedService for managing feed state and loading posts.
- Enhanced NostrFeed component to display posts and handle loading states more effectively.
- Changed Home.vue to use the 'all' feed type for broader content display.

These changes improve the modularity and functionality of the feed system, providing a more robust user experience.
This commit is contained in:
padreug 2025-09-16 21:43:23 +02:00
parent 2e12315a35
commit 6217e3b70a
6 changed files with 408 additions and 270 deletions

View file

@ -3,7 +3,7 @@
<PWAInstallPrompt auto-show />
<!-- TODO: Implement push notifications properly - currently commenting out admin notifications dialog -->
<!-- <NotificationPermission auto-show /> -->
<NostrFeed feed-type="announcements" />
<NostrFeed feed-type="all" />
</div>
</template>