From 897b5d9bb115821f9916f26bb5623019e5e88dc6 Mon Sep 17 00:00:00 2001 From: yukineko <27853966+hideki0403@users.noreply.github.com> Date: Sun, 7 Jan 2024 02:58:49 +0900 Subject: [PATCH] refactor: fix some type errors --- .../src/components/MkEmojiPicker.section.vue | 6 ++-- .../frontend/src/components/MkEmojiPicker.vue | 4 +-- .../components/MkFileCaptionEditWindow.vue | 4 +-- .../src/components/MkFileListForAdmin.vue | 2 +- .../src/components/MkFoldableSection.vue | 36 ++++++++++--------- packages/frontend/src/components/MkFolder.vue | 4 +-- .../src/components/MkFollowButton.vue | 24 +++++++------ .../src/components/MkForgotPassword.vue | 4 +-- .../frontend/src/components/MkFormDialog.vue | 9 ++--- .../src/components/MkGalleryPostPreview.vue | 4 +-- .../frontend/src/components/MkHeatmap.vue | 25 ++++++------- .../src/components/MkInstanceStats.vue | 34 +++++++++++++++--- .../src/components/MkInstanceTicker.vue | 2 +- .../frontend/src/components/MkLaunchPad.vue | 4 +-- .../frontend/src/components/MkMarquee.vue | 1 + .../frontend/src/components/global/MkAcct.vue | 2 +- 16 files changed, 99 insertions(+), 66 deletions(-) diff --git a/packages/frontend/src/components/MkEmojiPicker.section.vue b/packages/frontend/src/components/MkEmojiPicker.section.vue index 14f3f5770ffa..43a6664d11eb 100644 --- a/packages/frontend/src/components/MkEmojiPicker.section.vue +++ b/packages/frontend/src/components/MkEmojiPicker.section.vue @@ -27,7 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- (:{{ customEmojiTree.length }} :{{ emojis.length }}) + (:{{ customEmojiTree?.length }} :{{ emojis.length }})
import { ref, computed, Ref } from 'vue'; import { CustomEmojiFolderTree, getEmojiName } from '@/scripts/emojilist.js'; -import { i18n } from '../i18n.js'; +import { i18n } from '@/i18n.js'; import { customEmojis } from '@/custom-emojis.js'; import MkEmojiPickerSection from '@/components/MkEmojiPicker.section.vue'; @@ -87,7 +87,7 @@ function computeButtonTitle(ev: MouseEvent): void { elm.title = getEmojiName(emoji) ?? emoji; } -function nestedChosen(emoji: any, ev?: MouseEvent) { +function nestedChosen(emoji: any, ev: MouseEvent) { emit('chosen', emoji, ev); } diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue index f36d46506fe8..2db4195b9896 100644 --- a/packages/frontend/src/components/MkEmojiPicker.vue +++ b/packages/frontend/src/components/MkEmojiPicker.vue @@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+