feat: add customizable search relays setting
Replace hardcoded SEARCHABLE_RELAY_URLS with user-configurable search relays stored in localStorage. Add SearchRelaysSetting UI in System settings page with add/remove/reset functionality. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7be7b30d52
commit
aae8fc2f17
27 changed files with 202 additions and 50 deletions
|
|
@ -47,6 +47,7 @@ export const StorageKey = {
|
|||
MUTED_WORDS: 'mutedWords',
|
||||
MIN_TRUST_SCORE: 'minTrustScore',
|
||||
MIN_TRUST_SCORE_MAP: 'minTrustScoreMap',
|
||||
SEARCH_RELAY_URLS: 'searchRelayUrls',
|
||||
HIDE_INDIRECT_NOTIFICATIONS: 'hideIndirectNotifications',
|
||||
ENABLE_LIVE_FEED: 'enableLiveFeed', // deprecated
|
||||
HIDE_UNTRUSTED_NOTES: 'hideUntrustedNotes', // deprecated
|
||||
|
|
@ -76,11 +77,7 @@ export const BIG_RELAY_URLS = [
|
|||
'wss://offchain.pub/'
|
||||
]
|
||||
|
||||
export const SEARCHABLE_RELAY_URLS = [
|
||||
'wss://search.nos.today/',
|
||||
'wss://relay.ditto.pub/',
|
||||
'wss://relay.nostr.band/'
|
||||
]
|
||||
export const SEARCHABLE_RELAY_URLS = ['wss://search.nos.today/', 'wss://relay.nostr.band/']
|
||||
|
||||
export const TRENDING_NOTES_RELAY_URLS = ['wss://trending.relays.land/']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue