@designcrowd/library.brand-page 5.11.5 → 5.11.6
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/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -4
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.js +6 -26
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +5 -1
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +2 -2
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +2 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +10 -0
- package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +5 -0
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +7 -0
- package/lib/src/{bundled-translations.fr-FR-Cmyyaw08.js → bundled-translations.fr-FR-DeaEq6-j.js} +1 -1
- package/lib/src/bundles/bundled-translations.fr-FR.json +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +7 -7
- package/lib/src/css/library.brand-page-brandPage.min.css +7 -7
- package/lib/src/css/library.brand-page-designCom.min.css +7 -7
- package/lib/src/css/library.brand-page-preview.min.css +7 -7
- package/lib/src/index.mjs +5871 -5868
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.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/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/package.json +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +9 -2
- package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -0
- package/src/brand-page-maker/components/sensitive-content/SensitiveContent.vue +39 -49
- package/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.ts +6 -22
- package/src/brand-page-maker/components/seo-settings/SeoPageSettings.vue +3 -2
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +2 -2
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +14 -0
- package/src/brand-page-maker/stores/route/localised-route-store.ts +9 -0
- package/src/bundles/bundled-translations.fr-FR.json +1 -1
- package/src/composables/useTranslate.ts +1 -0
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +3 -1
- package/src/shared/page-settings/components/delete-page-modal/i18n/delete-page-modal.fr-FR.json +1 -1
|
@@ -192,7 +192,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
192
192
|
isPurchasedDomain: any;
|
|
193
193
|
}): Promise<boolean | undefined>;
|
|
194
194
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
195
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
195
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
196
196
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
197
197
|
redirectToStripeOnboarding(): Promise<void>;
|
|
198
198
|
exportDesignAsync(): Promise<any>;
|
|
@@ -357,7 +357,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
357
357
|
isPurchasedDomain: any;
|
|
358
358
|
}): Promise<boolean | undefined>;
|
|
359
359
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
360
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
360
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
361
361
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
362
362
|
redirectToStripeOnboarding(): Promise<void>;
|
|
363
363
|
exportDesignAsync(): Promise<any>;
|
|
@@ -4614,7 +4614,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4614
4614
|
isPurchasedDomain: any;
|
|
4615
4615
|
}): Promise<boolean | undefined>;
|
|
4616
4616
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
4617
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
4617
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
4618
4618
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
4619
4619
|
redirectToStripeOnboarding(): Promise<void>;
|
|
4620
4620
|
exportDesignAsync(): Promise<any>;
|
|
@@ -4045,7 +4045,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4045
4045
|
isPurchasedDomain: any;
|
|
4046
4046
|
}): Promise<boolean | undefined>;
|
|
4047
4047
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
4048
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
4048
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
4049
4049
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
4050
4050
|
redirectToStripeOnboarding(): Promise<void>;
|
|
4051
4051
|
exportDesignAsync(): Promise<any>;
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts
CHANGED
|
@@ -349,7 +349,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
349
349
|
isPurchasedDomain: any;
|
|
350
350
|
}): Promise<boolean | undefined>;
|
|
351
351
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
352
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
352
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
353
353
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
354
354
|
redirectToStripeOnboarding(): Promise<void>;
|
|
355
355
|
exportDesignAsync(): Promise<any>;
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
185
185
|
isPurchasedDomain: any;
|
|
186
186
|
}): Promise<boolean | undefined>;
|
|
187
187
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
188
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
188
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
189
189
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
190
190
|
redirectToStripeOnboarding(): Promise<void>;
|
|
191
191
|
exportDesignAsync(): Promise<any>;
|
|
@@ -762,7 +762,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
762
762
|
isPurchasedDomain: any;
|
|
763
763
|
}): Promise<boolean | undefined>;
|
|
764
764
|
checkWebsiteSlugAsync(slug: string): Promise<import("../../../brand-page-maker/models/api.model").WebsiteSlugCheckResponse | null>;
|
|
765
|
-
redirectToLogoEditPage(logoEditUrl: string): Promise<void>;
|
|
765
|
+
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
766
766
|
redirectToCreateNewDesignPage(): Promise<void>;
|
|
767
767
|
redirectToStripeOnboarding(): Promise<void>;
|
|
768
768
|
exportDesignAsync(): Promise<any>;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:is-admin="isAdmin"
|
|
5
5
|
:is-published="isPublished"
|
|
6
6
|
:is-saving="isSaving"
|
|
7
|
-
:brand-crowd-url="
|
|
7
|
+
:brand-crowd-url="brandCrowdUrl"
|
|
8
8
|
:back-url="backUrl"
|
|
9
9
|
:back-button-label="backButtonLabel"
|
|
10
10
|
:is-design-com="isDesignCom"
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
</div>
|
|
98
98
|
</template>
|
|
99
99
|
<script>
|
|
100
|
+
import { computed } from 'vue';
|
|
100
101
|
import { HelloBar } from '@designcrowd/fe-shared-lib';
|
|
101
102
|
import ActionBar from '../action-bar/ActionBar.vue';
|
|
102
103
|
import BrandPageBackgroundSettings from '../brandpage-background-settings/BrandPageBackgroundSettings.vue';
|
|
@@ -119,6 +120,7 @@ import ProductConfigModal from '../../../brand-page-maker/components/shop/Produc
|
|
|
119
120
|
import { SIDE_BAR_TAB_NAMES } from '../../constants';
|
|
120
121
|
import { VIEWPORTS, BRAND_PAGE_TYPES } from '../../../brand-page';
|
|
121
122
|
import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES } from '../../../shared/models';
|
|
123
|
+
import { useLocalisedRouteStore } from '../../stores/route/localised-route-store';
|
|
122
124
|
|
|
123
125
|
export default {
|
|
124
126
|
components: {
|
|
@@ -143,7 +145,12 @@ export default {
|
|
|
143
145
|
},
|
|
144
146
|
mixins: [BrandPageMakerMixin],
|
|
145
147
|
setup(props, context) {
|
|
146
|
-
|
|
148
|
+
const localisedRouteStore = useLocalisedRouteStore();
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
...BrandPageMakerMixin.setup(props, context),
|
|
152
|
+
brandCrowdUrl: computed(() => localisedRouteStore.localisedBaseUrl),
|
|
153
|
+
};
|
|
147
154
|
},
|
|
148
155
|
data() {
|
|
149
156
|
return {
|
|
@@ -223,10 +223,12 @@ const onSlugChangeButtonClicked = async () => {
|
|
|
223
223
|
const onUpdateSettings = async (payload: {
|
|
224
224
|
description: string;
|
|
225
225
|
title: string;
|
|
226
|
+
shouldRefresh: boolean;
|
|
226
227
|
}) => {
|
|
227
228
|
brandPageMakerStore.updateBrandPageSettings({
|
|
228
229
|
description: payload.description,
|
|
229
230
|
title: payload.title,
|
|
231
|
+
shouldRefresh: payload.shouldRefresh,
|
|
230
232
|
});
|
|
231
233
|
};
|
|
232
234
|
|
|
@@ -258,6 +260,7 @@ const onSocialShareChange = (mediaType: string) => {
|
|
|
258
260
|
const onChangeSensitiveSettings = (value) => {
|
|
259
261
|
brandPageMakerStore.updateSensitiveContentSettings({
|
|
260
262
|
sensitiveContent: value,
|
|
263
|
+
shouldRefresh: false,
|
|
261
264
|
});
|
|
262
265
|
};
|
|
263
266
|
</script>
|
|
@@ -19,47 +19,41 @@
|
|
|
19
19
|
>
|
|
20
20
|
{{ sensitiveSettingTr('sensitiveContentInfo') }}
|
|
21
21
|
</p>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
:
|
|
25
|
-
method="post"
|
|
22
|
+
<div
|
|
23
|
+
class="tw-mt-4 tw-items-center tw-grid tw-grid-cols-2 tw-gap-4"
|
|
24
|
+
:class="{ 'tw-grid-cols-5': !isMaker }"
|
|
26
25
|
>
|
|
27
26
|
<div
|
|
28
|
-
|
|
29
|
-
:
|
|
27
|
+
v-for="opt in data.sensitiveSettings"
|
|
28
|
+
:key="opt.value"
|
|
29
|
+
class="tw-flex tw-items-center"
|
|
30
|
+
:class="{
|
|
31
|
+
'tw-col-span-2':
|
|
32
|
+
!isMaker &&
|
|
33
|
+
opt.value === SENSITIVE_CONTENT_TYPES.sensitiveContent,
|
|
34
|
+
}"
|
|
35
|
+
@click="onSensitiveSettingsClick(opt.value)"
|
|
30
36
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
<input
|
|
38
|
+
type="radio"
|
|
39
|
+
class="tw-w-5 tw-h-5 tw-cursor-pointer tw-mb-0 tw-accent-primary-500 tw-mr-2"
|
|
40
|
+
name="sensitiveContent"
|
|
41
|
+
:checked="data.selectedSensitiveSettings === opt.value"
|
|
42
|
+
:value="opt.value"
|
|
43
|
+
/>
|
|
44
|
+
<input
|
|
45
|
+
hidden
|
|
46
|
+
name="sensitiveContentType"
|
|
47
|
+
:value="data.selectedSensitiveSettings"
|
|
48
|
+
/>
|
|
49
|
+
<label
|
|
50
|
+
for="radio1"
|
|
51
|
+
class="tw-font-sans tw-text-sm tw-cursor-pointer tw-h-fit tw-text-grayscale-600"
|
|
41
52
|
>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class="tw-w-5 tw-h-5 tw-cursor-pointer tw-mb-0 tw-accent-primary-500 tw-mr-2"
|
|
45
|
-
name="sensitiveContent"
|
|
46
|
-
:checked="data.selectedSensitiveSettings === opt.value"
|
|
47
|
-
:value="opt.value"
|
|
48
|
-
/>
|
|
49
|
-
<input
|
|
50
|
-
hidden
|
|
51
|
-
name="sensitiveContentType"
|
|
52
|
-
:value="data.selectedSensitiveSettings"
|
|
53
|
-
/>
|
|
54
|
-
<label
|
|
55
|
-
for="radio1"
|
|
56
|
-
class="tw-font-sans tw-text-sm tw-cursor-pointer tw-h-fit tw-text-grayscale-600"
|
|
57
|
-
>
|
|
58
|
-
{{ opt.label }}
|
|
59
|
-
</label>
|
|
60
|
-
</div>
|
|
53
|
+
{{ opt.label }}
|
|
54
|
+
</label>
|
|
61
55
|
</div>
|
|
62
|
-
</
|
|
56
|
+
</div>
|
|
63
57
|
</div>
|
|
64
58
|
<div
|
|
65
59
|
v-if="isMaker"
|
|
@@ -73,6 +67,7 @@
|
|
|
73
67
|
class="tw-uppercase"
|
|
74
68
|
:label="commonTr('updateSettings')"
|
|
75
69
|
variant="primary"
|
|
70
|
+
type="submit"
|
|
76
71
|
:disabled="isNoChange"
|
|
77
72
|
@click="onSensitiveContentUpdate"
|
|
78
73
|
/>
|
|
@@ -98,7 +93,10 @@
|
|
|
98
93
|
<script setup lang="ts">
|
|
99
94
|
import { Button } from '@designcrowd/fe-shared-lib';
|
|
100
95
|
import { computed, reactive, nextTick, useTemplateRef } from 'vue';
|
|
101
|
-
import {
|
|
96
|
+
import {
|
|
97
|
+
SENSITIVE_CONTENT_TYPES,
|
|
98
|
+
type SensitiveContent,
|
|
99
|
+
} from '../../../brand-page/models/brand-page-context.model';
|
|
102
100
|
import { useBrandPageMakerStore } from '../../stores';
|
|
103
101
|
import {
|
|
104
102
|
sensitiveSettingTr,
|
|
@@ -149,7 +147,6 @@ const emit = defineEmits([
|
|
|
149
147
|
'change-sensitive-settings',
|
|
150
148
|
'pre-submit-edit-sensitive-content',
|
|
151
149
|
]);
|
|
152
|
-
const updateFormRef = useTemplateRef('editSensitiveContentForm');
|
|
153
150
|
|
|
154
151
|
const onSensitiveSettingsClick = (value) => {
|
|
155
152
|
data.selectedSensitiveSettings = value;
|
|
@@ -163,17 +160,10 @@ const onSubmitEditSensitiveContent = () => {
|
|
|
163
160
|
emit('pre-submit-edit-sensitive-content', data.selectedSensitiveSettings);
|
|
164
161
|
|
|
165
162
|
nextTick(() => {
|
|
166
|
-
|
|
163
|
+
brandPageMakerStore.updateSensitiveContentSettings({
|
|
164
|
+
sensitiveContent: data.selectedSensitiveSettings as SensitiveContent,
|
|
165
|
+
shouldRefresh: true,
|
|
166
|
+
});
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
|
-
|
|
170
|
-
const editSensitiveContentActionPath = computed(() => {
|
|
171
|
-
if (isBrandPage.value) {
|
|
172
|
-
return `/maker/brand-page/manage/${props.designDraftToken}/updateSensitiveContent`;
|
|
173
|
-
} else if (isBrandContact.value) {
|
|
174
|
-
return `/maker/brand-contact/manage/${props.designDraftToken}/updateSensitiveContent`;
|
|
175
|
-
} else {
|
|
176
|
-
return `/maker/brand-site/manage/${props.designDraftToken}/updateSensitiveContent`;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
169
|
</script>
|
|
@@ -79,24 +79,6 @@ export default defineComponent({
|
|
|
79
79
|
this.internalTitle = this.brandPageContainerStore.brandPageTitle;
|
|
80
80
|
},
|
|
81
81
|
computed: {
|
|
82
|
-
editMetaActionPath() {
|
|
83
|
-
if (this.isBrandPage) {
|
|
84
|
-
return `/maker/brand-page/manage/${this.designDraftToken}/meta`;
|
|
85
|
-
} else if (this.isBrandContact) {
|
|
86
|
-
return `/maker/brand-contact/manage/${this.designDraftToken}/meta`;
|
|
87
|
-
} else {
|
|
88
|
-
return `/maker/brand-site/manage/${this.designDraftToken}/meta`;
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
duplicateActionPath() {
|
|
92
|
-
if (this.isBrandPage) {
|
|
93
|
-
return `/maker/brand-page/manage/${this.designDraftToken}/duplicate`;
|
|
94
|
-
} else if (this.isBrandContact) {
|
|
95
|
-
return `/maker/brand-contact/manage/${this.designDraftToken}/meta`;
|
|
96
|
-
} else {
|
|
97
|
-
return `/maker/brand-site/manage/${this.designDraftToken}/duplicate`;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
82
|
hasSlug() {
|
|
101
83
|
return Boolean(this.brandPageContainerStore.brandPageSlug);
|
|
102
84
|
},
|
|
@@ -181,13 +163,15 @@ export default defineComponent({
|
|
|
181
163
|
this.$emit('update-settings', {
|
|
182
164
|
description: this.internalDescription,
|
|
183
165
|
title: this.internalTitle,
|
|
166
|
+
shouldRefresh: false,
|
|
184
167
|
});
|
|
185
168
|
},
|
|
186
|
-
onSubmitEditMeta() {
|
|
187
|
-
this.$emit('pre-submit-edit-meta');
|
|
188
169
|
|
|
189
|
-
|
|
190
|
-
|
|
170
|
+
onUpdateSettingsFromManagePage() {
|
|
171
|
+
this.brandPageMakerStore.updateBrandPageSettings({
|
|
172
|
+
description: this.myPageDescription,
|
|
173
|
+
title: this.myPageTitle,
|
|
174
|
+
shouldRefresh: true,
|
|
191
175
|
});
|
|
192
176
|
},
|
|
193
177
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
<!-- BC form -->
|
|
16
16
|
<div v-if="!isMaker">
|
|
17
|
-
<form ref="editMetaForm"
|
|
17
|
+
<form ref="editMetaForm">
|
|
18
18
|
<div class="tw-p-4">
|
|
19
19
|
<div class="tw-m-0 tw-pb-2">
|
|
20
20
|
<TextInput
|
|
@@ -54,9 +54,10 @@
|
|
|
54
54
|
class="tw-uppercase"
|
|
55
55
|
:label="commonTr('updateSettings')"
|
|
56
56
|
variant="primary"
|
|
57
|
+
type="submit"
|
|
57
58
|
:disabled="!isUpdateButtonEnabled"
|
|
58
59
|
:attrs="{ 'data-test-btn-update-seo-settings': '' }"
|
|
59
|
-
@on-click.stop="
|
|
60
|
+
@on-click.stop="onUpdateSettingsFromManagePage"
|
|
60
61
|
/>
|
|
61
62
|
</div>
|
|
62
63
|
</div>
|
|
@@ -673,10 +673,10 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
675
|
|
|
676
|
-
async redirectToLogoEditPage(logoEditUrl: string) {
|
|
676
|
+
async redirectToLogoEditPage(logoEditUrl: string, locale: string) {
|
|
677
677
|
await this.saveBrandPage().then(() => {
|
|
678
678
|
if (window) {
|
|
679
|
-
window.location.href = logoEditUrl
|
|
679
|
+
window.location.href = `${logoEditUrl}?locale=${locale}`;
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
},
|
|
@@ -154,10 +154,12 @@ export interface BrandPageMakerState {
|
|
|
154
154
|
export interface UpdateBrandPageSettingsPayload {
|
|
155
155
|
description: string;
|
|
156
156
|
title: string;
|
|
157
|
+
shouldRefresh: boolean;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
export interface UpdateSensitiveContentPayload {
|
|
160
161
|
sensitiveContent: SensitiveContent;
|
|
162
|
+
shouldRefresh: boolean;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
export interface SetIsModifiedPayload {
|
|
@@ -1045,6 +1047,12 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
1045
1047
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
1046
1048
|
|
|
1047
1049
|
await brandPageContainerStore.updateBrandPageSettings(payload);
|
|
1050
|
+
|
|
1051
|
+
if (payload.shouldRefresh) {
|
|
1052
|
+
if (typeof window !== 'undefined') {
|
|
1053
|
+
window.location.reload();
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1048
1056
|
},
|
|
1049
1057
|
|
|
1050
1058
|
async updateSensitiveContentSettings(
|
|
@@ -1053,6 +1061,12 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
1053
1061
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
1054
1062
|
|
|
1055
1063
|
await brandPageContainerStore.updateSensitiveContent(payload);
|
|
1064
|
+
|
|
1065
|
+
if (payload.shouldRefresh) {
|
|
1066
|
+
if (typeof window !== 'undefined') {
|
|
1067
|
+
window.location.reload();
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1056
1070
|
},
|
|
1057
1071
|
|
|
1058
1072
|
async updateAndSaveMeasurementID(payload: {
|
|
@@ -19,6 +19,7 @@ export interface LocalisedRouteState {
|
|
|
19
19
|
brandSiteEditorUrlPath: string;
|
|
20
20
|
brandContactEditorUrlPath: string;
|
|
21
21
|
logoEditUrlPath: string;
|
|
22
|
+
localisedBaseUrl: string;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export const useLocalisedRouteStore = defineStore('localisedRoute', {
|
|
@@ -38,6 +39,7 @@ export const useLocalisedRouteStore = defineStore('localisedRoute', {
|
|
|
38
39
|
brandSiteEditorUrlPath: '',
|
|
39
40
|
brandContactEditorUrlPath: '',
|
|
40
41
|
logoEditUrlPath: '',
|
|
42
|
+
localisedBaseUrl: '',
|
|
41
43
|
}),
|
|
42
44
|
actions: {
|
|
43
45
|
initialise(payload: any) {
|
|
@@ -57,6 +59,7 @@ export const useLocalisedRouteStore = defineStore('localisedRoute', {
|
|
|
57
59
|
this.brandSiteEditorUrlPath = payload.brandSiteEditorUrlPath;
|
|
58
60
|
this.brandContactEditorUrlPath = payload.brandContactEditorUrlPath;
|
|
59
61
|
this.logoEditUrlPath = payload.logoEditUrlPath;
|
|
62
|
+
this.localisedBaseUrl = payload.localisedBaseUrl;
|
|
60
63
|
},
|
|
61
64
|
},
|
|
62
65
|
getters: {
|
|
@@ -114,5 +117,11 @@ export const useLocalisedRouteStore = defineStore('localisedRoute', {
|
|
|
114
117
|
? `https://www.design.com${slug}`
|
|
115
118
|
: `https://www.brandcrowd.com${slug}`;
|
|
116
119
|
},
|
|
120
|
+
|
|
121
|
+
getWebsiteBaseUrl: () => (isDesignCom: boolean) => {
|
|
122
|
+
return isDesignCom
|
|
123
|
+
? `https://www.design.com`
|
|
124
|
+
: `https://www.brandcrowd.com`;
|
|
125
|
+
},
|
|
117
126
|
},
|
|
118
127
|
});
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
},
|
|
696
696
|
"deletePageModal": {
|
|
697
697
|
"deletePageTitle": "Supprimez « {{PAGE_TITLE}} ».",
|
|
698
|
-
"deletePageConfirmation": "Voulez-vous vraiment supprimer cette page
|
|
698
|
+
"deletePageConfirmation": "Voulez-vous vraiment supprimer cette page? Cette opération ne peut pas être annulée.",
|
|
699
699
|
"cancel": "Annuler",
|
|
700
700
|
"delete": "Supprimer"
|
|
701
701
|
},
|
|
@@ -140,6 +140,7 @@ import { type LogoVariation, type LogoViewModel } from '../../../../brand-page';
|
|
|
140
140
|
import {
|
|
141
141
|
logoSelectionTr,
|
|
142
142
|
commonTr,
|
|
143
|
+
getCurrentLocale,
|
|
143
144
|
} from '../../../../composables/useTranslate';
|
|
144
145
|
|
|
145
146
|
interface Tab {
|
|
@@ -371,7 +372,8 @@ const onEditLogoButtonClicked = () => {
|
|
|
371
372
|
return;
|
|
372
373
|
}
|
|
373
374
|
if (data.logoEditUrl) {
|
|
374
|
-
|
|
375
|
+
const locale = getCurrentLocale();
|
|
376
|
+
containerStore.redirectToLogoEditPage(data.logoEditUrl, locale);
|
|
375
377
|
}
|
|
376
378
|
};
|
|
377
379
|
</script>
|
package/src/shared/page-settings/components/delete-page-modal/i18n/delete-page-modal.fr-FR.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"deletePageModal" : {
|
|
3
3
|
"deletePageTitle" : "Supprimez « {{PAGE_TITLE}} ».",
|
|
4
|
-
"deletePageConfirmation" : "Voulez-vous vraiment supprimer cette page
|
|
4
|
+
"deletePageConfirmation" : "Voulez-vous vraiment supprimer cette page? Cette opération ne peut pas être annulée.",
|
|
5
5
|
"cancel" : "Annuler",
|
|
6
6
|
"delete" : "Supprimer"
|
|
7
7
|
}
|