From d1c9bd6d5cdc1cb98d0ee6e2e59496a79db9b21e Mon Sep 17 00:00:00 2001 From: SondreB Date: Sun, 22 Dec 2024 18:25:36 +0100 Subject: [PATCH] First attempt at rendering external identities --- src/app/pages/project/project.component.ts | 118 ++++++++++++++++++++- src/app/services/relay.service.ts | 3 + src/index.html | 1 + 3 files changed, 121 insertions(+), 1 deletion(-) diff --git a/src/app/pages/project/project.component.ts b/src/app/pages/project/project.component.ts index 668ecd8..13ef5be 100644 --- a/src/app/pages/project/project.component.ts +++ b/src/app/pages/project/project.component.ts @@ -8,7 +8,7 @@ import { import { CommonModule, DatePipe } from '@angular/common'; import { BreadcrumbComponent } from '../../components/breadcrumb.component'; import { RelayService } from '../../services/relay.service'; -import NDK, { NDKKind, NDKUser } from '@nostr-dev-kit/ndk'; +import NDK, { NDKEvent, NDKKind, NDKUser } from '@nostr-dev-kit/ndk'; import { AgoPipe } from '../../pipes/ago.pipe'; import { ImagePopupComponent } from '../../components/image-popup.component'; @@ -18,6 +18,12 @@ export interface FaqItem { answer: string; } +interface ExternalIdentity { + platform: string; + username: string; + proofUrl?: string; +} + @Component({ selector: 'app-project', standalone: true, @@ -133,6 +139,21 @@ export interface FaqItem { njump } +