Enhance content management and user interaction features
- Introduced a new content source toggle in the profile and app header to switch between IndeeHub and TopDoc films. - Updated the content fetching logic to dynamically load content based on the selected source. - Enhanced the seeding process to include a combined catalog of IndeeHub and TopDoc films, ensuring diverse content availability. - Improved user interaction by preventing duplicate reactions and ensuring a smoother voting experience across comments and content. - Added support for Amber login (NIP-55) for Android users, integrating it into the existing authentication flow. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { AccountManager, Accounts } from 'applesauce-accounts'
|
||||
import type { NostrEvent } from 'applesauce-core/helpers/event'
|
||||
import { NostrConnectSigner } from 'applesauce-signers'
|
||||
import { AmberClipboardSigner } from 'applesauce-signers/signers/amber-clipboard-signer'
|
||||
import { AmberClipboardAccount } from 'applesauce-accounts/accounts/amber-clipboard-account'
|
||||
import { filter, map } from 'rxjs'
|
||||
import { pool } from './relay'
|
||||
|
||||
@@ -13,6 +15,12 @@ export const accountManager = new AccountManager()
|
||||
// Register common account types (Extension, PrivateKey, NostrConnect, etc.)
|
||||
Accounts.registerCommonAccountTypes(accountManager)
|
||||
|
||||
// Register Amber clipboard account type (NIP-55 Android signer)
|
||||
accountManager.registerType(AmberClipboardAccount)
|
||||
|
||||
// Re-export for use in composables
|
||||
export { AmberClipboardSigner, AmberClipboardAccount }
|
||||
|
||||
// Wire NostrConnect signer to use our relay pool
|
||||
NostrConnectSigner.subscriptionMethod = (relays, filters) => {
|
||||
return pool.subscription(relays, filters).pipe(
|
||||
|
||||
Reference in New Issue
Block a user