天天看点

SAP Spartacus StorefrontConfig

import {

 AnonymousConsentsConfig,

 AsmConfig,

 AuthConfig,

 CartConfig,

 CmsConfig,

 ExternalRoutesConfig,

 GlobalMessageConfig,

 I18nConfig,

 KymaConfig,

 OccConfig,

 PersonalizationConfig,

 RoutingConfig,

 SiteContextConfig,

 StateConfig,

 StoreFinderConfig,

} from '@spartacus/core';

import { CheckoutConfig } from './cms-components/checkout/config/checkout-config';

import { IconConfig } from './cms-components/misc/icon/icon.model';

import { QualtricsConfig } from './cms-components/misc/qualtrics/config/qualtrics-config';

import { PWAModuleConfig } from './cms-structure/pwa/pwa.module-config';

import { FeatureToggles } from './feature-toggles';

import { SkipLinkConfig } from './layout/a11y/skip-link/config/index';

import { LayoutConfig } from './layout/config/layout-config';

import { DirectionConfig } from './layout/direction/config/direction.config';

import { PaginationConfig } from './shared/components/list-navigation/pagination/index';

import { MediaConfig } from './shared/components/media/media.config';

import { ViewConfig } from './shared/config/view-config';

export type StorefrontConfig =

 | AnonymousConsentsConfig

 | AuthConfig

 | CmsConfig

 | OccConfig

 | QualtricsConfig

 | StateConfig

 | PWAModuleConfig

 | SiteContextConfig

 | LayoutConfig

 | DirectionConfig

 | MediaConfig

 | RoutingConfig

 | I18nConfig

 | PersonalizationConfig

 | IconConfig

 | CheckoutConfig

 | KymaConfig

 | GlobalMessageConfig

 | ExternalRoutesConfig

 | ViewConfig

 | FeatureToggles

 | AsmConfig

 | SkipLinkConfig

 | PaginationConfig

 | StoreFinderConfig

 | CartConfig;

众多config类型的一个composition,作为B2cStorefrontModule.withConfig的输入参数类型,允许partner复写默认配置条目:

SAP Spartacus StorefrontConfig
SAP Spartacus StorefrontConfig
SAP Spartacus StorefrontConfig

继续阅读