From 02ec6fec6a92d494bd5a02bb5da0d1019d28facf Mon Sep 17 00:00:00 2001 From: naskya Date: Tue, 8 Aug 2023 18:14:39 +0900 Subject: [PATCH] chore, refactor: remove unused, fix imports (client/src/components) --- .../client/src/components/MkAbuseReport.vue | 1 - .../client/src/components/MkAnalogClock.vue | 9 +--- packages/client/src/components/MkChart.vue | 8 ++-- .../src/components/MkCheatSheetDialog.vue | 4 -- .../client/src/components/MkContextMenu.vue | 4 +- .../client/src/components/MkCropperDialog.vue | 2 +- .../client/src/components/MkDrive.folder.vue | 4 -- .../src/components/MkDrive.navFolder.vue | 8 ---- packages/client/src/components/MkDrive.vue | 5 +- .../src/components/MkEmojiPickerDialog.vue | 2 +- .../src/components/MkFileListForAdmin.vue | 3 -- .../client/src/components/MkFollowButton.vue | 12 ++--- .../client/src/components/MkFormDialog.vue | 7 +-- packages/client/src/components/MkFormula.vue | 1 - .../src/components/MkGalleryPostPreview.vue | 2 - packages/client/src/components/MkHeatmap.vue | 12 +---- .../client/src/components/MkLaunchPad.vue | 3 -- .../src/components/MkManyAnnouncements.vue | 1 - .../client/src/components/MkMediaList.vue | 1 - .../client/src/components/MkMenu.child.vue | 10 +--- packages/client/src/components/MkMenu.vue | 8 +--- .../client/src/components/MkMiniChart.vue | 3 +- .../src/components/MkModalPageWindow.vue | 6 +-- packages/client/src/components/MkNote.vue | 7 +-- .../client/src/components/MkNoteDetailed.vue | 13 +----- .../client/src/components/MkNoteHeader.vue | 2 +- .../client/src/components/MkNoteSimple.vue | 1 - .../client/src/components/MkNotifications.vue | 10 +--- packages/client/src/components/MkNumber.vue | 2 +- .../src/components/MkObjectView.value.vue | 2 +- .../client/src/components/MkObjectView.vue | 7 +-- .../client/src/components/MkPageWindow.vue | 13 +----- .../client/src/components/MkPagination.vue | 2 - .../client/src/components/MkPopupMenu.vue | 1 - packages/client/src/components/MkPostForm.vue | 46 +++++++++---------- .../client/src/components/MkReactedUsers.vue | 1 - .../client/src/components/MkReactionIcon.vue | 2 - .../src/components/MkReactionTooltip.vue | 1 - .../components/MkReactionsViewer.details.vue | 1 - packages/client/src/components/MkSignin.vue | 6 --- packages/client/src/components/MkSignup.vue | 1 - .../client/src/components/MkSignupDialog.vue | 1 - .../src/components/MkStarButtonNoEmoji.vue | 1 - .../client/src/components/MkSuperMenu.vue | 4 +- packages/client/src/components/MkTagCloud.vue | 2 +- packages/client/src/components/MkTimeline.vue | 3 +- packages/client/src/components/MkToast.vue | 2 +- .../src/components/MkTutorialDialog.vue | 2 +- .../client/src/components/MkUrlPreview.vue | 2 +- packages/client/src/components/MkUserList.vue | 1 - .../src/components/MkUserOnlineIndicator.vue | 1 - .../src/components/MkUserSelectDialog.vue | 2 +- .../components/MkUserSelectLocalDialog.vue | 2 +- .../client/src/components/MkVisibility.vue | 1 - packages/client/src/components/MkWidgets.vue | 2 +- packages/client/src/components/form/input.vue | 13 +----- packages/client/src/components/form/link.vue | 2 - packages/client/src/components/form/radio.vue | 2 - .../client/src/components/form/select.vue | 1 - .../client/src/components/form/textarea.vue | 1 - packages/client/src/components/global/MkA.vue | 9 ++-- .../client/src/components/global/MkAvatar.vue | 2 +- .../client/src/components/global/MkEmoji.vue | 2 +- .../src/components/global/MkLoading.vue | 2 - .../src/components/global/MkPageHeader.vue | 14 +----- .../client/src/components/global/MkSpacer.vue | 2 +- .../src/components/global/MkUserName.vue | 1 - .../src/components/global/RouterView.vue | 10 +--- .../src/components/page/page.canvas.vue | 1 - .../src/components/page/page.counter.vue | 1 - .../client/src/components/page/page.image.vue | 3 +- .../src/components/page/page.number-input.vue | 1 - .../src/components/page/page.radio-button.vue | 1 - .../src/components/page/page.section.vue | 7 ++- .../src/components/page/page.switch.vue | 1 - .../src/components/page/page.text-input.vue | 1 - .../components/page/page.textarea-input.vue | 2 - packages/client/src/directives/click-anime.ts | 2 +- 78 files changed, 80 insertions(+), 261 deletions(-) diff --git a/packages/client/src/components/MkAbuseReport.vue b/packages/client/src/components/MkAbuseReport.vue index f92d10ba7..b1029fac0 100644 --- a/packages/client/src/components/MkAbuseReport.vue +++ b/packages/client/src/components/MkAbuseReport.vue @@ -68,7 +68,6 @@ import MkButton from "@/components/MkButton.vue"; import MkSwitch from "@/components/form/switch.vue"; import MkKeyValue from "@/components/MkKeyValue.vue"; -import { acct, userPage } from "@/filters/user"; import * as os from "@/os"; import { i18n } from "@/i18n"; diff --git a/packages/client/src/components/MkAnalogClock.vue b/packages/client/src/components/MkAnalogClock.vue index 13b662ac3..c745e4083 100644 --- a/packages/client/src/components/MkAnalogClock.vue +++ b/packages/client/src/components/MkAnalogClock.vue @@ -108,14 +108,7 @@ diff --git a/packages/client/src/components/MkFormula.vue b/packages/client/src/components/MkFormula.vue index e488c7da7..e2e3e1121 100644 --- a/packages/client/src/components/MkFormula.vue +++ b/packages/client/src/components/MkFormula.vue @@ -4,7 +4,6 @@ - - diff --git a/packages/client/src/components/MkPageWindow.vue b/packages/client/src/components/MkPageWindow.vue index 354abde72..2f3b469fe 100644 --- a/packages/client/src/components/MkPageWindow.vue +++ b/packages/client/src/components/MkPageWindow.vue @@ -30,21 +30,16 @@