mirror of
https://github.com/dergigi/boris.git
synced 2026-01-30 04:04:42 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user