From 28c047a6182e9bb8b21d188edb27bf18a357c08a Mon Sep 17 00:00:00 2001 From: volar Date: Thu, 16 Nov 2023 11:30:33 +0100 Subject: [PATCH] optimize imports --- .../factory/DistributionCategoryFactory.ts | 3 +-- .../DistributionCategorySelectFactory.ts | 3 +-- src/model/coreDam/filter/AssetFilter.ts | 3 +-- .../filter/DistributionCategoryFilter.ts | 3 +-- .../DistributionCategorySelectFilter.ts | 3 +-- src/types/coreDam/Distribution.ts | 8 ++++++-- src/types/coreDam/DistributionCategory.ts | 9 +++++++-- .../coreDam/DistributionCategorySelect.ts | 11 +++++++--- .../components/PermissionEditor.vue | 4 +--- .../components/PermissionValueChip.vue | 3 ++- .../coreDam/asset/components/AssetImage.vue | 8 +++----- .../asset/components/AssetImageMetaIcons.vue | 5 ++--- .../coreDam/asset/components/AssetInfobox.vue | 5 ++--- .../asset/components/AssetMetadata.vue | 8 +++----- .../AssetMetadataImageAttributes.vue | 12 +++-------- .../asset/components/AssetSlotsFilter.vue | 3 +-- .../coreDam/asset/components/AssetUpload.vue | 6 ++---- .../coreDam/asset/components/ImagePreview.vue | 2 +- .../queue/AssetQueueItemEditable.vue | 2 +- .../queue/AssetQueueSelectedItemSimple.vue | 5 ++--- .../queue/AssetQueueSelectedSidebar.vue | 3 +-- .../toolbar/AssetToolbarExtSystemLicence.vue | 2 +- .../AssetToolbarExtSystemLicenceDialog.vue | 4 ++-- .../detail/components/AssetDetailDialog.vue | 10 ++++++++-- .../components/AssetDetailDialogSidebar.vue | 6 +++--- ...ebarImagePreviewFromDistributionDialog.vue | 3 ++- .../components/AssetDetailSidebarMetadata.vue | 3 +-- .../components/AssetDetailSidebarROI.vue | 2 +- .../detail/components/AssetDownloadButton.vue | 3 +-- .../AssetDetailSidebarDistribution.vue | 9 +++------ .../distribution/DistributionBlockedBy.vue | 5 ++--- .../distribution/DistributionCancelDialog.vue | 3 +-- .../distribution/DistributionListItem.vue | 3 +-- .../DistributionListItemCustom.vue | 5 ++--- .../DistributionListItemEmpty.vue | 7 ++----- .../distribution/DistributionListItemJw.vue | 5 ++--- .../DistributionListItemYoutube.vue | 7 +++---- .../distribution/DistributionNewDialog.vue | 10 +++++++--- .../DistributionNewDialogCustom.vue | 8 ++++---- .../DistributionNewDialogEmpty.vue | 10 ++++++---- .../distribution/DistributionNewDialogJw.vue | 20 ++++++++++--------- .../DistributionNewDialogYoutube.vue | 8 +++++--- ...stributionNewDialogYoutubeLogoutButton.vue | 2 +- .../DistributionYoutubeLanguageSelect.vue | 2 +- .../DistributionYoutubePlaylistSelect.vue | 2 +- .../components/distribution/YoutubeLogo.vue | 4 ++-- .../slots/AssetDetailSidebarSlots.vue | 3 +-- .../components/slots/AssetSlotListItem.vue | 20 +++++++++---------- .../slots/AssetSlotListItemDuplicate.vue | 8 ++------ .../slots/AssetSlotListItemRemove.vue | 8 ++------ .../slots/AssetSlotListItemSwitch.vue | 8 ++------ .../detail/composables/assetDetailActions.ts | 4 +--- .../assetDetailDistributionDialog.ts | 2 +- .../assetDetailDistributionDialogCancel.ts | 3 +-- .../assetDetailSidebarSlotsActions.ts | 3 +-- .../list/components/AssetListItemImage.vue | 2 +- .../list/composables/assetListActions.ts | 2 +- ...thorRemoteAutocompleteCachedAuthorChip.vue | 4 +--- .../author/composables/authorConfig.ts | 2 +- .../DistributionServiceNameFilter.vue | 3 +-- .../DistributionCategoryListView.vue | 2 +- .../DistributionCategoryCreateButton.vue | 2 +- ...DistributionCategoryRemoteAutocomplete.vue | 2 +- .../components/DistributionCategoryWidget.vue | 7 ++----- .../DistributionCategoryWidgetDialog.vue | 3 +-- .../distributionCategoryActions.ts | 2 +- .../ExternalProviderAssetDetailDialog.vue | 3 +-- .../ExternalProviderAssetFooterSelected.vue | 6 +++--- ...xternalProviderAssetFooterSelectedFull.vue | 6 +++--- .../ExternalProviderAssetMetadataItem.vue | 2 +- .../externalProviderAssetListActions.ts | 2 +- ...ordRemoteAutocompleteCachedKeywordChip.vue | 4 +--- .../keyword/composables/keywordConfig.ts | 2 +- .../coreDam/user/components/UserEditForm.vue | 10 ++++++++-- 74 files changed, 175 insertions(+), 202 deletions(-) diff --git a/src/model/coreDam/factory/DistributionCategoryFactory.ts b/src/model/coreDam/factory/DistributionCategoryFactory.ts index c5a0a907..f874fa5d 100644 --- a/src/model/coreDam/factory/DistributionCategoryFactory.ts +++ b/src/model/coreDam/factory/DistributionCategoryFactory.ts @@ -1,8 +1,7 @@ import { SYSTEM_CORE_DAM } from '@/model/systems' -import { dateTimeNow } from '@anzusystems/common-admin' +import { DamAssetType, dateTimeNow } from '@anzusystems/common-admin' import { ENTITY } from '@/services/api/coreDam/distributionCategoryApi' import type { DistributionCategory } from '@/types/coreDam/DistributionCategory' -import { DamAssetType } from '@anzusystems/common-admin' export function useDistributionCategoryFactory() { const createDefault = (extSystemId: number, type?: DamAssetType): DistributionCategory => { diff --git a/src/model/coreDam/factory/DistributionCategorySelectFactory.ts b/src/model/coreDam/factory/DistributionCategorySelectFactory.ts index ef18ebd0..2d081063 100644 --- a/src/model/coreDam/factory/DistributionCategorySelectFactory.ts +++ b/src/model/coreDam/factory/DistributionCategorySelectFactory.ts @@ -1,8 +1,7 @@ import { SYSTEM_CORE_DAM } from '@/model/systems' -import { dateTimeNow } from '@anzusystems/common-admin' +import { DamAssetType, dateTimeNow } from '@anzusystems/common-admin' import { ENTITY } from '@/services/api/coreDam/distributionCategorySelectApi' import type { DistributionCategorySelect } from '@/types/coreDam/DistributionCategorySelect' -import { DamAssetType } from '@anzusystems/common-admin' export function useDistributionCategorySelectFactory() { const createDefault = (extSystemId: number): DistributionCategorySelect => { diff --git a/src/model/coreDam/filter/AssetFilter.ts b/src/model/coreDam/filter/AssetFilter.ts index 2b4fe374..5036b885 100644 --- a/src/model/coreDam/filter/AssetFilter.ts +++ b/src/model/coreDam/filter/AssetFilter.ts @@ -1,8 +1,7 @@ import { reactive } from 'vue' -import { makeFilterHelper } from '@anzusystems/common-admin' +import { DamAssetStatus, makeFilterHelper } from '@anzusystems/common-admin' import { SYSTEM_CORE_DAM } from '@/model/systems' import { ENTITY } from '@/services/api/coreDam/assetApi' -import { DamAssetStatus } from '@anzusystems/common-admin' const makeFilter = makeFilterHelper(SYSTEM_CORE_DAM, ENTITY) diff --git a/src/model/coreDam/filter/DistributionCategoryFilter.ts b/src/model/coreDam/filter/DistributionCategoryFilter.ts index d5315965..08fa01a1 100644 --- a/src/model/coreDam/filter/DistributionCategoryFilter.ts +++ b/src/model/coreDam/filter/DistributionCategoryFilter.ts @@ -1,9 +1,8 @@ import type { Filter } from '@anzusystems/common-admin' -import { makeFilterHelper, type MakeFilterOptions } from '@anzusystems/common-admin' +import { DamAssetType, makeFilterHelper, type MakeFilterOptions } from '@anzusystems/common-admin' import { reactive } from 'vue' import { SYSTEM_CORE_DAM } from '@/model/systems' import { ENTITY } from '@/services/api/coreDam/distributionCategoryApi' -import { DamAssetType } from '@anzusystems/common-admin' const makeFilter: (options: Partial>) => Filter = makeFilterHelper(SYSTEM_CORE_DAM, ENTITY) diff --git a/src/model/coreDam/filter/DistributionCategorySelectFilter.ts b/src/model/coreDam/filter/DistributionCategorySelectFilter.ts index 2f2985dd..93c4c6b1 100644 --- a/src/model/coreDam/filter/DistributionCategorySelectFilter.ts +++ b/src/model/coreDam/filter/DistributionCategorySelectFilter.ts @@ -1,9 +1,8 @@ import type { Filter } from '@anzusystems/common-admin' -import { makeFilterHelper, type MakeFilterOptions } from '@anzusystems/common-admin' +import { DamAssetType, makeFilterHelper, type MakeFilterOptions } from '@anzusystems/common-admin' import { reactive } from 'vue' import { SYSTEM_CORE_DAM } from '@/model/systems' import { ENTITY } from '@/services/api/coreDam/distributionCategorySelectApi' -import { DamAssetType } from '@anzusystems/common-admin' const makeFilter: (options: Partial>) => Filter = makeFilterHelper(SYSTEM_CORE_DAM, ENTITY) diff --git a/src/types/coreDam/Distribution.ts b/src/types/coreDam/Distribution.ts index 2fc0c06d..7b2059b1 100644 --- a/src/types/coreDam/Distribution.ts +++ b/src/types/coreDam/Distribution.ts @@ -1,5 +1,9 @@ -import type { DamDistributionServiceName, DamDistributionStatus } from '@anzusystems/common-admin' -import type { DatetimeUTCNullable, DocId } from '@anzusystems/common-admin' +import type { + DamDistributionServiceName, + DamDistributionStatus, + DatetimeUTCNullable, + DocId, +} from '@anzusystems/common-admin' import { isDefined } from '@anzusystems/common-admin' import type { DistributionYoutubePrivacy } from '@/model/coreDam/valueObject/DistributionYoutubePrivacy' import type { DistributionFailReason } from '@/model/coreDam/valueObject/DistributionFailReason' diff --git a/src/types/coreDam/DistributionCategory.ts b/src/types/coreDam/DistributionCategory.ts index 074f864b..ee33a0a8 100644 --- a/src/types/coreDam/DistributionCategory.ts +++ b/src/types/coreDam/DistributionCategory.ts @@ -1,5 +1,10 @@ -import type { AnzuUserAndTimeTrackingAware, DocId, IntegerId, ResourceNameSystemAware } from '@anzusystems/common-admin' -import type { DamAssetType } from '@anzusystems/common-admin' +import type { + AnzuUserAndTimeTrackingAware, + DamAssetType, + DocId, + IntegerId, + ResourceNameSystemAware, +} from '@anzusystems/common-admin' import type { DistributionCategoryOption } from '@/types/coreDam/DistributionCategoryOption' export interface DistributionCategory extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware { diff --git a/src/types/coreDam/DistributionCategorySelect.ts b/src/types/coreDam/DistributionCategorySelect.ts index 502254c5..0891f32b 100644 --- a/src/types/coreDam/DistributionCategorySelect.ts +++ b/src/types/coreDam/DistributionCategorySelect.ts @@ -1,7 +1,12 @@ -import type { AnzuUserAndTimeTrackingAware, DocId, IntegerId, ResourceNameSystemAware } from '@anzusystems/common-admin' +import type { + AnzuUserAndTimeTrackingAware, + DamAssetType, + DamDistributionServiceName, + DocId, + IntegerId, + ResourceNameSystemAware, +} from '@anzusystems/common-admin' import type { DistributionCategoryOption } from '@/types/coreDam/DistributionCategoryOption' -import type { DamAssetType } from '@anzusystems/common-admin' -import type { DamDistributionServiceName } from '@anzusystems/common-admin' export interface DistributionCategorySelect extends AnzuUserAndTimeTrackingAware, ResourceNameSystemAware { id: DocId diff --git a/src/views/common/permission/components/PermissionEditor.vue b/src/views/common/permission/components/PermissionEditor.vue index f1a4f094..f7e15d2d 100644 --- a/src/views/common/permission/components/PermissionEditor.vue +++ b/src/views/common/permission/components/PermissionEditor.vue @@ -126,9 +126,7 @@ const { t } = useI18n() > {{ translatePermission('actions', permissionAction) }} -
- {{ permissionSubject }}_{{ permissionAction }} -
+
{{ permissionSubject }}_{{ permissionAction }}
getGrantOriginOption(props.grantOrigin) ({{ grantOriginOption.title }}) + >({{ grantOriginOption.title }}) diff --git a/src/views/coreDam/asset/components/AssetImage.vue b/src/views/coreDam/asset/components/AssetImage.vue index e8623705..78596ed5 100644 --- a/src/views/coreDam/asset/components/AssetImage.vue +++ b/src/views/coreDam/asset/components/AssetImage.vue @@ -1,10 +1,8 @@ diff --git a/src/views/coreDam/asset/detail/components/distribution/DistributionListItemJw.vue b/src/views/coreDam/asset/detail/components/distribution/DistributionListItemJw.vue index 25f5a7de..04c00ab1 100644 --- a/src/views/coreDam/asset/detail/components/distribution/DistributionListItemJw.vue +++ b/src/views/coreDam/asset/detail/components/distribution/DistributionListItemJw.vue @@ -1,12 +1,11 @@