Add ProfileService and integrate profiles management into NostrFeed module

- Introduced ProfileService to handle user profiles, including fetching and displaying profile information.
- Updated NostrFeed module to register ProfileService in the DI container and initialize it during installation.
- Enhanced NostrFeed.vue to utilize the profiles service for displaying user names alongside posts.
- Created useProfiles composable for managing profile-related functionality, including fetching and subscribing to profile updates.

These changes improve user engagement by providing richer profile information within the feed, enhancing the overall user experience.
This commit is contained in:
padreug 2025-09-17 01:11:53 +02:00
parent 310612a2c5
commit 45391cbaa1
6 changed files with 443 additions and 47 deletions

View file

@ -134,6 +134,7 @@ export const SERVICE_TOKENS = {
// Feed services
FEED_SERVICE: Symbol('feedService'),
PROFILE_SERVICE: Symbol('profileService'),
// Events services
EVENTS_SERVICE: Symbol('eventsService'),