From 666535fc58176f73e5dfc6ae582c2a3ddeefc2bc Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Mon, 15 May 2023 15:26:57 +0200 Subject: [PATCH] feat(dashboard): add proxy avatar viewing and editing --- dashboard/src/api/types.ts | 1 + dashboard/src/components/member/Body.svelte | 15 ++++++++++++++- dashboard/src/components/member/Edit.svelte | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/dashboard/src/api/types.ts b/dashboard/src/api/types.ts index 02bf220d..8ac50f13 100644 --- a/dashboard/src/api/types.ts +++ b/dashboard/src/api/types.ts @@ -57,6 +57,7 @@ export interface Member { birthday?: string; pronouns?: string; avatar_url?: string; + webhook_avatar_url?: string; banner?: string; description?: string; created?: string; diff --git a/dashboard/src/components/member/Body.svelte b/dashboard/src/components/member/Body.svelte index a424cd2a..954c314d 100644 --- a/dashboard/src/components/member/Body.svelte +++ b/dashboard/src/components/member/Body.svelte @@ -47,7 +47,10 @@ let bannerOpen = false; const toggleBannerModal = () => (bannerOpen = !bannerOpen); - + + let proxyAvatarOpen = false; + const toggleProxyAvatarModal = () => (proxyAvatarOpen = !proxyAvatarOpen); + let privacyOpen = false; const togglePrivacyModal = () => (privacyOpen = !privacyOpen); @@ -131,6 +134,16 @@ Color: {member.color} {/if} + {#if member.webhook_avatar_url} + + Proxy Avatar: + +
+ {`Member +
+
+ + {/if} {#if member.banner} Banner: diff --git a/dashboard/src/components/member/Edit.svelte b/dashboard/src/components/member/Edit.svelte index 3c089cc6..76db6365 100644 --- a/dashboard/src/components/member/Edit.svelte +++ b/dashboard/src/components/member/Edit.svelte @@ -153,6 +153,10 @@ + + + +