@designcrowd/library.brand-page 5.14.8-flacky-nav-21 → 5.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-C7UP0wnU.js → CreatedOnBrandCrowd-de-de-CiXGpUsj.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Dn7kLByA.js → CreatedOnBrandCrowd-en-us-BjBeAHIJ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BniaWIta.js → CreatedOnBrandCrowd-es-es-COz-dVj5.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-L19SCOKe.js → CreatedOnBrandCrowd-fr-fr-DdRo8IoH.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-yF1hS_QN.js → CreatedOnBrandCrowd-pt-pt-YPxQ1gbj.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-COoIYzR_.js → CreatedOnDcom-de-de-DeUP5Ur5.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DPxw4zug.js → CreatedOnDcom-en-us-BjaQwhMw.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-B6sdWmmP.js → CreatedOnDcom-es-es-CYexVJc5.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C_P7GYue.js → CreatedOnDcom-fr-fr-BktbLTrT.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-QAdIC2fu.js → CreatedOnDcom-pt-pt-HnEwifku.js} +1 -1
- package/lib/src/brand-page/constants/logo.constants.d.ts +0 -1
- package/lib/src/brand-page/constants/logo.constants.js +0 -2
- package/lib/src/brand-page/constants/styles.constants.d.ts +2 -2
- package/lib/src/brand-page/constants/styles.constants.js +2 -2
- package/lib/src/brand-page/utils/migration/migration-01.d.ts +2 -3
- package/lib/src/brand-page/utils/migration/migration-01.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-01_1.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-01_1.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-02.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-02.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-03.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-03.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-04.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-04.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-05.d.ts +2 -6
- package/lib/src/brand-page/utils/migration/migration-05.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-05_1.d.ts +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_1.js +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_2.d.ts +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_2.js +2 -3
- package/lib/src/brand-page/utils/migration.util.d.ts +1 -6
- package/lib/src/brand-page/utils/migration.util.js +6 -16
- package/lib/src/brand-page/utils/view-model.util.d.ts +4 -6
- package/lib/src/brand-page/utils/view-model.util.js +13 -14
- package/lib/src/brand-page/view-models.d.ts +0 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.d.ts +0 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +2 -48
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +0 -1122
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -1058
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/google-analytics/GoogleAnalytics.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -2
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +2 -3
- package/lib/src/css/library.brand-page-brandCrowd.min.css +6 -3
- package/lib/src/css/library.brand-page-brandPage.min.css +6 -3
- package/lib/src/css/library.brand-page-designCom.min.css +6 -3
- package/lib/src/css/library.brand-page-preview.min.css +6 -3
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BX6A4JdA.js → lib-BXmT_3as.js} +8015 -8149
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/store/page-settings-store.js +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/lib/src/shared/template-settings/store/template-settings-store.js +1 -2
- package/package.json +1 -1
- package/src/brand-page/components/logo/Logo.vue +1 -24
- package/src/brand-page/components/logo/LogoRender.vue +20 -56
- package/src/brand-page/constants/logo.constants.ts +0 -3
- package/src/brand-page/constants/styles.constants.ts +2 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +1112 -1121
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +413 -416
- package/src/brand-page/utils/migration/logo/migration.util.logo.test.ts +3 -3
- package/src/brand-page/utils/migration/migration-01.ts +4 -7
- package/src/brand-page/utils/migration/migration-01_1.ts +3 -6
- package/src/brand-page/utils/migration/migration-02.ts +4 -7
- package/src/brand-page/utils/migration/migration-03.ts +4 -7
- package/src/brand-page/utils/migration/migration-04.ts +4 -7
- package/src/brand-page/utils/migration/migration-05.ts +3 -16
- package/src/brand-page/utils/migration/migration-05_1.ts +4 -6
- package/src/brand-page/utils/migration/migration-05_2.ts +3 -6
- package/src/brand-page/utils/migration.util.test.ts +157 -274
- package/src/brand-page/utils/migration.util.ts +9 -26
- package/src/brand-page/utils/migration2.util.test.ts +2 -7
- package/src/brand-page/utils/view-model.util.ts +7 -26
- package/src/brand-page/view-models.ts +0 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -52
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -1090
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -4
- package/src/shared/page-settings/store/page-settings-store.ts +0 -1
- package/src/shared/template-settings/store/template-settings-store.ts +1 -2
- package/lib/src/brand-page/utils/migration/migration-06.d.ts +0 -4
- package/lib/src/brand-page/utils/migration/migration-06.js +0 -60
- package/src/brand-page/utils/migration/migration-06.test.ts +0 -384
- package/src/brand-page/utils/migration/migration-06.ts +0 -108
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LOGO_MIGRATION_VERSION } from '../constants';
|
|
2
1
|
import { type BrandPageModel, type LogoImageModel } from '../models';
|
|
3
2
|
import { migration01 } from './migration/migration-01';
|
|
4
3
|
import { migration01_1 } from './migration/migration-01_1';
|
|
@@ -6,24 +5,18 @@ import { migration02 } from './migration/migration-02';
|
|
|
6
5
|
import { migration03 } from './migration/migration-03';
|
|
7
6
|
import { migration04 } from './migration/migration-04';
|
|
8
7
|
import { migration05 } from './migration/migration-05';
|
|
9
|
-
import { migration06 } from './migration/migration-06';
|
|
10
8
|
import { migration05_1 } from './migration/migration-05_1';
|
|
11
9
|
import { migration05_2 } from './migration/migration-05_2';
|
|
12
|
-
export interface MigrationData {
|
|
13
|
-
brandPageModel: BrandPageModel;
|
|
14
|
-
useOldLogoRenderSize: boolean;
|
|
15
|
-
}
|
|
16
10
|
|
|
17
11
|
interface MigrationTableItem {
|
|
18
12
|
version: number;
|
|
19
13
|
migrateFn: (
|
|
20
|
-
|
|
14
|
+
brandPageModel: BrandPageModel,
|
|
21
15
|
options: {
|
|
22
16
|
logoImage?: LogoImageModel;
|
|
23
17
|
isUserDraft: boolean;
|
|
24
|
-
isServerRender: boolean;
|
|
25
18
|
},
|
|
26
|
-
) =>
|
|
19
|
+
) => BrandPageModel;
|
|
27
20
|
description: string;
|
|
28
21
|
runAlways?: boolean;
|
|
29
22
|
}
|
|
@@ -71,42 +64,32 @@ const MIGRATION_TABLE = [
|
|
|
71
64
|
migrateFn: migration05_2,
|
|
72
65
|
description: 'Migrating twitter content to x content',
|
|
73
66
|
},
|
|
74
|
-
{
|
|
75
|
-
version: 6,
|
|
76
|
-
migrateFn: migration06,
|
|
77
|
-
},
|
|
78
67
|
] as MigrationTableItem[];
|
|
79
68
|
|
|
80
69
|
export const GetLatestModelVersion = () =>
|
|
81
70
|
Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
82
71
|
|
|
83
|
-
export const migrateBrandPageModel =
|
|
72
|
+
export const migrateBrandPageModel = (
|
|
84
73
|
brandPageModel: BrandPageModel,
|
|
85
74
|
options: {
|
|
86
75
|
logoImage?: LogoImageModel;
|
|
87
76
|
isUserDraft: boolean;
|
|
88
|
-
isServerRender: boolean;
|
|
89
77
|
},
|
|
90
|
-
):
|
|
78
|
+
): BrandPageModel => {
|
|
91
79
|
let modelVersion = brandPageModel.v;
|
|
92
80
|
|
|
93
|
-
let migrationResult: MigrationData = {
|
|
94
|
-
brandPageModel,
|
|
95
|
-
useOldLogoRenderSize: false,
|
|
96
|
-
};
|
|
97
|
-
|
|
98
81
|
if (!modelVersion) {
|
|
99
82
|
modelVersion = 0;
|
|
100
83
|
}
|
|
101
84
|
|
|
102
|
-
|
|
85
|
+
MIGRATION_TABLE.forEach((x) => {
|
|
103
86
|
if (x.runAlways || modelVersion < x.version) {
|
|
104
|
-
|
|
87
|
+
brandPageModel = x.migrateFn(brandPageModel, options);
|
|
105
88
|
}
|
|
106
|
-
}
|
|
89
|
+
});
|
|
107
90
|
|
|
108
91
|
// Set the model to latest version
|
|
109
|
-
|
|
92
|
+
brandPageModel.v = GetLatestModelVersion();
|
|
110
93
|
|
|
111
|
-
return
|
|
94
|
+
return brandPageModel;
|
|
112
95
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from './migration/migration-02';
|
|
6
6
|
|
|
7
7
|
describe('migration02.ts', () => {
|
|
8
|
-
test('migration02 should return converted letterspacing',
|
|
8
|
+
test('migration02 should return converted letterspacing', () => {
|
|
9
9
|
const data: BrandPageData = {
|
|
10
10
|
pages: [
|
|
11
11
|
{
|
|
@@ -94,12 +94,7 @@ describe('migration02.ts', () => {
|
|
|
94
94
|
],
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
const model =
|
|
98
|
-
{ brandPageModel: new BrandPageModel(data), useOldLogoRenderSize: false },
|
|
99
|
-
{
|
|
100
|
-
isUserDraft: false,
|
|
101
|
-
},
|
|
102
|
-
);
|
|
97
|
+
const model = migration02(new BrandPageModel(data), { isUserDraft: false });
|
|
103
98
|
|
|
104
99
|
expect(model).toMatchSnapshot();
|
|
105
100
|
});
|
|
@@ -274,7 +274,6 @@ export const mapToImageGalleryViewModel = (
|
|
|
274
274
|
const mapToLogoViewModel = (
|
|
275
275
|
content: LogoContent,
|
|
276
276
|
globalStyles: LogoStyles,
|
|
277
|
-
useOldLogoRenderSize: boolean,
|
|
278
277
|
options?: {
|
|
279
278
|
width: string;
|
|
280
279
|
height: string;
|
|
@@ -330,7 +329,6 @@ const mapToLogoViewModel = (
|
|
|
330
329
|
},
|
|
331
330
|
},
|
|
332
331
|
isVisible: content.isLogoVisible,
|
|
333
|
-
useOldLogoRenderSize,
|
|
334
332
|
});
|
|
335
333
|
};
|
|
336
334
|
|
|
@@ -873,7 +871,6 @@ export const mapToPageHeaderViewModel = (
|
|
|
873
871
|
pageHeader: PageHeaderDesktop | PageHeaderMobile,
|
|
874
872
|
pageStyles: PageStyles,
|
|
875
873
|
pages: PageViewModel[],
|
|
876
|
-
useOldLogoRenderSize = false,
|
|
877
874
|
): PageHeaderViewModel => {
|
|
878
875
|
const viewport = pageHeader.viewport;
|
|
879
876
|
|
|
@@ -938,7 +935,7 @@ export const mapToPageHeaderViewModel = (
|
|
|
938
935
|
|
|
939
936
|
return {
|
|
940
937
|
displayStyle: pageHeader.displayStyle,
|
|
941
|
-
logo: mapToLogoViewModel(logoContent, logoStyles
|
|
938
|
+
logo: mapToLogoViewModel(logoContent, logoStyles),
|
|
942
939
|
pages: pages.filter((p) => !p.isHidden),
|
|
943
940
|
navigation:
|
|
944
941
|
viewport === VIEWPORTS.mobile
|
|
@@ -963,7 +960,6 @@ export const mapToPageHeaderViewModel = (
|
|
|
963
960
|
export const mapToPageFooterViewModel = (
|
|
964
961
|
pageFooter: PageFooterDesktop | PageFooterMobile,
|
|
965
962
|
pageStyles: PageStyles,
|
|
966
|
-
useOldLogoRenderSize = false,
|
|
967
963
|
): PageFooterViewModel => {
|
|
968
964
|
const {
|
|
969
965
|
logoImageBase64Url,
|
|
@@ -1005,18 +1001,14 @@ export const mapToPageFooterViewModel = (
|
|
|
1005
1001
|
{ fill: pageStyles.textStyles?.style.color },
|
|
1006
1002
|
pageFooter.iconStyle,
|
|
1007
1003
|
),
|
|
1008
|
-
logo: mapToLogoViewModel(logoContent, logoStyles
|
|
1004
|
+
logo: mapToLogoViewModel(logoContent, logoStyles),
|
|
1009
1005
|
socialLinks: pageFooter.socialLinks,
|
|
1010
1006
|
textFontFamily: pageFooter.textFontFamily,
|
|
1011
1007
|
};
|
|
1012
1008
|
};
|
|
1013
1009
|
|
|
1014
1010
|
export const mapToViewModel =
|
|
1015
|
-
(
|
|
1016
|
-
styles: PageStyles,
|
|
1017
|
-
brandPageType: BrandPageType,
|
|
1018
|
-
options?: { useOldLogoRenderSize: boolean },
|
|
1019
|
-
) =>
|
|
1011
|
+
(styles: PageStyles, brandPageType: BrandPageType) =>
|
|
1020
1012
|
(content: Content): ContentViewModel | undefined => {
|
|
1021
1013
|
switch (content.type) {
|
|
1022
1014
|
case 'image':
|
|
@@ -1033,15 +1025,10 @@ export const mapToViewModel =
|
|
|
1033
1025
|
return undefined;
|
|
1034
1026
|
}
|
|
1035
1027
|
|
|
1036
|
-
return mapToLogoViewModel(
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
{
|
|
1041
|
-
height: DEFAULT_LOGO_HEIGHT,
|
|
1042
|
-
width: DEFAULT_LOGO_WIDTH,
|
|
1043
|
-
},
|
|
1044
|
-
);
|
|
1028
|
+
return mapToLogoViewModel(content as LogoContent, styles.logoStyles, {
|
|
1029
|
+
height: DEFAULT_LOGO_HEIGHT,
|
|
1030
|
+
width: DEFAULT_LOGO_WIDTH,
|
|
1031
|
+
});
|
|
1045
1032
|
|
|
1046
1033
|
case 'map':
|
|
1047
1034
|
return mapToMapViewModel(content as MapContent);
|
|
@@ -1153,7 +1140,6 @@ export const getBrandPageViewModelFromBrandPageModel = (
|
|
|
1153
1140
|
model: BrandPageModel,
|
|
1154
1141
|
brandPageToken: string | undefined,
|
|
1155
1142
|
showBrandCrowdLogo = true,
|
|
1156
|
-
useOldLogoRenderSize = false,
|
|
1157
1143
|
): BrandPageViewModel => {
|
|
1158
1144
|
const pages = model.pages.map((p) => {
|
|
1159
1145
|
const contents = p.contents
|
|
@@ -1161,7 +1147,6 @@ export const getBrandPageViewModelFromBrandPageModel = (
|
|
|
1161
1147
|
mapToViewModel(
|
|
1162
1148
|
model.styles,
|
|
1163
1149
|
model.brandPageType || BRAND_PAGE_TYPES.default,
|
|
1164
|
-
{ useOldLogoRenderSize },
|
|
1165
1150
|
),
|
|
1166
1151
|
)
|
|
1167
1152
|
.filter((c) => c !== undefined) as ContentViewModel[];
|
|
@@ -1183,23 +1168,19 @@ export const getBrandPageViewModelFromBrandPageModel = (
|
|
|
1183
1168
|
model.pageHeaderDesktop,
|
|
1184
1169
|
model.styles,
|
|
1185
1170
|
pages,
|
|
1186
|
-
useOldLogoRenderSize,
|
|
1187
1171
|
),
|
|
1188
1172
|
headerViewModelMobile: mapToPageHeaderViewModel(
|
|
1189
1173
|
model.pageHeaderMobile,
|
|
1190
1174
|
model.styles,
|
|
1191
1175
|
pages,
|
|
1192
|
-
useOldLogoRenderSize,
|
|
1193
1176
|
),
|
|
1194
1177
|
footerViewModelDesktop: mapToPageFooterViewModel(
|
|
1195
1178
|
model.pageFooterDesktop,
|
|
1196
1179
|
model.styles,
|
|
1197
|
-
useOldLogoRenderSize,
|
|
1198
1180
|
),
|
|
1199
1181
|
footerViewModelMobile: mapToPageFooterViewModel(
|
|
1200
1182
|
model.pageFooterMobile,
|
|
1201
1183
|
model.styles,
|
|
1202
|
-
useOldLogoRenderSize,
|
|
1203
1184
|
),
|
|
1204
1185
|
brandPageType: model.brandPageType || BRAND_PAGE_TYPES.default,
|
|
1205
1186
|
faviconUrl: model.faviconUrl,
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
BRAND_PAGE_PERSONALISED,
|
|
28
28
|
PUBLISHED_DESIGN_DRAFT_TOKEN,
|
|
29
29
|
BRAND_SITE,
|
|
30
|
-
BRAND_SITE_SAMPLE_WITH_LOGO,
|
|
31
30
|
CUSTOM_DOMAIN_DESIGN_DRAFT_TOKEN,
|
|
32
31
|
brandPageCustom,
|
|
33
32
|
BRAND_CONTACT,
|
|
@@ -596,56 +595,6 @@ export const SamplePublishedWithCustomDomain: Story = {
|
|
|
596
595
|
}),
|
|
597
596
|
};
|
|
598
597
|
|
|
599
|
-
export const SamplePublishedBrandSiteWithLogo: Story = {
|
|
600
|
-
name: 'Sample (published brandsite with logo)',
|
|
601
|
-
render: () => ({
|
|
602
|
-
setup() {
|
|
603
|
-
InitialiseMakerStores({});
|
|
604
|
-
|
|
605
|
-
const containerStore = useBrandPageContainerStore();
|
|
606
|
-
|
|
607
|
-
containerStore.$patch({
|
|
608
|
-
isSellDomainNameEnabled: true,
|
|
609
|
-
baseFabricRenderUrl: FABRIC_RENDER_BASE_URL,
|
|
610
|
-
});
|
|
611
|
-
|
|
612
|
-
containerStore.setBrandPageStatus('Published');
|
|
613
|
-
containerStore.setDesignDraftToken({
|
|
614
|
-
designDraftToken: CUSTOM_DOMAIN_DESIGN_DRAFT_TOKEN,
|
|
615
|
-
});
|
|
616
|
-
containerStore.brandPageBaseUrl = 'https://brand.site';
|
|
617
|
-
containerStore.setSlug({
|
|
618
|
-
slug: 'my-page',
|
|
619
|
-
});
|
|
620
|
-
},
|
|
621
|
-
components: {
|
|
622
|
-
BrandPageMaker,
|
|
623
|
-
},
|
|
624
|
-
data() {
|
|
625
|
-
return {
|
|
626
|
-
viewModel: {
|
|
627
|
-
brandPageData: JSON.stringify(BRAND_SITE_SAMPLE_WITH_LOGO),
|
|
628
|
-
isSaving: false,
|
|
629
|
-
logoDraftDesignAttributes: simpleLogoDesignAttributes,
|
|
630
|
-
logoVariationImageUrls,
|
|
631
|
-
baseBrandPageUrl: 'https://brand.site',
|
|
632
|
-
features: userFeatures,
|
|
633
|
-
initialCategories: {},
|
|
634
|
-
},
|
|
635
|
-
show: false,
|
|
636
|
-
};
|
|
637
|
-
},
|
|
638
|
-
template: `
|
|
639
|
-
<BrandPageMaker v-if="show" :view-model="viewModel"/>
|
|
640
|
-
`,
|
|
641
|
-
pinia: setupStoryPinia(),
|
|
642
|
-
async beforeMount() {
|
|
643
|
-
await setLocaleAsync('en-US');
|
|
644
|
-
this.show = true;
|
|
645
|
-
},
|
|
646
|
-
}),
|
|
647
|
-
};
|
|
648
|
-
|
|
649
598
|
export const SamplePublishedBrandSite: Story = {
|
|
650
599
|
name: 'Sample (published brandsite)',
|
|
651
600
|
render: () => ({
|
|
@@ -1389,7 +1338,7 @@ SampleAdminMode.story = {
|
|
|
1389
1338
|
};
|
|
1390
1339
|
|
|
1391
1340
|
export const SampleAdminModeBrandSite: Story = {
|
|
1392
|
-
name: 'Sample (admin mode
|
|
1341
|
+
name: 'Sample (admin mode brandsite)',
|
|
1393
1342
|
render: () => ({
|
|
1394
1343
|
setup() {
|
|
1395
1344
|
InitialiseMakerStores({ isAdmin: true });
|