From a4d5cac7fda6e5d09ae1f0bcc3049e02e4d73248 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Tue, 23 Jul 2024 09:03:39 -0400 Subject: [PATCH] Apply type import enforcement/formatting to vue components. --- client/src/components/Citation/CitationItem.vue | 2 +- .../Collections/common/CollectionEditView.vue | 2 +- client/src/components/Common/ExportForm.vue | 2 +- client/src/components/Common/ExportRDMForm.vue | 6 +++--- client/src/components/Common/ExportRecordDOILink.vue | 2 +- client/src/components/Common/ExportRecordDetails.vue | 2 +- client/src/components/Common/FilterMenuDropdown.vue | 2 +- client/src/components/Common/FilterMenuMultiTags.vue | 2 +- .../src/components/Common/FilterMenuObjectStore.vue | 2 +- .../src/components/Common/FilterObjectStoreLink.vue | 2 +- client/src/components/Common/ObjectStoreSelect.vue | 2 +- .../Common/PersistentTaskProgressMonitorAlert.vue | 4 ++-- .../components/ConfigTemplates/EditSecretsForm.vue | 2 +- .../components/Dataset/DatasetIndex/DatasetIndex.vue | 2 +- client/src/components/Dataset/DatasetList.vue | 2 +- client/src/components/Dataset/DatasetName.vue | 2 +- .../Dataset/DatasetStorage/DatasetStorage.vue | 2 +- .../Dataset/DatasetStorage/RelocateDialog.vue | 2 +- .../Dataset/DatasetStorage/RelocateLink.vue | 2 +- .../components/DatasetInformation/DatasetDetails.vue | 2 +- .../components/DatasetInformation/DatasetError.vue | 10 ++++++++-- client/src/components/FilesDialog/FilesDialog.vue | 10 +++++----- client/src/components/FilesDialog/FilesInput.vue | 4 ++-- client/src/components/GDateTime.vue | 2 +- client/src/components/Grid/GridList.vue | 9 ++++++++- .../History/Archiving/ArchivedHistoryCard.vue | 2 +- .../components/History/Archiving/HistoryArchive.vue | 2 +- .../Content/Collection/CollectionProgress.vue | 2 +- .../CurrentCollection/CollectionOperations.vue | 2 +- .../src/components/History/Export/HistoryExport.vue | 2 +- .../components/History/Multiple/MultipleViewList.vue | 2 +- .../src/components/History/SwitchToHistoryLink.vue | 2 +- .../components/Markdown/Elements/JobSelection.vue | 2 +- client/src/components/Markdown/LabelSelector.vue | 2 +- client/src/components/Markdown/MarkdownDialog.vue | 2 +- client/src/components/Markdown/MarkdownSelector.vue | 2 +- .../components/ObjectStore/ObjectStoreTypeSpan.vue | 2 +- .../src/components/ObjectStore/SelectObjectStore.vue | 2 +- .../src/components/PageEditor/ObjectPermissions.vue | 2 +- client/src/components/Panels/ToolBox.vue | 4 ++-- .../SelectionDialog/BasicSelectionDialog.vue | 2 +- .../components/SelectionDialog/SelectionDialog.vue | 2 +- .../components/User/DiskUsage/DiskUsageSummary.vue | 2 +- .../User/DiskUsage/Quota/QuotaUsageBar.vue | 2 +- .../User/Notifications/NotificationsPreferences.vue | 2 +- client/src/components/Workflow/Editor/Draggable.vue | 4 ++-- client/src/components/Workflow/Editor/NodeOutput.vue | 12 +++++++++++- .../Workflow/Invocation/Export/ActionButton.vue | 2 +- .../Workflow/Invocation/Export/ExportButton.vue | 2 +- .../Invocation/Export/InvocationExportPluginCard.vue | 4 ++-- .../WorkflowInvocationOverview.vue | 2 +- .../components/admin/Notifications/BroadcastCard.vue | 2 +- .../admin/Notifications/BroadcastsList.vue | 2 +- .../admin/Notifications/NotificationForm.vue | 2 +- 54 files changed, 89 insertions(+), 66 deletions(-) diff --git a/client/src/components/Citation/CitationItem.vue b/client/src/components/Citation/CitationItem.vue index 82894f285641..864dadc112e7 100644 --- a/client/src/components/Citation/CitationItem.vue +++ b/client/src/components/Citation/CitationItem.vue @@ -4,7 +4,7 @@ import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { computed } from "vue"; -import { Citation } from "."; +import { type Citation } from "."; library.add(faExternalLinkAlt); diff --git a/client/src/components/Collections/common/CollectionEditView.vue b/client/src/components/Collections/common/CollectionEditView.vue index 5f231903a451..7ee33362431d 100644 --- a/client/src/components/Collections/common/CollectionEditView.vue +++ b/client/src/components/Collections/common/CollectionEditView.vue @@ -18,7 +18,7 @@ import localize from "@/utils/localization"; import { prependPath } from "@/utils/redirect"; import { errorMessageAsString } from "@/utils/simple-error"; -import { HistoryContentBulkOperationPayload, updateHistoryItemsBulk } from "./services"; +import { type HistoryContentBulkOperationPayload, updateHistoryItemsBulk } from "./services"; import ChangeDatatypeTab from "@/components/Collections/common/ChangeDatatypeTab.vue"; import DatabaseEditTab from "@/components/Collections/common/DatabaseEditTab.vue"; diff --git a/client/src/components/Common/ExportForm.vue b/client/src/components/Common/ExportForm.vue index df58871a369b..18e0a7ff6702 100644 --- a/client/src/components/Common/ExportForm.vue +++ b/client/src/components/Common/ExportForm.vue @@ -2,7 +2,7 @@ import { BButton, BCol, BFormGroup, BFormInput, BRow } from "bootstrap-vue"; import { computed, ref } from "vue"; -import { FilterFileSourcesOptions } from "@/api/remoteFiles"; +import { type FilterFileSourcesOptions } from "@/api/remoteFiles"; import localize from "@/utils/localization"; import FilesInput from "@/components/FilesDialog/FilesInput.vue"; diff --git a/client/src/components/Common/ExportRDMForm.vue b/client/src/components/Common/ExportRDMForm.vue index f99510a59907..6fee693d46a1 100644 --- a/client/src/components/Common/ExportRDMForm.vue +++ b/client/src/components/Common/ExportRDMForm.vue @@ -3,10 +3,10 @@ import { BButton, BCard, BFormGroup, BFormInput, BFormRadio, BFormRadioGroup } f import { computed, ref } from "vue"; import { - BrowsableFilesSourcePlugin, - CreatedEntry, + type BrowsableFilesSourcePlugin, + type CreatedEntry, createRemoteEntry, - FilterFileSourcesOptions, + type FilterFileSourcesOptions, } from "@/api/remoteFiles"; import { useToast } from "@/composables/toast"; import localize from "@/utils/localization"; diff --git a/client/src/components/Common/ExportRecordDOILink.vue b/client/src/components/Common/ExportRecordDOILink.vue index 22683615482c..4ea087d40b12 100644 --- a/client/src/components/Common/ExportRecordDOILink.vue +++ b/client/src/components/Common/ExportRecordDOILink.vue @@ -2,7 +2,7 @@ import axios from "axios"; import { ref, watch } from "vue"; -import { BrowsableFilesSourcePlugin } from "@/api/remoteFiles"; +import { type BrowsableFilesSourcePlugin } from "@/api/remoteFiles"; import { useFileSources } from "@/composables/fileSources"; import DOILink from "./DOILink.vue"; diff --git a/client/src/components/Common/ExportRecordDetails.vue b/client/src/components/Common/ExportRecordDetails.vue index 6d4199f6e905..58ad35898ff2 100644 --- a/client/src/components/Common/ExportRecordDetails.vue +++ b/client/src/components/Common/ExportRecordDetails.vue @@ -12,7 +12,7 @@ import { BAlert, BButton } from "bootstrap-vue"; import { computed } from "vue"; import type { ColorVariant } from "."; -import { ExportRecord } from "./models/exportRecordModel"; +import { type ExportRecord } from "./models/exportRecordModel"; import Heading from "@/components/Common/Heading.vue"; import LoadingSpan from "@/components/LoadingSpan.vue"; diff --git a/client/src/components/Common/FilterMenuDropdown.vue b/client/src/components/Common/FilterMenuDropdown.vue index b86b5ca5663e..a251f40281ad 100644 --- a/client/src/components/Common/FilterMenuDropdown.vue +++ b/client/src/components/Common/FilterMenuDropdown.vue @@ -6,7 +6,7 @@ import { BButton, BDropdown, BDropdownItem, BInputGroup, BInputGroupAppend, BMod import { capitalize } from "lodash"; import { computed, onMounted, ref, type UnwrapRef, watch } from "vue"; -import { QuotaUsage } from "@/components/User/DiskUsage/Quota/model"; +import { type QuotaUsage } from "@/components/User/DiskUsage/Quota/model"; import { type FilterType, type ValidFilter } from "@/utils/filtering"; import { errorMessageAsString } from "@/utils/simple-error"; diff --git a/client/src/components/Common/FilterMenuMultiTags.vue b/client/src/components/Common/FilterMenuMultiTags.vue index d9c157d51092..e4b81b3fe6a7 100644 --- a/client/src/components/Common/FilterMenuMultiTags.vue +++ b/client/src/components/Common/FilterMenuMultiTags.vue @@ -2,7 +2,7 @@ import { BInputGroup } from "bootstrap-vue"; import { computed, ref, watch } from "vue"; -import { ValidFilter } from "@/utils/filtering"; +import { type ValidFilter } from "@/utils/filtering"; import StatelessTags from "@/components/TagsMultiselect/StatelessTags.vue"; diff --git a/client/src/components/Common/FilterMenuObjectStore.vue b/client/src/components/Common/FilterMenuObjectStore.vue index dd0dea4756ed..ab4f24d8f0a7 100644 --- a/client/src/components/Common/FilterMenuObjectStore.vue +++ b/client/src/components/Common/FilterMenuObjectStore.vue @@ -2,7 +2,7 @@ import { computed, ref, watch } from "vue"; import { useSelectableObjectStores } from "@/composables/useObjectStores"; -import { ValidFilter } from "@/utils/filtering"; +import { type ValidFilter } from "@/utils/filtering"; import FilterObjectStoreLink from "./FilterObjectStoreLink.vue"; diff --git a/client/src/components/Common/FilterObjectStoreLink.vue b/client/src/components/Common/FilterObjectStoreLink.vue index c68aeb6a8011..5c83394b0902 100644 --- a/client/src/components/Common/FilterObjectStoreLink.vue +++ b/client/src/components/Common/FilterObjectStoreLink.vue @@ -4,7 +4,7 @@ import { faTimes } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { computed, ref } from "vue"; -import { ConcreteObjectStoreModel } from "@/api"; +import { type ConcreteObjectStoreModel } from "@/api"; import { useObjectStoreStore } from "@/stores/objectStoreStore"; import ObjectStoreSelect from "./ObjectStoreSelect.vue"; diff --git a/client/src/components/Common/ObjectStoreSelect.vue b/client/src/components/Common/ObjectStoreSelect.vue index 3ded3de27b2e..0382b9a27c8a 100644 --- a/client/src/components/Common/ObjectStoreSelect.vue +++ b/client/src/components/Common/ObjectStoreSelect.vue @@ -1,5 +1,5 @@