@designcrowd/library.brand-page 5.11.7 → 5.11.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-v4Pf4hwN.js +18 -0
- package/lib/src/CreatedOnBrandCrowd-en-us-B3vNwipT.js +18 -0
- package/lib/src/CreatedOnBrandCrowd-es-es-Dc8YQ5_G.js +18 -0
- package/lib/src/CreatedOnBrandCrowd-fr-fr-B3T3BPVB.js +18 -0
- package/lib/src/CreatedOnBrandCrowd-pt-pt-CFYi-3vN.js +18 -0
- package/lib/src/CreatedOnDcom-de-de-DeOW1C8t.js +18 -0
- package/lib/src/CreatedOnDcom-en-us-DhLZ8yLF.js +18 -0
- package/lib/src/CreatedOnDcom-es-es-CijeJ_l_.js +18 -0
- package/lib/src/CreatedOnDcom-fr-fr-DTBt4j-e.js +18 -0
- package/lib/src/CreatedOnDcom-pt-pt-BB0gCU7S.js +18 -0
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +35 -9
- package/lib/src/css/library.brand-page-brandCrowd.min.css +12 -12
- package/lib/src/css/library.brand-page-brandPage.min.css +12 -12
- package/lib/src/css/library.brand-page-designCom.min.css +12 -12
- package/lib/src/css/library.brand-page-preview.min.css +12 -12
- package/lib/src/index.mjs +189 -97489
- package/lib/src/lib-5zBDwXN9.js +97523 -0
- package/package.json +1 -1
- package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +30 -6
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnBrandCrowd-de-de.vue +224 -0
- package/src/brand-page/components/brand-page-footer/{CreatedOnBrandcrowd.vue → watermark/CreatedOnBrandCrowd-en-us.vue} +38 -38
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnBrandCrowd-es-es.vue +224 -0
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnBrandCrowd-fr-fr.vue +224 -0
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnBrandCrowd-pt-pt.vue +224 -0
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnDcom-de-de.vue +39 -0
- package/src/brand-page/components/brand-page-footer/{CreatedOnDcom.vue → watermark/CreatedOnDcom-en-us.vue} +3 -5
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnDcom-es-es.vue +39 -0
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnDcom-fr-fr.vue +39 -0
- package/src/brand-page/components/brand-page-footer/watermark/CreatedOnDcom-pt-pt.vue +39 -0
- package/src/brand-page-maker/stores/route/localised-route-store.ts +51 -8
|
@@ -3,6 +3,31 @@ import { BRAND_PAGE_TYPES } from '../../../brand-page/models';
|
|
|
3
3
|
import { interpolateUrl } from '../../utils/route.util';
|
|
4
4
|
import { useBrandPageContainerStore } from '../brandpage-container';
|
|
5
5
|
|
|
6
|
+
const getLocalisedSlug = (defaultSlug: string, locale: string): string => {
|
|
7
|
+
const translations: Record<string, Record<string, string>> = {
|
|
8
|
+
'/website-builder': {
|
|
9
|
+
'de-DE': '/website-erstellen',
|
|
10
|
+
'fr-FR': '/createur-site-web',
|
|
11
|
+
'es-ES': '/creador-paginas-web',
|
|
12
|
+
'pt-PT': '/criador-site',
|
|
13
|
+
},
|
|
14
|
+
'/digital-business-card': {
|
|
15
|
+
'de-DE': '/digitale-visitenkarte',
|
|
16
|
+
'fr-FR': '/carte-de-visite-numerique',
|
|
17
|
+
'es-ES': '/tarjeta-de-visita-digital',
|
|
18
|
+
'pt-PT': '/cartao-de-visita-digital',
|
|
19
|
+
},
|
|
20
|
+
'/link-in-bio': {
|
|
21
|
+
'de-DE': '/link-in-bio',
|
|
22
|
+
'fr-FR': '/lien-en-bio',
|
|
23
|
+
'es-ES': '/link-en-bio',
|
|
24
|
+
'pt-PT': '/link-na-bio',
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return translations[defaultSlug]?.[locale] || defaultSlug;
|
|
29
|
+
};
|
|
30
|
+
|
|
6
31
|
export interface LocalisedRouteState {
|
|
7
32
|
baseFabricRenderDomain: string;
|
|
8
33
|
baseBrandPageDomain: string;
|
|
@@ -93,7 +118,12 @@ export const useLocalisedRouteStore = defineStore('localisedRoute', {
|
|
|
93
118
|
|
|
94
119
|
getBuilderLandingPageByTypeUrl:
|
|
95
120
|
(state) =>
|
|
96
|
-
(
|
|
121
|
+
(
|
|
122
|
+
isPreview: boolean,
|
|
123
|
+
brandPageType: string,
|
|
124
|
+
isDesignCom: boolean,
|
|
125
|
+
locale: string,
|
|
126
|
+
) => {
|
|
97
127
|
if (isPreview) {
|
|
98
128
|
return '#';
|
|
99
129
|
}
|
|
@@ -102,20 +132,33 @@ export const useLocalisedRouteStore = defineStore('localisedRoute', {
|
|
|
102
132
|
|
|
103
133
|
switch (brandPageType) {
|
|
104
134
|
case BRAND_PAGE_TYPES.brandSite:
|
|
105
|
-
slug =
|
|
135
|
+
slug = getLocalisedSlug(
|
|
136
|
+
state.websiteBuilderUrlPath || '/website-builder',
|
|
137
|
+
locale,
|
|
138
|
+
);
|
|
106
139
|
break;
|
|
107
140
|
case BRAND_PAGE_TYPES.brandContact:
|
|
108
|
-
slug =
|
|
141
|
+
slug = getLocalisedSlug(
|
|
109
142
|
state.digitalBusinessCardBuilderUrlPath ||
|
|
110
|
-
|
|
143
|
+
'/digital-business-card',
|
|
144
|
+
locale,
|
|
145
|
+
);
|
|
111
146
|
break;
|
|
112
147
|
default:
|
|
113
|
-
slug =
|
|
148
|
+
slug = getLocalisedSlug(
|
|
149
|
+
state.linkInBioBuilderUrlPath || '/link-in-bio',
|
|
150
|
+
locale,
|
|
151
|
+
);
|
|
114
152
|
}
|
|
115
153
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
154
|
+
const lowercaseLocale = locale.toLowerCase();
|
|
155
|
+
const isEnglish = lowercaseLocale === 'en-us';
|
|
156
|
+
const domain = isDesignCom
|
|
157
|
+
? 'https://www.design.com'
|
|
158
|
+
: 'https://www.brandcrowd.com';
|
|
159
|
+
const localePath = isEnglish ? '' : `/${lowercaseLocale}`;
|
|
160
|
+
|
|
161
|
+
return `${domain}${localePath}${slug}`;
|
|
119
162
|
},
|
|
120
163
|
|
|
121
164
|
getWebsiteBaseUrl: () => (isDesignCom: boolean) => {
|