From 833460d70906c157c2a95fefb0fdf356b85b580c Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Sun, 27 Apr 2025 18:55:31 +0800 Subject: [PATCH] feat: domain setup --- src/lib/components/Card.svelte | 21 ++++++ .../GroupedList/GroupedListSection.svelte | 8 +-- src/lib/idURL.ts | 4 +- .../account/profile/UsernameItem.svelte | 1 - .../UsernameSetupSelfhostDialog.svelte | 71 ++++++++++++------- 5 files changed, 75 insertions(+), 30 deletions(-) create mode 100644 src/lib/components/Card.svelte diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte new file mode 100644 index 0000000..d4e8050 --- /dev/null +++ b/src/lib/components/Card.svelte @@ -0,0 +1,21 @@ + + +
+ {@render children?.()} +
diff --git a/src/lib/components/GroupedList/GroupedListSection.svelte b/src/lib/components/GroupedList/GroupedListSection.svelte index 94bd496..fec456f 100644 --- a/src/lib/components/GroupedList/GroupedListSection.svelte +++ b/src/lib/components/GroupedList/GroupedListSection.svelte @@ -1,4 +1,6 @@ @@ -27,25 +47,28 @@ - - - {#snippet header()} -
-

- For others to validate your domain as your username, put the content below at - /.well-known/blah/profile.json - under your domain. -

- -
- {/snippet} - - - -
-
+
+

+ For others to validate ownership of your domain, make text file below available as + {identityDescriptionFilePath} + under your domain, and make sure it allows any cross domain requests. + Learn more... +

+ + + +
+ + {#if jsonFileBlobHref} + + {/if} +
+
+