mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
cc54e95e92
commit
35dcf4d10e
14 changed files with 62 additions and 63 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -31,7 +31,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue