chore: ⬆️ Upgrade to the latest Shadcn-Vue version
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 2m30s
Deploy to GitHub Pages / build (push) Failing after 6s
Deploy to GitHub Pages / deploy (push) Has been skipped
Docker / build (push) Failing after 5s
Mirror to Codeberg / Mirror (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-03-28 01:16:24 +01:00
parent 7649ecfb80
commit 092bce0f24
No known key found for this signature in database
169 changed files with 1860 additions and 1088 deletions

View file

@ -107,7 +107,7 @@ const editName = async () => {
toast.success(m.gaudy_lime_bison_adore());
identity.value.emojis = identity.value.emojis.map((e) =>
e.id === emoji.id ? data : e
e.id === emoji.id ? data : e,
);
} catch {
toast.dismiss(id);
@ -134,7 +134,7 @@ const _delete = async () => {
toast.success(m.crisp_whole_canary_tear());
identity.value.emojis = identity.value.emojis.filter(
(e) => e.id !== emoji.id
(e) => e.id !== emoji.id,
);
} catch {
toast.dismiss(id);

View file

@ -227,7 +227,7 @@ const formSchema = toTypedSchema(
count:
identity.value?.instance.configuration.emojis
.emoji_size_limit ?? Number.POSITIVE_INFINITY,
})
}),
),
shortcode: z
.string()
@ -240,7 +240,7 @@ const formSchema = toTypedSchema(
identity.value?.instance.configuration.emojis
.max_emoji_shortcode_characters ??
Number.POSITIVE_INFINITY,
})
}),
)
.regex(emojiValidator),
global: z.boolean().default(false),
@ -250,7 +250,7 @@ const formSchema = toTypedSchema(
64,
m.home_cool_orangutan_hug({
count: 64,
})
}),
)
.optional(),
alt: z
@ -264,10 +264,10 @@ const formSchema = toTypedSchema(
identity.value?.instance.configuration.emojis
.max_emoji_description_characters ??
Number.POSITIVE_INFINITY,
})
}),
)
.optional(),
})
}),
);
const { isSubmitting, handleSubmit, values, setFieldValue } = useForm({
validationSchema: formSchema,
@ -288,7 +288,7 @@ const submit = handleSubmit(async (values) => {
alt: values.alt,
category: values.category,
global: values.global,
}
},
);
toast.dismiss(id);