From 10aef7aff4d0069887b13981a1933754486126c3 Mon Sep 17 00:00:00 2001 From: Mariia Lukianets Date: Tue, 10 Sep 2024 10:39:14 +0200 Subject: [PATCH] init plans cards doc --- .hlxignore | 1 + libs/features/mas/docs/plans.html | 23 +++++++++++++++++++ .../web-components/src/merch-datasource.js | 3 ++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 libs/features/mas/docs/plans.html diff --git a/.hlxignore b/.hlxignore index e394ce0b3b..73e8978d01 100644 --- a/.hlxignore +++ b/.hlxignore @@ -8,3 +8,4 @@ LICENSE web-test-runner.config.mjs codecov.yaml libs/features/mas/* +!libs/features/mas/docs/* diff --git a/libs/features/mas/docs/plans.html b/libs/features/mas/docs/plans.html new file mode 100644 index 0000000000..61ba3c56a9 --- /dev/null +++ b/libs/features/mas/docs/plans.html @@ -0,0 +1,23 @@ + + + + + Plans merch cards + + + + + + + + + +
+
+
+ +
+
+ + + diff --git a/libs/features/mas/web-components/src/merch-datasource.js b/libs/features/mas/web-components/src/merch-datasource.js index c0ea3fd8f9..4cc82b06af 100644 --- a/libs/features/mas/web-components/src/merch-datasource.js +++ b/libs/features/mas/web-components/src/merch-datasource.js @@ -2,6 +2,7 @@ import { AEM } from './aem.js'; import { createTag } from './utils.js'; const ATTR_AEM_BUCKET = 'aem-bucket'; +const AEM_BUCKET = 'publish-p22655-e59341'; const VARIANTS = { CATALOG: 'catalog', @@ -210,7 +211,7 @@ export class MerchDataSource extends HTMLElement { this.consonant = this.hasAttribute('consonant'); this.clearRefs(); const bucket = - this.getAttribute(ATTR_AEM_BUCKET) ?? 'publish-p22655-e59341'; + this.getAttribute(ATTR_AEM_BUCKET) ?? AEM_BUCKET; this.#aem = new AEM(bucket); this.refresh(false); }