Skip to content

Commit

Permalink
chore: removed merchant package (#23)
Browse files Browse the repository at this point in the history
* Removed merchant package.

* Updated deps. Removed merchant brand from entry component.

---------

Co-authored-by: Alexander Kovalenko <[email protected]>
  • Loading branch information
tolerants and Alexander Kovalenko authored Jun 11, 2024
1 parent 4c14af4 commit 4f4ee82
Show file tree
Hide file tree
Showing 97 changed files with 4 additions and 2,992 deletions.
5 changes: 1 addition & 4 deletions apps/storefront/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ ORYX_CONTENTFUL_SPACE=
# Default preset is b2c (storefront).
ORYX_PRESET=

# If set - adds merchant features to the storefront
ORYX_MERCHANT=

# Used to set a feature level, available options: latest, 1.0, 1.1, etc. Only major and minor versions should be used.
ORYX_FEATURE_VERSION=latest

Expand All @@ -50,4 +47,4 @@ ORYX_STRAPI_TOKEN=
ORYX_STRAPI_API_URL=

# Set to true to enable the multi-cart feature.
ORYX_MULTI_CART=
ORYX_MULTI_CART=
2 changes: 1 addition & 1 deletion apps/storefront/dependencies.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEPENDENCIES="apps/storefront/* libs/base/di/* libs/base/ui/* libs/base/utilities/* libs/domain/cart/* libs/domain/checkout/* libs/domain/content/* libs/domain/merchant/* libs/domain/order/* libs/domain/product/* libs/domain/search/* libs/domain/site/* libs/domain/user/* libs/platform/auth/* libs/platform/core/* libs/platform/experience/* libs/platform/form/* libs/platform/i18n/* libs/platform/indexed-db/* libs/platform/offline/* libs/platform/push-notification/* libs/platform/router/* libs/template/application/* libs/template/labs/* libs/template/presets/* libs/template/resources/* libs/template/themes/*"
DEPENDENCIES="apps/storefront/* libs/base/di/* libs/base/ui/* libs/base/utilities/* libs/domain/cart/* libs/domain/checkout/* libs/domain/content/* libs/domain/order/* libs/domain/product/* libs/domain/search/* libs/domain/site/* libs/domain/user/* libs/platform/auth/* libs/platform/core/* libs/platform/experience/* libs/platform/form/* libs/platform/i18n/* libs/platform/indexed-db/* libs/platform/offline/* libs/platform/push-notification/* libs/platform/router/* libs/template/application/* libs/template/labs/* libs/template/presets/* libs/template/resources/* libs/template/themes/*"
2 changes: 0 additions & 2 deletions apps/storefront/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { appBuilder } from '@spryker-oryx/application';
import { multiCartFeature } from '@spryker-oryx/cart';
import { labsFeatures } from '@spryker-oryx/labs';
import { merchantFeature } from '@spryker-oryx/merchant';
import { b2bStorefrontFeatures } from '@spryker-oryx/presets/b2b-storefront';
import { storefrontFeatures } from '@spryker-oryx/presets/storefront';
import { storefrontTheme } from '@spryker-oryx/themes';
Expand All @@ -15,7 +14,6 @@ const features = [
...storefrontFeatures,
...(env.ORYX_MULTI_CART ? [multiCartFeature] : []),
]),
...(env.ORYX_MERCHANT ? [merchantFeature] : []),
...(env.ORYX_LABS ? labsFeatures : []),
];

Expand Down
2 changes: 0 additions & 2 deletions apps/storybook/.storybook/app/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { mockCoreFeature } from '@spryker-oryx/core/mocks';
import { mockExperienceFeature } from '@spryker-oryx/experience/mocks';
import { formFeature } from '@spryker-oryx/form';
import { I18nFeature } from '@spryker-oryx/i18n';
import { mockMerchantFeature } from '@spryker-oryx/merchant/mocks';
import { mockOfflineFeature } from '@spryker-oryx/offline/mocks';
import { mockOrderFeature } from '@spryker-oryx/order/mocks';
import { mockProductFeature } from '@spryker-oryx/product/mocks';
Expand Down Expand Up @@ -52,7 +51,6 @@ const builder = appBuilder()
.withFeature(contentFeature)
.withFeature(mockOfflineFeature)
.withFeature(mockProductFeature)
.withFeature(mockMerchantFeature)
.withFeature(mockSearchFeature)
.withFeature(mockSiteFeature)
.withFeature(mockUserFeature)
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/dependencies.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEPENDENCIES="apps/storybook/* libs/base/di/* libs/base/ui/* libs/base/utilities/* libs/domain/cart/* libs/domain/checkout/* libs/domain/content/* libs/domain/merchant/* libs/domain/order/* libs/domain/product/* libs/domain/search/* libs/domain/site/* libs/domain/user/* libs/platform/auth/* libs/platform/core/* libs/platform/experience/* libs/platform/form/* libs/platform/i18n/* libs/platform/indexed-db/* libs/platform/offline/* libs/platform/push-notification/* libs/platform/router/* libs/template/application/* libs/template/presets/* libs/template/resources/* libs/template/themes/*"
DEPENDENCIES="apps/storybook/* libs/base/di/* libs/base/ui/* libs/base/utilities/* libs/domain/cart/* libs/domain/checkout/* libs/domain/content/* libs/domain/order/* libs/domain/product/* libs/domain/search/* libs/domain/site/* libs/domain/user/* libs/platform/auth/* libs/platform/core/* libs/platform/experience/* libs/platform/form/* libs/platform/i18n/* libs/platform/indexed-db/* libs/platform/offline/* libs/platform/push-notification/* libs/platform/router/* libs/template/application/* libs/template/presets/* libs/template/resources/* libs/template/themes/*"
13 changes: 0 additions & 13 deletions libs/domain/cart/entry/src/entry.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { resolve } from '@spryker-oryx/di';
import { ContentMixin, defaultOptions } from '@spryker-oryx/experience';
import {
PRODUCT,
Product,
ProductContext,
ProductMediaContainerSize,
ProductMixin,
Expand Down Expand Up @@ -146,18 +145,6 @@ export class CartEntryComponent
maxLines: featureVersion >= '1.4' ? 1 : undefined,
} as ProductTitleOptions}
></oryx-product-title>
${featureVersion >= '1.4' &&
(this.$product() as Product & { merchantId: string })?.merchantId
? html`<oryx-data-text
.options=${{
entity: 'merchant',
field: 'name',
prefix: 'Sold by: ',
link: true,
}}
>}
</oryx-data-text>`
: html``}
${when(
this.$options()?.enableItemId,
() => html`<oryx-product-id></oryx-product-id>`
Expand Down
1 change: 0 additions & 1 deletion libs/domain/merchant/.constants.ts

This file was deleted.

24 changes: 0 additions & 24 deletions libs/domain/merchant/CHANGELOG.md

This file was deleted.

7 changes: 0 additions & 7 deletions libs/domain/merchant/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions libs/domain/merchant/offer-list/index.ts

This file was deleted.

92 changes: 0 additions & 92 deletions libs/domain/merchant/offer-list/offer-list.component.spec.ts

This file was deleted.

115 changes: 0 additions & 115 deletions libs/domain/merchant/offer-list/offer-list.component.ts

This file was deleted.

9 changes: 0 additions & 9 deletions libs/domain/merchant/offer-list/offer-list.def.ts

This file was deleted.

8 changes: 0 additions & 8 deletions libs/domain/merchant/offer-list/offer-list.schema.ts

This file was deleted.

25 changes: 0 additions & 25 deletions libs/domain/merchant/offer-list/offer-list.styles.ts

This file was deleted.

Loading

0 comments on commit 4f4ee82

Please sign in to comment.