chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2024-09-14 13:18:49 +02:00
parent cc54e95e92
commit 35dcf4d10e
No known key found for this signature in database
14 changed files with 62 additions and 63 deletions

View file

@ -56,11 +56,11 @@ const remainingCharacters = computed(
);
const currentlyBeingTypedEmoji = computed(() => {
const match = content.value?.match(partiallyTypedEmojiValidator);
return match ? match.at(-1)?.replace(":", "") ?? "" : null;
return match ? (match.at(-1)?.replace(":", "") ?? "") : null;
});
const currentlyBeingTypedMention = computed(() => {
const match = content.value?.match(partiallyTypedMentionValidator);
return match ? match.at(-1)?.replace("@", "") ?? "" : null;
return match ? (match.at(-1)?.replace("@", "") ?? "") : null;
});
const autocompleteEmoji = (emoji: string) => {

View file

@ -51,5 +51,7 @@ const getWidth = (index: number, lines: number) => {
return undefined;
};
const lines = isContent.value ? props.lines ?? Math.ceil(Math.random() * 5) : 1;
const lines = isContent.value
? (props.lines ?? Math.ceil(Math.random() * 5))
: 1;
</script>

View file

@ -31,7 +31,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>

View file

@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>

View file

@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>

View file

@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>

View file

@ -11,7 +11,7 @@ const yStored = useLocalStorage("versia:scroll", {
});
const { y } = useScroll(root);
useEventListener("popstate", async (event) => {
useEventListener("popstate", async () => {
if (yStored.value[route.fullPath] !== undefined) {
// Wait for the Vue component to load
await new Promise((resolve) => setTimeout(resolve, 100));