From 6a5ef5b6f29eee9e36f42ac163f065880cd80e8b Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 19 May 2023 13:58:09 +0900 Subject: [PATCH] refactor --- packages/frontend/.eslintrc.js | 5 +- .../src/components/MkAbuseReportWindow.vue | 4 +- .../src/components/MkAccountMoved.vue | 4 +- packages/frontend/src/components/MkAsUi.vue | 12 +-- .../frontend/src/components/MkAvatars.vue | 2 +- packages/frontend/src/components/MkChart.vue | 34 ++++----- .../src/components/MkChartTooltip.vue | 2 +- .../frontend/src/components/MkContainer.vue | 14 ++-- .../frontend/src/components/MkContextMenu.vue | 8 +- .../src/components/MkCropperDialog.vue | 2 +- packages/frontend/src/components/MkDialog.vue | 2 +- .../src/components/MkDrive.navFolder.vue | 18 ++--- packages/frontend/src/components/MkDrive.vue | 24 +++--- .../src/components/MkDriveFileThumbnail.vue | 52 ++++++------- .../src/components/MkDriveSelectDialog.vue | 6 +- .../frontend/src/components/MkDriveWindow.vue | 8 +- .../src/components/MkEmojiPickerDialog.vue | 14 ++-- .../src/components/MkEmojiPickerWindow.vue | 11 +-- .../components/MkFileCaptionEditWindow.vue | 6 +- .../src/components/MkFoldableSection.vue | 74 +++++++++---------- packages/frontend/src/components/MkFolder.vue | 16 ++-- .../frontend/src/components/MkFormDialog.vue | 10 +-- .../src/components/MkGalleryPostPreview.vue | 2 +- .../frontend/src/components/MkImageViewer.vue | 2 +- .../src/components/MkImgWithBlurhash.vue | 14 ++-- .../frontend/src/components/MkKeyValue.vue | 26 +++---- .../frontend/src/components/MkLaunchPad.vue | 2 +- .../frontend/src/components/MkMediaImage.vue | 2 +- .../frontend/src/components/MkMediaVideo.vue | 2 +- .../frontend/src/components/MkMenu.child.vue | 2 +- packages/frontend/src/components/MkMenu.vue | 2 +- packages/frontend/src/components/MkModal.vue | 10 +-- packages/frontend/src/components/MkNote.vue | 8 +- .../src/components/MkNoteDetailed.vue | 6 +- .../frontend/src/components/MkNoteSimple.vue | 2 +- packages/frontend/src/components/MkNotes.vue | 2 +- .../src/components/MkNotification.vue | 4 +- .../MkNotificationSettingWindow.vue | 6 +- .../src/components/MkNotifications.vue | 4 +- .../frontend/src/components/MkPageWindow.vue | 12 +-- .../frontend/src/components/MkPagination.vue | 8 +- .../frontend/src/components/MkPollEditor.vue | 2 +- .../frontend/src/components/MkPopupMenu.vue | 4 +- .../frontend/src/components/MkPostForm.vue | 2 +- .../src/components/MkPostFormAttaches.vue | 2 +- .../src/components/MkPostFormDialog.vue | 4 +- .../MkPushNotificationAllowButton.vue | 38 +++++----- .../src/components/MkReactedUsersDialog.vue | 4 +- .../src/components/MkReactionIcon.vue | 4 +- .../src/components/MkReactionTooltip.vue | 4 +- .../components/MkReactionsViewer.details.vue | 4 +- .../src/components/MkReactionsViewer.vue | 12 +-- .../src/components/MkRenotedUsersDialog.vue | 4 +- packages/frontend/src/components/MkSignin.vue | 6 +- .../src/components/MkSigninDialog.vue | 4 +- .../src/components/MkSignupDialog.form.vue | 10 +-- .../src/components/MkSignupDialog.rules.vue | 8 +- .../src/components/MkSignupDialog.vue | 10 +-- .../src/components/MkSubNoteContent.vue | 4 +- .../frontend/src/components/MkTimeline.vue | 2 +- packages/frontend/src/components/MkToast.vue | 10 +-- .../src/components/MkTokenGenerateWindow.vue | 8 +- .../frontend/src/components/MkTooltip.vue | 10 +-- .../frontend/src/components/MkUpdated.vue | 2 +- .../src/components/MkUrlPreviewPopup.vue | 2 +- .../frontend/src/components/MkUserPopup.vue | 10 +-- .../src/components/MkUserSelectDialog.vue | 10 +-- .../components/MkUserSetupDialog.Follow.vue | 4 +- .../components/MkUserSetupDialog.Profile.vue | 4 +- .../src/components/MkUserSetupDialog.vue | 22 +++--- .../src/components/MkUsersTooltip.vue | 2 +- .../src/components/MkVisibilityPicker.vue | 2 +- .../src/components/MkWaitingDialog.vue | 2 +- .../frontend/src/components/MkWidgets.vue | 10 +-- packages/frontend/src/components/MkWindow.vue | 10 +-- .../src/components/MkYouTubePlayer.vue | 2 +- .../frontend/src/components/global/MkAcct.vue | 2 +- .../src/components/global/MkAvatar.vue | 2 +- .../components/global/MkPageHeader.tabs.vue | 4 +- .../src/components/global/MkPageHeader.vue | 4 +- .../src/components/global/MkUserName.vue | 2 +- 81 files changed, 342 insertions(+), 354 deletions(-) diff --git a/packages/frontend/.eslintrc.js b/packages/frontend/.eslintrc.js index a1e1f57e10..303b74ca16 100644 --- a/packages/frontend/.eslintrc.js +++ b/packages/frontend/.eslintrc.js @@ -62,9 +62,8 @@ module.exports = { 'vue/max-attributes-per-line': 'off', 'vue/html-self-closing': 'off', 'vue/singleline-html-element-content-newline': 'off', - // (vue/vue3-recommended disabled the autofix for Vue 2 compatibility) - 'vue/v-on-event-hyphenation': ['warn', 'always', { autofix: true }], - 'vue/attribute-hyphenation': ['warn', 'never'], + 'vue/v-on-event-hyphenation': ['error', 'never', { autofix: true }], + 'vue/attribute-hyphenation': ['error', 'never'], }, globals: { // Node.js diff --git a/packages/frontend/src/components/MkAbuseReportWindow.vue b/packages/frontend/src/components/MkAbuseReportWindow.vue index 7a1b7d532e..48236782d9 100644 --- a/packages/frontend/src/components/MkAbuseReportWindow.vue +++ b/packages/frontend/src/components/MkAbuseReportWindow.vue @@ -1,5 +1,5 @@ - +
diff --git a/packages/frontend/src/components/MkAccountMoved.vue b/packages/frontend/src/components/MkAccountMoved.vue index b02bfdc2b8..bc07b9ba5f 100644 --- a/packages/frontend/src/components/MkAccountMoved.vue +++ b/packages/frontend/src/components/MkAccountMoved.vue @@ -7,11 +7,11 @@ - diff --git a/packages/frontend/src/components/MkChartTooltip.vue b/packages/frontend/src/components/MkChartTooltip.vue index 7cfe535edd..fe5b78754d 100644 --- a/packages/frontend/src/components/MkChartTooltip.vue +++ b/packages/frontend/src/components/MkChartTooltip.vue @@ -1,5 +1,5 @@