From 2240d03a831e870aae566fbe572e6c961746a696 Mon Sep 17 00:00:00 2001 From: igmaat Date: Thu, 2 Mar 2023 01:48:21 +0200 Subject: [PATCH] Add component for new modal: person profile Info --- src/views/person/PersonProfileInfo.svelte | 245 ++++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 src/views/person/PersonProfileInfo.svelte diff --git a/src/views/person/PersonProfileInfo.svelte b/src/views/person/PersonProfileInfo.svelte new file mode 100644 index 00000000..9ed05d7b --- /dev/null +++ b/src/views/person/PersonProfileInfo.svelte @@ -0,0 +1,245 @@ + + +
+ +

Profile Details

+ +
+
Public Key (Hex)
+
+
+
+ +
+
Public Key (npub)
+
+ {#if npub} +
+
+ + {#if displayNprofile} +
+
nprofile
+
+ {#if nProfile} +
+
+ {/if} + + {#if !loaded} + + {/if} + +

NIP05

+ + {#if loaded && person.verified_as} +
+
NIP05 Identifier
+
+ {#if person.verified_as} +
+
+ +
+
NIP05 Validation Endpoint
+
+ {#if nip05QueryEndpoint} +
+
+ + {#if nip05ProfileData} +
+
NIP05 Relay Configuration
+ {#if nip05ProfileData?.relays?.length} +

+ + These relays are advertised by the NIP05 identifier's validation endpoint. +

+ +
+ {#each nip05ProfileData?.relays as r} +
+
+
+
+ + + {last(r.split("://"))} + +
+
+
+
+ {/each} +
+ {:else} +

+ + No relays are advertised by the NIP05 identifier's validation endpoint. +

+ {/if} +
+ {:else} +

+ + Could not fetch NIP05 data. +

+ {/if} + {:else} +

+ + NIP05 identifier available. +

+ {/if} + + {#if person?.pubkey} +

Relays

+ +

+ + See relays +

+ {/if} + + + +
+