Update package dependencies and enhance application structure
- Added several new dependencies related to the Applesauce library, including 'applesauce-accounts', 'applesauce-common', 'applesauce-core', 'applesauce-loaders', 'applesauce-relay', and 'applesauce-signers', all at version 5.1.0. - Updated the development script in package.json to specify a port for Vite and added new seed scripts for profiles and activity. - Removed outdated image files from the public directory to clean up unused assets. - Enhanced the App.vue structure by integrating shared components like AppHeader and AuthModal for improved user experience. - Refactored ContentDetailModal and MobileNav components to support new features and improve usability. These changes improve the overall functionality and maintainability of the application while ensuring it utilizes the latest libraries for better performance.
This commit is contained in:
19
src/lib/relay.ts
Normal file
19
src/lib/relay.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Relay pool and relay constants.
|
||||
* Extracted into its own module to avoid circular dependencies
|
||||
* between nostr.ts and accounts.ts.
|
||||
*/
|
||||
import { BehaviorSubject } from 'applesauce-core'
|
||||
import { RelayPool } from 'applesauce-relay'
|
||||
|
||||
// Relay pool for all WebSocket connections
|
||||
export const pool = new RelayPool()
|
||||
|
||||
// App relays (local dev relay)
|
||||
export const APP_RELAYS = ['ws://localhost:7777']
|
||||
|
||||
// Lookup relays for profile metadata
|
||||
export const LOOKUP_RELAYS = ['wss://purplepag.es']
|
||||
|
||||
// Observable relay list for reactive subscriptions
|
||||
export const appRelays = new BehaviorSubject<string[]>([...APP_RELAYS])
|
||||
Reference in New Issue
Block a user