mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
fix: 🐛 Misc fixes
This commit is contained in:
parent
643dd171f4
commit
4a1f6846da
4
app.vue
4
app.vue
|
|
@ -53,12 +53,12 @@ useSeoMeta({
|
||||||
return titleChunk ? `${titleChunk} · Versia` : "Versia";
|
return titleChunk ? `${titleChunk} · Versia` : "Versia";
|
||||||
},
|
},
|
||||||
title: computed(() => instance.value?.title ?? ""),
|
title: computed(() => instance.value?.title ?? ""),
|
||||||
ogImage: computed(() => instance.value?.banner.url),
|
ogImage: computed(() => instance.value?.banner?.url),
|
||||||
twitterTitle: computed(() => instance.value?.title ?? ""),
|
twitterTitle: computed(() => instance.value?.title ?? ""),
|
||||||
twitterDescription: computed(() =>
|
twitterDescription: computed(() =>
|
||||||
convert(description.value?.content ?? ""),
|
convert(description.value?.content ?? ""),
|
||||||
),
|
),
|
||||||
twitterImage: computed(() => instance.value?.banner.url),
|
twitterImage: computed(() => instance.value?.banner?.url),
|
||||||
description: computed(() => convert(description.value?.content ?? "")),
|
description: computed(() => convert(description.value?.content ?? "")),
|
||||||
ogDescription: computed(() => convert(description.value?.content ?? "")),
|
ogDescription: computed(() => convert(description.value?.content ?? "")),
|
||||||
ogSiteName: "Versia",
|
ogSiteName: "Versia",
|
||||||
|
|
|
||||||
|
|
@ -163,26 +163,25 @@ const formSchema = toTypedSchema(
|
||||||
.refine(
|
.refine(
|
||||||
(v) =>
|
(v) =>
|
||||||
v.size <=
|
v.size <=
|
||||||
// @ts-expect-error Types aren't updated with this new value yet
|
|
||||||
(identity.value?.instance.configuration.emojis
|
(identity.value?.instance.configuration.emojis
|
||||||
.emoji_size_limit ?? 0),
|
.emoji_size_limit ?? Number.POSITIVE_INFINITY),
|
||||||
m.orange_weird_parakeet_hug({
|
m.orange_weird_parakeet_hug({
|
||||||
// @ts-expect-error Types aren't updated with this new value yet
|
count:
|
||||||
count: identity.value?.instance.configuration.emojis
|
identity.value?.instance.configuration.emojis
|
||||||
.emoji_size_limit,
|
.emoji_size_limit ?? Number.POSITIVE_INFINITY,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
shortcode: z
|
shortcode: z
|
||||||
.string()
|
.string()
|
||||||
.min(1)
|
.min(1)
|
||||||
.max(
|
.max(
|
||||||
// @ts-expect-error Types aren't updated with this new value yet
|
|
||||||
identity.value?.instance.configuration.emojis
|
identity.value?.instance.configuration.emojis
|
||||||
.max_emoji_shortcode_characters,
|
.max_emoji_shortcode_characters ?? Number.POSITIVE_INFINITY,
|
||||||
m.solid_inclusive_owl_hug({
|
m.solid_inclusive_owl_hug({
|
||||||
// @ts-expect-error Types aren't updated with this new value yet
|
count:
|
||||||
count: identity.value?.instance.configuration.emojis
|
identity.value?.instance.configuration.emojis
|
||||||
.max_emoji_shortcode_characters,
|
.max_emoji_shortcode_characters ??
|
||||||
|
Number.POSITIVE_INFINITY,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.regex(emojiValidator),
|
.regex(emojiValidator),
|
||||||
|
|
@ -199,13 +198,14 @@ const formSchema = toTypedSchema(
|
||||||
alt: z
|
alt: z
|
||||||
.string()
|
.string()
|
||||||
.max(
|
.max(
|
||||||
// @ts-expect-error Types aren't updated with this new value yet
|
|
||||||
identity.value?.instance.configuration.emojis
|
identity.value?.instance.configuration.emojis
|
||||||
.max_emoji_description_characters,
|
.max_emoji_description_characters ??
|
||||||
|
Number.POSITIVE_INFINITY,
|
||||||
m.key_ago_hound_emerge({
|
m.key_ago_hound_emerge({
|
||||||
// @ts-expect-error Types aren't updated with this new value yet
|
count:
|
||||||
count: identity.value?.instance.configuration.emojis
|
identity.value?.instance.configuration.emojis
|
||||||
.max_emoji_description_characters,
|
.max_emoji_description_characters ??
|
||||||
|
Number.POSITIVE_INFINITY,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.optional(),
|
.optional(),
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<ImageUploader v-model:image="identity.account.avatar" @submit-file="file => setValue(file)" @submit-url="url => setValue(url)" />
|
<ImageUploader v-model:image="identity.account.avatar" @submit-file="file => setValue(file)" @submit-url="url => setValue(url)" />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
|
|
@ -195,7 +196,7 @@ const formSchema = toTypedSchema(
|
||||||
(v) =>
|
(v) =>
|
||||||
v.size <=
|
v.size <=
|
||||||
(identity.value?.instance.configuration.accounts
|
(identity.value?.instance.configuration.accounts
|
||||||
.header_size_limit ?? 0),
|
.header_size_limit ?? Number.POSITIVE_INFINITY),
|
||||||
m.civil_icy_ant_mend({
|
m.civil_icy_ant_mend({
|
||||||
size: identity.value?.instance.configuration.accounts
|
size: identity.value?.instance.configuration.accounts
|
||||||
.header_size_limit,
|
.header_size_limit,
|
||||||
|
|
@ -208,7 +209,7 @@ const formSchema = toTypedSchema(
|
||||||
(v) =>
|
(v) =>
|
||||||
v.size <=
|
v.size <=
|
||||||
(identity.value?.instance.configuration.accounts
|
(identity.value?.instance.configuration.accounts
|
||||||
.avatar_size_limit ?? 0),
|
.avatar_size_limit ?? Number.POSITIVE_INFINITY),
|
||||||
m.zippy_caring_raven_edit({
|
m.zippy_caring_raven_edit({
|
||||||
size: identity.value?.instance.configuration.accounts
|
size: identity.value?.instance.configuration.accounts
|
||||||
.avatar_size_limit,
|
.avatar_size_limit,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue