From c2aa1feb74f2c3da7aafeccbbf49621b9fd94be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Mon, 27 Nov 2023 12:28:38 +0100 Subject: [PATCH] pkp/pkp-lib#9538 Apply recommended lint rules for vue3 --- .eslintrc.cjs | 2 +- src/App.vue | 2 +- .../ActivityIndicatorPopup.vue | 6 +- src/components/Button/Button.vue | 2 +- src/components/Composer/Composer.vue | 92 ++++----- src/components/Container/AccessPage.vue | 18 +- .../Container/AddContextContainer.vue | 2 +- src/components/Container/AdminPage.vue | 2 +- .../AdvancedSearchReviewerContainer.vue | 20 +- src/components/Container/Container.vue | 56 +++--- src/components/Container/DecisionPage.vue | 56 +++--- src/components/Container/DoiPageOJS.vue | 2 +- src/components/Container/DoiPageOMP.vue | 2 +- src/components/Container/DoiPageOPS.vue | 2 +- .../Container/FailedJobDetailsPage.vue | 2 +- src/components/Container/FailedJobsPage.vue | 2 +- src/components/Container/ImportExportPage.vue | 2 +- src/components/Container/JobsPage.vue | 10 +- .../Container/ManageCatalogPage.vue | 2 +- src/components/Container/ManageEmailsPage.vue | 22 +- src/components/Container/Page.vue | 88 ++++---- src/components/Container/PageOJS.vue | 2 +- src/components/Container/SettingsPage.vue | 2 +- .../Container/StartSubmissionPage.vue | 2 +- .../Container/StatsEditorialPage.vue | 2 +- src/components/Container/StatsPage.vue | 103 +++++----- .../Container/StatsPublicationsPage.vue | 14 +- src/components/Container/StatsUsersPage.vue | 2 +- .../Container/SubmissionWizardPage.vue | 188 +++++++++--------- .../Container/SubmissionWizardPageOMP.vue | 8 +- .../Container/SubmissionWizardPageOPS.vue | 26 +-- src/components/Container/WorkflowPage.vue | 150 +++++++------- src/components/Container/WorkflowPageOJS.vue | 50 ++--- src/components/Container/WorkflowPageOMP.vue | 24 +-- src/components/Container/WorkflowPageOPS.vue | 40 ++-- src/components/DateRange/DateRange.vue | 36 ++-- src/components/Dropdown/Dropdown.vue | 10 +- src/components/Expander/Expander.vue | 2 +- src/components/FileAttacher/FileAttacher.vue | 6 +- .../FileAttacher/FileAttacherFileStage.vue | 42 ++-- .../FileAttacher/FileAttacherLibrary.vue | 20 +- .../FileAttacher/FileAttacherReviewFiles.vue | 12 +- .../FileAttacher/FileAttacherUpload.vue | 16 +- .../FileUploadProgress/FileUploadProgress.vue | 2 +- src/components/FileUploader/FileUploader.vue | 40 ++-- src/components/Filter/Filter.vue | 2 +- src/components/Filter/FilterAutosuggest.vue | 20 +- src/components/Filter/FilterSlider.vue | 8 +- .../Filter/FilterSliderMultirange.vue | 8 +- src/components/Form/Form.vue | 32 +-- src/components/Form/FormGroup.vue | 20 +- src/components/Form/FormLocales.vue | 8 +- src/components/Form/FormPage.vue | 54 ++--- .../Form/context/AddContextForm.vue | 24 +-- src/components/Form/context/DateTimeForm.vue | 48 ++--- .../Form/fields/FieldArchivingPn.vue | 100 +++++----- .../Form/fields/FieldAutosuggestPreset.vue | 44 ++-- .../Form/fields/FieldBaseAutosuggest.vue | 34 ++-- src/components/Form/fields/FieldColor.vue | 8 +- .../Form/fields/FieldMetadataSetting.vue | 8 +- src/components/Form/fields/FieldOptions.vue | 92 ++++----- .../Form/fields/FieldPreparedContent.vue | 14 +- src/components/Form/fields/FieldPubId.vue | 18 +- .../Form/fields/FieldRadioInput.vue | 48 ++--- src/components/Form/fields/FieldRichText.vue | 2 +- .../Form/fields/FieldRichTextarea.vue | 54 ++--- src/components/Form/fields/FieldSelect.vue | 18 +- .../Form/fields/FieldSelectIssue.vue | 10 +- src/components/Form/fields/FieldText.vue | 38 ++-- src/components/Form/fields/FieldTextarea.vue | 18 +- src/components/Form/fields/FieldUpload.vue | 76 +++---- .../Form/fields/FieldUploadImage.vue | 100 +++++----- src/components/Icon/Icon.vue | 4 +- .../InsertContent/InsertContent.vue | 8 +- src/components/ListPanel/ListPanel.vue | 4 +- .../announcements/AnnouncementsListPanel.vue | 12 +- .../contributors/ContributorsListPanel.vue | 30 +-- src/components/ListPanel/doi/DoiListItem.vue | 48 ++--- src/components/ListPanel/doi/DoiListPanel.vue | 121 ++++++----- .../highlights/HighlightsListPanel.vue | 22 +- .../institutions/InstitutionsListPanel.vue | 12 +- .../SelectSubmissionFileListItem.vue | 6 +- .../SubmissionFilesListItem.vue | 6 +- .../SubmissionFilesListPanel.vue | 24 +-- .../ListPanel/submissions/CatalogListItem.vue | 4 +- .../submissions/CatalogListPanel.vue | 60 +++--- .../submissions/SubmissionsListItem.vue | 16 +- .../submissions/SubmissionsListPanel.vue | 82 ++++---- .../users/SelectReviewerListItem.vue | 9 +- .../users/SelectReviewerListPanel.vue | 96 ++++----- src/components/Modal/Dialog.vue | 20 +- src/components/Modal/Modal.vue | 2 +- src/components/Modal/SideModalBody.vue | 6 +- src/components/Search/Search.vue | 8 +- src/components/Steps/Step.vue | 2 +- src/components/Steps/Steps.vue | 128 ++++++------ src/components/Table/Table.vue | 2 +- src/components/Tabs/Tab.vue | 4 +- src/components/Tabs/Tabs.vue | 6 +- src/docs/Component.vue | 28 +-- src/docs/Page.vue | 6 +- .../previews/PreviewActionPanel.vue | 6 +- .../Badge/previews/PreviewBadge.vue | 12 +- .../Button/previews/PreviewButton.vue | 8 +- .../Chart/previews/PreviewChart.vue | 2 +- .../Chart/previews/PreviewDoughnut.vue | 2 +- .../Composer/previews/PreviewComposer.vue | 54 ++--- .../DateRange/previews/PreviewDateRange.vue | 40 ++-- .../previews/PreviewDecisionPage.vue | 76 +++---- .../components/File/previews/PreviewFile.vue | 18 +- .../previews/ExampleFileAttacher.vue | 2 +- .../previews/PreviewFileUploadProgress.vue | 12 +- .../previews/PreviewFileUploader.vue | 8 +- .../Filter/previews/PreviewFilter.vue | 10 +- .../previews/PreviewFilterAutosuggest.vue | 4 +- .../Filter/previews/PreviewFilterSlider.vue | 20 +- .../PreviewFilterSliderMultirange.vue | 16 +- .../previews/PreviewFieldArchivingPn.vue | 2 +- .../PreviewFieldAutosuggestPreset.vue | 2 +- .../ComponentFieldBaseAutosuggest.vue | 4 +- .../previews/ExampleFieldUserAutosuggest.vue | 2 +- .../previews/PreviewFieldBaseAutosuggest.vue | 2 +- .../PreviewFieldBaseAutosuggestDisabled.vue | 2 +- .../PreviewFieldBaseAutosuggestInline.vue | 2 +- .../FieldColor/previews/PreviewFieldColor.vue | 2 +- .../FieldHtml/previews/PreviewFieldHtml.vue | 2 +- .../previews/PreviewFieldMetadataSetting.vue | 2 +- .../previews/PreviewFieldOptions.vue | 2 +- .../previews/PreviewFieldOptionsConfirm.vue | 2 +- .../previews/PreviewFieldOptionsOrderable.vue | 2 +- .../previews/PreviewFieldOptionsRadio.vue | 2 +- .../previews/PreviewFieldPreparedContent.vue | 12 +- .../fields/FieldPubId/ExampleFieldPubId.vue | 2 +- .../FieldPubId/previews/PreviewFieldPubId.vue | 2 +- .../previews/PreviewFieldRadioInput.vue | 2 +- .../previews/PreviewFieldRichText.vue | 2 +- .../ComponentFieldRichTextarea.vue | 6 +- .../previews/PreviewFieldRichTextarea.vue | 2 +- .../PreviewFieldRichTextareaHeavyToolbar.vue | 2 +- .../PreviewFieldRichTextareaLarge.vue | 2 +- .../PreviewFieldRichTextareaMediumToolbar.vue | 2 +- .../PreviewFieldRichTextareaWordLimit.vue | 2 +- .../previews/PreviewFieldSelect.vue | 2 +- .../ComponentFieldSelectIssue.vue | 4 +- .../previews/PreviewFieldSelectIssue.vue | 2 +- .../PreviewFieldSelectIssuePublished.vue | 2 +- .../PreviewFieldSelectIssueScheduled.vue | 2 +- .../previews/PreviewFieldShowEnsuringLink.vue | 2 +- .../FieldText/previews/PreviewFieldText.vue | 2 +- .../previews/PreviewFieldTextLarge.vue | 2 +- .../previews/PreviewFieldTextOptIntoEdit.vue | 6 +- .../previews/PreviewFieldTextPrefix.vue | 2 +- .../previews/PreviewFieldTextSmall.vue | 2 +- .../previews/PreviewFieldTextarea.vue | 2 +- .../previews/PreviewFieldTextareaLarge.vue | 2 +- .../previews/PreviewFieldTextareaSmall.vue | 2 +- .../previews/PreviewFieldUpload.vue | 2 +- .../previews/PreviewFieldUploadImage.vue | 2 +- .../field-options-submission-agreement.js | 2 +- .../Header/previews/PreviewHeader.vue | 4 +- .../ComponentSelectReviewerListPanel.vue | 2 +- .../ComponentSubmissionFilesListPanel.vue | 2 +- .../PreviewAnnouncementsListPanel.vue | 16 +- .../previews/PreviewCatalogListPanel.vue | 18 +- .../previews/PreviewDoiListPanel.vue | 10 +- .../previews/PreviewDoiListPanelOJS.vue | 12 +- .../previews/PreviewHighlightsListPanel.vue | 16 +- .../previews/PreviewInstitutionsListPanel.vue | 14 +- .../previews/PreviewListPanelActions.vue | 2 +- .../previews/PreviewListPanelFilter.vue | 8 +- .../previews/PreviewListPanelItemActions.vue | 2 +- .../previews/PreviewListPanelItemExpander.vue | 6 +- .../previews/PreviewListPanelPagination.vue | 6 +- .../previews/PreviewListPanelSearch.vue | 2 +- .../previews/PreviewListPanelSelect.vue | 16 +- .../PreviewSelectReviewerListPanel.vue | 60 +++--- .../PreviewSubmissionFilesListPanel.vue | 28 +-- .../previews/PreviewSubmissionsListPanel.vue | 22 +- .../components/ListPanel/readme-highlights.md | 12 +- .../previews/PreviewManageEmailsPage.vue | 36 ++-- .../Modal/previews/PreviewModal.vue | 2 +- .../Modal/previews/PreviewModalActions.vue | 8 +- .../Modal/previews/PreviewModalForm.vue | 2 +- .../Modal/previews/PreviewModalSide.vue | 4 +- .../Modal/previews/PreviewModalTabs.vue | 2 +- .../previews/PreviewNotification.vue | 2 +- .../Orderer/previews/PreviewOrderer.vue | 6 +- .../previews/PreviewOrdererDraggable.vue | 4 +- .../components/Page/previews/PreviewPage.vue | 4 +- .../Pagination/previews/PreviewPagination.vue | 4 +- .../previews/PreviewProgressBar.vue | 6 +- .../Search/previews/PreviewSearch.vue | 2 +- .../previews/PreviewStatsEditorialPage.vue | 30 +-- .../previews/PreviewStatsPublicationsPage.vue | 38 ++-- .../Steps/previews/PreviewSteps.vue | 20 +- .../previews/PreviewSubmissionWizardPage.vue | 14 +- .../previews/PreviewSubmissionsPage.vue | 6 +- .../Table/previews/PreviewLabelledBy.vue | 2 +- .../Table/previews/PreviewPagination.vue | 8 +- .../Table/previews/PreviewSorting.vue | 16 +- .../Table/previews/PreviewTable.vue | 4 +- .../components/Tabs/previews/PreviewBadge.vue | 6 +- .../Tabs/previews/PreviewDefault.vue | 8 +- .../components/Tabs/previews/PreviewIcon.vue | 6 +- .../Tabs/previews/PreviewNested.vue | 12 +- .../components/Tabs/previews/PreviewSide.vue | 14 +- .../components/Tabs/previews/PreviewTabs.vue | 6 +- .../previews/PreviewWorkflowPage.vue | 22 +- .../mixins/Fetch/previews/PreviewFetch.vue | 32 +-- .../Notify/previews/PreviewNotify.vue | 6 +- src/mixins/autosave.js | 2 +- src/mixins/fetch.js | 2 +- src/pages/submissions/ColumnStage.vue | 6 +- src/pages/submissions/ColumnTitle.vue | 2 +- .../submissions/SubmissionSummaryModal.vue | 2 +- 215 files changed, 1937 insertions(+), 1936 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 489bb5545..2bbea33df 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -7,7 +7,7 @@ module.exports = { node: true, }, extends: [ - 'plugin:vue/vue3-essential', + 'plugin:vue/vue3-recommended', 'eslint:recommended', '@vue/eslint-config-prettier/skip-formatting', 'plugin:storybook/recommended', diff --git a/src/App.vue b/src/App.vue index 7d4688ecd..99e5a0875 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,8 @@