feat: favorite relays (#250)
This commit is contained in:
parent
fab9ff88b5
commit
c739d9d28c
63 changed files with 1081 additions and 982 deletions
|
|
@ -1,8 +1,7 @@
|
|||
export const StorageKey = {
|
||||
VERSION: 'version',
|
||||
THEME_SETTING: 'themeSetting',
|
||||
RELAY_SETS: 'relaySets',
|
||||
ACTIVE_RELAY_SET_ID: 'activeRelaySetId',
|
||||
FEED_TYPE: 'feedType',
|
||||
ACCOUNTS: 'accounts',
|
||||
CURRENT_ACCOUNT: 'currentAccount',
|
||||
ADD_CLIENT_TAG: 'addClientTag',
|
||||
|
|
@ -12,11 +11,14 @@ export const StorageKey = {
|
|||
DEFAULT_ZAP_COMMENT: 'defaultZapComment',
|
||||
QUICK_ZAP: 'quickZap',
|
||||
LAST_READ_NOTIFICATION_TIME_MAP: 'lastReadNotificationTimeMap',
|
||||
ACCOUNT_FEED_INFO_MAP: 'accountFeedInfoMap',
|
||||
ACCOUNT_RELAY_LIST_EVENT_MAP: 'accountRelayListEventMap', // deprecated
|
||||
ACCOUNT_FOLLOW_LIST_EVENT_MAP: 'accountFollowListEventMap', // deprecated
|
||||
ACCOUNT_MUTE_LIST_EVENT_MAP: 'accountMuteListEventMap', // deprecated
|
||||
ACCOUNT_MUTE_DECRYPTED_TAGS_MAP: 'accountMuteDecryptedTagsMap', // deprecated
|
||||
ACCOUNT_PROFILE_EVENT_MAP: 'accountProfileEventMap' // deprecated
|
||||
ACCOUNT_PROFILE_EVENT_MAP: 'accountProfileEventMap', // deprecated
|
||||
ACTIVE_RELAY_SET_ID: 'activeRelaySetId', // deprecated
|
||||
FEED_TYPE: 'feedType' // deprecated
|
||||
}
|
||||
|
||||
export const BIG_RELAY_URLS = [
|
||||
|
|
@ -28,10 +30,15 @@ export const BIG_RELAY_URLS = [
|
|||
|
||||
export const SEARCHABLE_RELAY_URLS = ['wss://relay.nostr.band/', 'wss://search.nos.today/']
|
||||
|
||||
export const PICTURE_EVENT_KIND = 20
|
||||
export const COMMENT_EVENT_KIND = 1111
|
||||
export const GROUP_METADATA_EVENT_KIND = 39000
|
||||
|
||||
export const ExtendedKind = {
|
||||
PICTURE: 20,
|
||||
FAVORITE_RELAYS: 10012,
|
||||
COMMENT: 1111,
|
||||
GROUP_METADATA: 39000
|
||||
}
|
||||
|
||||
export const URL_REGEX = /https?:\/\/[\w\p{L}\p{N}\p{M}&.-/?=#\-@%+_:!~*]+/gu
|
||||
export const EMAIL_REGEX = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
|
||||
|
||||
|
|
@ -39,3 +46,11 @@ export const MONITOR = '9bbbb845e5b6c831c29789900769843ab43bb5047abe697870cb50b6
|
|||
export const MONITOR_RELAYS = ['wss://relay.nostr.watch/']
|
||||
|
||||
export const CODY_PUBKEY = '8125b911ed0e94dbe3008a0be48cfe5cd0c0b05923cfff917ae7e87da8400883'
|
||||
|
||||
export const DEFAULT_FAVORITE_RELAYS = [
|
||||
'wss://nostr.wine/',
|
||||
'wss://pyramid.fiatjaf.com/',
|
||||
'wss://140.f7z.io/',
|
||||
'wss://news.utxo.one/',
|
||||
'wss://algo.utxo.one'
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue