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
|
|
@ -5,6 +5,10 @@ export function getDefaultRelayUrls() {
|
|||
return storage.getDefaultRelayUrls()
|
||||
}
|
||||
|
||||
export function getSearchRelayUrls() {
|
||||
return storage.getSearchRelayUrls()
|
||||
}
|
||||
|
||||
export function checkAlgoRelay(relayInfo: TRelayInfo | undefined) {
|
||||
return relayInfo?.software === 'https://github.com/bitvora/algo-relay' // hardcode for now
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue