Skip to content

Commit

Permalink
feat(admin-ui): Export AssetsComponent as a Shared Component (#2695)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin <kevin@fainin.com>

Closes #2637
  • Loading branch information
Draykee authored Feb 26, 2024
1 parent 2a3a796 commit cc85202
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions packages/admin-ui/src/lib/catalog/src/catalog.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { createRoutes } from './catalog.routes';
import { ApplyFacetDialogComponent } from './components/apply-facet-dialog/apply-facet-dialog.component';
import { AssetDetailComponent } from './components/asset-detail/asset-detail.component';
import { AssetListComponent } from './components/asset-list/asset-list.component';
import { AssetsComponent } from './components/assets/assets.component';
import { AssignProductsToChannelDialogComponent } from './components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component';
import { BulkAddFacetValuesDialogComponent } from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component';
import { CollectionContentsComponent } from './components/collection-contents/collection-contents.component';
Expand Down Expand Up @@ -76,7 +75,6 @@ const CATALOG_COMPONENTS = [
GenerateProductVariantsComponent,
ApplyFacetDialogComponent,
AssetListComponent,
AssetsComponent,
VariantPriceDetailComponent,
CollectionListComponent,
CollectionDetailComponent,
Expand Down
1 change: 0 additions & 1 deletion packages/admin-ui/src/lib/catalog/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export * from './catalog.routes';
export * from './components/apply-facet-dialog/apply-facet-dialog.component';
export * from './components/asset-detail/asset-detail.component';
export * from './components/asset-list/asset-list.component';
export * from './components/assets/assets.component';
export * from './components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component';
export * from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component';
export * from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql';
Expand Down
2 changes: 2 additions & 0 deletions packages/admin-ui/src/lib/core/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export * from './data/query-result';
export * from './data/server-config';
export * from './data/utils/add-custom-fields';
export * from './data/utils/get-server-location';
export * from './data/utils/is-entity-create-or-update-mutation';
export * from './data/utils/remove-readonly-custom-fields';
export * from './data/utils/transform-relation-custom-field-inputs';
export * from './extension/add-action-bar-item';
Expand Down Expand Up @@ -134,6 +135,7 @@ export * from './shared/components/asset-preview/asset-preview.component';
export * from './shared/components/asset-preview-dialog/asset-preview-dialog.component';
export * from './shared/components/asset-preview-links/asset-preview-links.component';
export * from './shared/components/asset-search-input/asset-search-input.component';
export * from './shared/components/assets/assets.component';
export * from './shared/components/assign-to-channel-dialog/assign-to-channel-dialog.component';
export * from './shared/components/bulk-action-menu/bulk-action-menu.component';
export * from './shared/components/card/card.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ import {
Input,
Output,
} from '@angular/core';
import {
Asset,
AssetPickerDialogComponent,
AssetPreviewDialogComponent,
ModalService,
Permission,
} from '@vendure/admin-ui/core';
import { unique } from '@vendure/common/lib/unique';
import { Asset, Permission } from '../../../common/generated-types';
import { ModalService } from '../../../providers/modal/modal.service';
import { AssetPickerDialogComponent } from '../asset-picker-dialog/asset-picker-dialog.component';
import { AssetPreviewDialogComponent } from '../asset-preview-dialog/asset-preview-dialog.component';

export interface AssetChange {
assets: Asset[];
Expand Down
2 changes: 2 additions & 0 deletions packages/admin-ui/src/lib/core/src/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { AssetPickerDialogComponent } from './components/asset-picker-dialog/ass
import { AssetPreviewDialogComponent } from './components/asset-preview-dialog/asset-preview-dialog.component';
import { AssetPreviewLinksComponent } from './components/asset-preview-links/asset-preview-links.component';
import { AssetPreviewComponent } from './components/asset-preview/asset-preview.component';
import { AssetsComponent } from './components/assets/assets.component';
import { AssetSearchInputComponent } from './components/asset-search-input/asset-search-input.component';
import { AssignToChannelDialogComponent } from './components/assign-to-channel-dialog/assign-to-channel-dialog.component';
import { BulkActionMenuComponent } from './components/bulk-action-menu/bulk-action-menu.component';
Expand Down Expand Up @@ -192,6 +193,7 @@ const DECLARATIONS = [
ActionBarComponent,
ActionBarLeftComponent,
ActionBarRightComponent,
AssetsComponent,
AssetPreviewComponent,
AssetPreviewDialogComponent,
AssetSearchInputComponent,
Expand Down

0 comments on commit cc85202

Please sign in to comment.