feat: Add Nostr chat integration for LNBits users

- Introduce a new chat system that allows LNBits users to communicate via Nostr relays.
- Implement ChatComponent for real-time messaging, peer selection, and message display.
- Create useNostrChat composable to manage Nostr relay connections, message encryption, and user authentication.
- Develop ChatPage to serve as the main interface for the chat feature.
- Add API endpoints for retrieving current user and public keys for peer messaging.
- Ensure secure communication with encryption and admin-only access to private keys.
This commit is contained in:
padreug 2025-08-05 20:34:04 +02:00
parent f4c3f3a0a3
commit 0b62418310
5 changed files with 779 additions and 0 deletions

View file

@ -49,6 +49,15 @@ const router = createRouter({
requiresAuth: true
}
},
{
path: '/chat',
name: 'chat',
component: () => import('@/pages/ChatPage.vue'),
meta: {
title: 'Nostr Chat',
requiresAuth: true
}
},
]
})