feat: add private bookmarks support with NIP-51 and visual indicators

- Updated bookmark types to support private bookmarks with isPrivate and encryptedContent fields
- Enhanced bookmark service to detect encrypted content and mark bookmarks as private
- Added visual indicators for private bookmarks with lock icon and special styling
- Added CSS styles for private bookmarks with red accent border and gradient background
- Updated BookmarkItem component to show private bookmark indicators
- Maintained compatibility with existing public bookmark functionality
This commit is contained in:
Gigi
2025-10-02 09:36:46 +02:00
parent 170feb1bd7
commit 79f83b214f
4 changed files with 114 additions and 160 deletions

View File

@@ -24,6 +24,8 @@ export interface Bookmark {
urlReferences?: string[]
parsedContent?: ParsedContent
individualBookmarks?: IndividualBookmark[]
isPrivate?: boolean
encryptedContent?: string
}
export interface IndividualBookmark {
@@ -36,9 +38,10 @@ export interface IndividualBookmark {
parsedContent?: ParsedContent
author?: string
type: 'event' | 'article'
isPrivate?: boolean
encryptedContent?: string
}
export interface ActiveAccount {
pubkey: string
signer?: any // SimpleSigner from applesauce
}