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:
parent
f4c3f3a0a3
commit
0b62418310
5 changed files with 779 additions and 0 deletions
22
src/pages/ChatPage.vue
Normal file
22
src/pages/ChatPage.vue
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<template>
|
||||
<div class="container mx-auto p-4 h-screen">
|
||||
<div class="flex flex-col h-full">
|
||||
<!-- Page Header -->
|
||||
<div class="mb-4">
|
||||
<h1 class="text-2xl font-bold">Nostr Chat</h1>
|
||||
<p class="text-muted-foreground">
|
||||
Chat with other LNBits users using Nostr relays
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Chat Component -->
|
||||
<div class="flex-1 border rounded-lg overflow-hidden">
|
||||
<ChatComponent />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import ChatComponent from '@/components/nostr/ChatComponent.vue'
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue