From c29cae2955f6a52a24cdae30264dab672ba5b9a7 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 25 Apr 2024 20:10:44 -1000 Subject: [PATCH] build: :sparkles: Add explanations for which apps can be used, add link to registration page in sidebar --- components/sidebars/navigation.vue | 11 ++- components/social-elements/users/Account.vue | 76 ++++++++++++-------- layouts/app.vue | 4 +- pages/[username]/index.vue | 4 +- pages/about/apps.vue | 40 +++++++++++ 5 files changed, 98 insertions(+), 37 deletions(-) create mode 100644 pages/about/apps.vue diff --git a/components/sidebars/navigation.vue b/components/sidebars/navigation.vue index 3db4aa3..8f0aa78 100644 --- a/components/sidebars/navigation.vue +++ b/components/sidebars/navigation.vue @@ -21,13 +21,20 @@

Account

- - + Sign In + + + + Register + +
diff --git a/components/social-elements/users/Account.vue b/components/social-elements/users/Account.vue index b5fa166..b2fc450 100644 --- a/components/social-elements/users/Account.vue +++ b/components/social-elements/users/Account.vue @@ -94,39 +94,53 @@ const props = defineProps<{ const skeleton = computed(() => !props.account); -const formattedJoin = computed(() => Intl.DateTimeFormat("en-US", { - month: "long", - year: "numeric", -}).format(new Date(props.account?.created_at ?? 0))); +const formattedJoin = computed(() => + Intl.DateTimeFormat("en-US", { + month: "long", + year: "numeric", + }).format(new Date(props.account?.created_at ?? 0)), +); const parsedNote = ref(""); -const parsedFields: Ref<{ - name: string; - value: string; -}[]> = ref([]); +const parsedFields: Ref< + { + name: string; + value: string; + }[] +> = ref([]); -watch(skeleton, async () => { - if (skeleton.value) return; - parsedNote.value = (await useParsedContent( - props.account?.note ?? "", - props.account?.emojis ?? [], - [], - )).value; - parsedFields.value = await Promise.all( - props.account?.fields.map(async (field) => ({ - name: await (await useParsedContent( - field.name, +watch( + skeleton, + async () => { + if (skeleton.value) return; + parsedNote.value = ( + await useParsedContent( + props.account?.note ?? "", props.account?.emojis ?? [], - [] - )).value, - value: await (await useParsedContent( - field.value, - props.account?.emojis ?? [], - [] - )).value, - })) ?? [], - ); -}, { - immediate: true, -}); + [], + ) + ).value; + parsedFields.value = await Promise.all( + props.account?.fields.map(async (field) => ({ + name: await ( + await useParsedContent( + field.name, + props.account?.emojis ?? [], + [], + ) + ).value, + value: await ( + await useParsedContent( + field.value, + props.account?.emojis ?? [], + [], + ) + ).value, + })) ?? [], + ); + }, + { + immediate: true, + }, +); \ No newline at end of file diff --git a/layouts/app.vue b/layouts/app.vue index d4ad1e9..d4dbf2b 100644 --- a/layouts/app.vue +++ b/layouts/app.vue @@ -30,9 +30,9 @@ - + - Mobile apps + Mobile Apps diff --git a/pages/[username]/index.vue b/pages/[username]/index.vue index b88df52..e77af73 100644 --- a/pages/[username]/index.vue +++ b/pages/[username]/index.vue @@ -25,7 +25,7 @@ \ No newline at end of file