From e0069a93754cb651a58016b721fd7e679b9843dd Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 4 Aug 2023 20:52:15 +0200 Subject: [PATCH 01/10] feat(frontend): start splitting edit profile page into subpages --- .../src/routes/edit/profile-old/+page.svelte | 862 +++++++++++++++++ .../edit/{profile => profile-old}/+page.ts | 0 .../CustomPreference.svelte | 0 .../IconPicker.svelte | 0 .../src/routes/edit/profile/+layout.svelte | 213 ++++ frontend/src/routes/edit/profile/+layout.ts | 23 + frontend/src/routes/edit/profile/+page.svelte | 909 ++---------------- 7 files changed, 1193 insertions(+), 814 deletions(-) create mode 100644 frontend/src/routes/edit/profile-old/+page.svelte rename frontend/src/routes/edit/{profile => profile-old}/+page.ts (100%) rename frontend/src/routes/edit/{profile => profile-old}/CustomPreference.svelte (100%) rename frontend/src/routes/edit/{profile => profile-old}/IconPicker.svelte (100%) create mode 100644 frontend/src/routes/edit/profile/+layout.svelte create mode 100644 frontend/src/routes/edit/profile/+layout.ts diff --git a/frontend/src/routes/edit/profile-old/+page.svelte b/frontend/src/routes/edit/profile-old/+page.svelte new file mode 100644 index 0000000..8baa2d4 --- /dev/null +++ b/frontend/src/routes/edit/profile-old/+page.svelte @@ -0,0 +1,862 @@ + + + + Edit profile - pronouns.cc + + +

+ Edit profile + + + {#if modified} + + {/if} + +

+ +{#if error} + +{/if} + + + +
+
+
+
+ {#if avatar === ""} + + {:else if avatar} + New avatar + {:else} + + {/if} +
+
+ +

+ Only PNG, JPEG, GIF, and WebP images can be + used as avatars. Avatars cannot be larger than 1 MB, and animated avatars will be made + static. +

+

+ + (avatar = "")}>Remove avatar +

+
+
+
+
+ + +

+ + You can change your username in + your settings. +

+
+ + +

+ + Your display name is used in page titles and as a header. +

+
+
+
+
+

Names

+ {#each names as _, index} + moveName(index, true)} + moveDown={() => moveName(index, false)} + remove={() => removeName(index)} + /> + {/each} +
+ + + +
+
+ +
+
+