mirror of
https://github.com/versia-pub/frontend.git
synced 2026-06-14 07:29:15 +02:00
refactor: ♻️ Make auth store require less null checks
This commit is contained in:
parent
68e23a818a
commit
b23ed66401
32 changed files with 111 additions and 124 deletions
|
|
@ -56,13 +56,13 @@ useSeoMeta({
|
|||
titleTemplate: (titleChunk) => {
|
||||
return titleChunk ? `${titleChunk} · Versia` : "Versia";
|
||||
},
|
||||
title: computed(() => authStore.instance?.title ?? ""),
|
||||
ogImage: computed(() => authStore.instance?.banner?.url),
|
||||
twitterTitle: computed(() => authStore.instance?.title ?? ""),
|
||||
title: computed(() => authStore.instanceOptional?.title ?? ""),
|
||||
ogImage: computed(() => authStore.instanceOptional?.banner?.url),
|
||||
twitterTitle: computed(() => authStore.instanceOptional?.title ?? ""),
|
||||
twitterDescription: computed(() =>
|
||||
convert(description.value?.content ?? ""),
|
||||
),
|
||||
twitterImage: computed(() => authStore.instance?.banner?.url),
|
||||
twitterImage: computed(() => authStore.instanceOptional?.banner?.url),
|
||||
description: computed(() => convert(description.value?.content ?? "")),
|
||||
ogDescription: computed(() => convert(description.value?.content ?? "")),
|
||||
ogSiteName: "Versia",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue