@designcrowd/fe-shared-lib 1.2.16 → 1.2.17-ast-upsell-1
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/index.js +4 -0
- package/package.json +2 -2
- package/public/css/tailwind-brandCrowd.css +30 -0
- package/public/css/tailwind-brandPage.css +30 -0
- package/public/css/tailwind-crazyDomains.css +30 -0
- package/public/css/tailwind-designCom.css +30 -0
- package/public/css/tailwind-designCrowd.css +30 -0
- package/src/atoms/components/Modal/Modal.vue +6 -1
- package/src/atoms/components/Upsell/DigitalBusinessCard.vue +63 -0
- package/src/atoms/components/Upsell/LinkInBio.vue +62 -0
- package/src/atoms/components/Upsell/UpgradeWebsite.vue +60 -0
- package/src/atoms/components/Upsell/WebDesignSupport.vue +60 -0
- package/src/atoms/components/Upsell/i18n/upsell-modal-components.json +17 -0
- package/src/bundles/bundled-translations.de-DE.json +35 -1
- package/src/bundles/bundled-translations.es-ES.json +35 -1
- package/src/bundles/bundled-translations.fr-FR.json +35 -1
- package/src/bundles/bundled-translations.json +47 -0
- package/src/bundles/bundled-translations.pt-PT.json +35 -1
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +41 -0
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +47 -25
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.de-DE.json +3 -1
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.es-ES.json +3 -1
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-FR.json +3 -1
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-PT.json +3 -1
- package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +24 -0
- package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +18 -8
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +22 -12
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +11 -5
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +10 -4
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +11 -5
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +10 -4
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +11 -5
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +7 -1
- package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +13 -7
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.de-DE.json +34 -0
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.es-ES.json +34 -0
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.fr-FR.json +34 -0
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.json +35 -0
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.pt-PT.json +34 -0
- package/src/useSharedLibTranslate.js +6 -0
- package/dist/css/tailwind-brandCrowd.css +0 -2493
- package/dist/css/tailwind-brandPage.css +0 -2177
- package/dist/css/tailwind-crazyDomains.css +0 -2493
- package/dist/css/tailwind-designCom.css +0 -2493
- package/dist/css/tailwind-designCrowd.css +0 -2493
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
<HelloBar
|
|
5
5
|
v-if="areColorsTooClose"
|
|
6
6
|
label=""
|
|
7
|
-
description="
|
|
7
|
+
:description="uploadYourLogoTr('colorsWarning')"
|
|
8
8
|
variant="warning"
|
|
9
9
|
class="tw-m-5 tw-mt-3"
|
|
10
10
|
/>
|
|
11
11
|
<div class="tw-pb-8 tw-px-8 tw-text-center">
|
|
12
12
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
13
|
-
|
|
13
|
+
{{ stepCounter }}
|
|
14
14
|
</p>
|
|
15
15
|
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
16
16
|
{{ activeStep.title }}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
>
|
|
81
81
|
<Button
|
|
82
82
|
v-if="activeStep.index === 1"
|
|
83
|
-
label="
|
|
83
|
+
:label="uploadYourLogoTr('back')"
|
|
84
84
|
size="large"
|
|
85
85
|
variant="outline"
|
|
86
86
|
container-classes="tw-mx-2"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
/>
|
|
90
90
|
<Button
|
|
91
91
|
v-if="activeStep.index === 2"
|
|
92
|
-
label="
|
|
92
|
+
:label="uploadYourLogoTr('back')"
|
|
93
93
|
size="large"
|
|
94
94
|
variant="outline"
|
|
95
95
|
container-classes="tw-mx-2"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
/>
|
|
99
99
|
<Button
|
|
100
100
|
v-if="activeStep.index === 1"
|
|
101
|
-
label="
|
|
101
|
+
:label="uploadYourLogoTr('continue')"
|
|
102
102
|
size="large"
|
|
103
103
|
variant="primary-with-icon"
|
|
104
104
|
icon="chevron-right-wide"
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
/>
|
|
109
109
|
<Button
|
|
110
110
|
v-if="activeStep.index === 2"
|
|
111
|
-
label="
|
|
111
|
+
:label="uploadYourLogoTr('continue')"
|
|
112
112
|
size="large"
|
|
113
113
|
variant="primary-with-icon"
|
|
114
114
|
icon="chevron-right-wide"
|
|
@@ -126,6 +126,7 @@ import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
|
|
|
126
126
|
import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
|
|
127
127
|
import trackEvent from '../../helpers/tracking';
|
|
128
128
|
import hexDiff from '../../helpers/hex-diff';
|
|
129
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
129
130
|
|
|
130
131
|
export default {
|
|
131
132
|
components: {
|
|
@@ -153,6 +154,11 @@ export default {
|
|
|
153
154
|
required: true,
|
|
154
155
|
},
|
|
155
156
|
},
|
|
157
|
+
setup() {
|
|
158
|
+
return {
|
|
159
|
+
uploadYourLogoTr,
|
|
160
|
+
};
|
|
161
|
+
},
|
|
156
162
|
data() {
|
|
157
163
|
return {
|
|
158
164
|
currentStep: null,
|
|
@@ -171,9 +177,8 @@ export default {
|
|
|
171
177
|
index: 1,
|
|
172
178
|
number: this.totalNumSteps - 1,
|
|
173
179
|
active: false,
|
|
174
|
-
title: '
|
|
175
|
-
description:
|
|
176
|
-
'Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.',
|
|
180
|
+
title: uploadYourLogoTr('primaryTextColor'),
|
|
181
|
+
description: uploadYourLogoTr('primaryTextColorDescription'),
|
|
177
182
|
colourData: this.logoData.logoImageDetails.textColors,
|
|
178
183
|
colours: [],
|
|
179
184
|
},
|
|
@@ -181,9 +186,8 @@ export default {
|
|
|
181
186
|
index: 2,
|
|
182
187
|
number: this.totalNumSteps,
|
|
183
188
|
active: false,
|
|
184
|
-
title: '
|
|
185
|
-
description:
|
|
186
|
-
'Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.',
|
|
189
|
+
title: uploadYourLogoTr('backgroundColor'),
|
|
190
|
+
description: uploadYourLogoTr('backgroundColorDescription'),
|
|
187
191
|
colourData: this.logoData.logoImageDetails.backgroundColors,
|
|
188
192
|
colours: [],
|
|
189
193
|
},
|
|
@@ -202,6 +206,12 @@ export default {
|
|
|
202
206
|
this.activeStep.index === 2 && hexDiff(selectedTextColour.hex, selectedBackgroundColour.hex) !== 'Different'
|
|
203
207
|
);
|
|
204
208
|
},
|
|
209
|
+
stepCounter() {
|
|
210
|
+
return this.uploadYourLogoTr('stepOf', {
|
|
211
|
+
CURRENT: this.activeStep.number,
|
|
212
|
+
TOTAL: this.totalNumSteps,
|
|
213
|
+
});
|
|
214
|
+
},
|
|
205
215
|
},
|
|
206
216
|
mounted() {
|
|
207
217
|
const keys = Object.keys(this.steps);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
6
6
|
{{ progressLabel }}
|
|
7
7
|
</p>
|
|
8
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
9
|
-
<p class="tw-mt-0">
|
|
8
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('businessName') }}</h2>
|
|
9
|
+
<p class="tw-mt-0">{{ uploadYourLogoTr('businessNameDescription') }}</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="tw-pb-8 tw-px-8">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
|
|
38
38
|
>
|
|
39
39
|
<Button
|
|
40
|
-
label="
|
|
40
|
+
:label="uploadYourLogoTr('back')"
|
|
41
41
|
size="large"
|
|
42
42
|
variant="outline"
|
|
43
43
|
container-classes="tw-mx-2"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@on-click="back"
|
|
46
46
|
/>
|
|
47
47
|
<Button
|
|
48
|
-
label="
|
|
48
|
+
:label="uploadYourLogoTr('continue')"
|
|
49
49
|
size="large"
|
|
50
50
|
variant="primary-with-icon"
|
|
51
51
|
icon="chevron-right-wide"
|
|
@@ -57,8 +57,9 @@
|
|
|
57
57
|
</div>
|
|
58
58
|
</template>
|
|
59
59
|
<script>
|
|
60
|
-
import Button from '
|
|
60
|
+
import Button from '../../../atoms/components/Button/Button.vue';
|
|
61
61
|
import trackEvent from '../../helpers/tracking';
|
|
62
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
62
63
|
|
|
63
64
|
export default {
|
|
64
65
|
components: {
|
|
@@ -84,6 +85,11 @@ export default {
|
|
|
84
85
|
required: true,
|
|
85
86
|
},
|
|
86
87
|
},
|
|
88
|
+
setup() {
|
|
89
|
+
return {
|
|
90
|
+
uploadYourLogoTr,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
87
93
|
data() {
|
|
88
94
|
return {
|
|
89
95
|
businessText: null,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
6
6
|
{{ progressLabel }}
|
|
7
7
|
</p>
|
|
8
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
9
|
-
<p class="tw-mt-0">
|
|
8
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('cropYourLogo') }}</h2>
|
|
9
|
+
<p class="tw-mt-0">{{ uploadYourLogoTr('cropDescription') }}</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="c-byo-cropper__container lg:tw-pb-8 tw-mx-auto" :class="{ 'tw-opacity-0': !cropperToolReady }">
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
|
|
28
28
|
>
|
|
29
29
|
<Button
|
|
30
|
-
label="
|
|
30
|
+
:label="uploadYourLogoTr('cancel')"
|
|
31
31
|
size="large"
|
|
32
32
|
variant="outline"
|
|
33
33
|
container-classes="tw-mx-2"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
@on-click="cancel"
|
|
36
36
|
/>
|
|
37
37
|
<Button
|
|
38
|
-
label="
|
|
38
|
+
:label="uploadYourLogoTr('continue')"
|
|
39
39
|
size="large"
|
|
40
40
|
variant="primary-with-icon"
|
|
41
41
|
icon="chevron-right-wide"
|
|
@@ -51,6 +51,7 @@ import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
|
51
51
|
import VueCropper from 'vue-cropperjs';
|
|
52
52
|
|
|
53
53
|
import trackEvent from '../../helpers/tracking';
|
|
54
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
54
55
|
|
|
55
56
|
export default {
|
|
56
57
|
components: {
|
|
@@ -72,6 +73,11 @@ export default {
|
|
|
72
73
|
required: true,
|
|
73
74
|
},
|
|
74
75
|
},
|
|
76
|
+
setup() {
|
|
77
|
+
return {
|
|
78
|
+
uploadYourLogoTr,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
75
81
|
data() {
|
|
76
82
|
return {
|
|
77
83
|
cropperToolReady: false,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
6
6
|
{{ progressLabel }}
|
|
7
7
|
</p>
|
|
8
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
9
|
-
<p class="tw-mt-0">
|
|
8
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('logoPreview') }}</h2>
|
|
9
|
+
<p class="tw-mt-0">{{ uploadYourLogoTr('logoPreviewDescription') }}</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="lg:tw-pb-8 lg:tw-px-8">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
|
|
25
25
|
>
|
|
26
26
|
<Button
|
|
27
|
-
label="
|
|
27
|
+
:label="uploadYourLogoTr('cancel')"
|
|
28
28
|
size="large"
|
|
29
29
|
variant="outline"
|
|
30
30
|
container-classes="tw-mx-2"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@on-click="cancel"
|
|
33
33
|
/>
|
|
34
34
|
<Button
|
|
35
|
-
label="
|
|
35
|
+
:label="uploadYourLogoTr('continue')"
|
|
36
36
|
size="large"
|
|
37
37
|
variant="primary-with-icon"
|
|
38
38
|
icon="chevron-right-wide"
|
|
@@ -44,8 +44,9 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
</template>
|
|
46
46
|
<script>
|
|
47
|
-
import Button from '
|
|
47
|
+
import Button from '../../../atoms/components/Button/Button.vue';
|
|
48
48
|
import trackEvent from '../../helpers/tracking';
|
|
49
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
49
50
|
|
|
50
51
|
export default {
|
|
51
52
|
components: {
|
|
@@ -66,6 +67,11 @@ export default {
|
|
|
66
67
|
required: true,
|
|
67
68
|
},
|
|
68
69
|
},
|
|
70
|
+
setup() {
|
|
71
|
+
return {
|
|
72
|
+
uploadYourLogoTr,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
69
75
|
methods: {
|
|
70
76
|
cropImage() {
|
|
71
77
|
if (!this.$refs.preview.complete) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-w-full">
|
|
3
3
|
<div class="tw-px-8 tw-pb-8">
|
|
4
|
-
<h2 class="tw-mb-8 tw-text-4xl tw-font-bold">
|
|
4
|
+
<h2 class="tw-mb-8 tw-text-4xl tw-font-bold">{{ uploadYourLogoTr('uploadError') }}</h2>
|
|
5
5
|
<p class="tw-mt-0 tw-text-grayscale-600 tw-text-base tw-text-center">
|
|
6
6
|
{{ errorMessage }}
|
|
7
7
|
</p>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
class="tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8"
|
|
12
12
|
>
|
|
13
13
|
<Button
|
|
14
|
-
label="
|
|
14
|
+
:label="uploadYourLogoTr('cancel')"
|
|
15
15
|
size="large"
|
|
16
16
|
variant="outline"
|
|
17
17
|
container-classes="tw-mx-2"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/>
|
|
29
29
|
|
|
30
30
|
<Button
|
|
31
|
-
label="
|
|
31
|
+
:label="uploadYourLogoTr('uploadYourLogoText')"
|
|
32
32
|
size="large"
|
|
33
33
|
variant="primary-with-icon"
|
|
34
34
|
icon="chevron-right-wide"
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
</template>
|
|
41
41
|
<script>
|
|
42
|
-
import Button from '
|
|
42
|
+
import Button from '../../../atoms/components/Button/Button.vue';
|
|
43
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
43
44
|
|
|
44
45
|
export default {
|
|
45
46
|
components: {
|
|
@@ -52,6 +53,11 @@ export default {
|
|
|
52
53
|
default: null,
|
|
53
54
|
},
|
|
54
55
|
},
|
|
56
|
+
setup() {
|
|
57
|
+
return {
|
|
58
|
+
uploadYourLogoTr,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
55
61
|
methods: {
|
|
56
62
|
cancel() {
|
|
57
63
|
this.$emit('on-cancel');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-w-full">
|
|
3
3
|
<div class="tw-px-8 tw-pb-8">
|
|
4
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
4
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('exitConfirmationTitle') }}</h2>
|
|
5
5
|
<p class="tw-mt-0 tw-text-grayscale-600 tw-text-base tw-text-center">
|
|
6
|
-
|
|
6
|
+
{{ uploadYourLogoTr('exitConfirmationDescription') }}
|
|
7
7
|
</p>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
class="tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8"
|
|
12
12
|
>
|
|
13
13
|
<Button
|
|
14
|
-
label="
|
|
14
|
+
:label="uploadYourLogoTr('no')"
|
|
15
15
|
size="large"
|
|
16
16
|
variant="outline"
|
|
17
17
|
container-classes="tw-mx-2"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@on-click="goBack"
|
|
20
20
|
/>
|
|
21
21
|
<Button
|
|
22
|
-
label="
|
|
22
|
+
:label="uploadYourLogoTr('yes')"
|
|
23
23
|
size="large"
|
|
24
24
|
variant="primary-with-icon"
|
|
25
25
|
icon="chevron-right-wide"
|
|
@@ -31,12 +31,18 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
<script>
|
|
34
|
-
import Button from '
|
|
34
|
+
import Button from '../../../atoms/components/Button/Button.vue';
|
|
35
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
35
36
|
|
|
36
37
|
export default {
|
|
37
38
|
components: {
|
|
38
39
|
Button,
|
|
39
40
|
},
|
|
41
|
+
setup() {
|
|
42
|
+
return {
|
|
43
|
+
uploadYourLogoTr,
|
|
44
|
+
};
|
|
45
|
+
},
|
|
40
46
|
methods: {
|
|
41
47
|
goBack() {
|
|
42
48
|
this.$emit('on-go-back');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<LogoUploadingLoader loading-text="
|
|
2
|
+
<LogoUploadingLoader :loading-text="uploadYourLogoTr('uploadingAndConverting')" />
|
|
3
3
|
</template>
|
|
4
4
|
<script>
|
|
5
5
|
import brandCrowdClient from '../../clients/brand-crowd-api.client';
|
|
@@ -7,6 +7,7 @@ import LogoUploadingLoader from './LogoUploadingLoader.vue';
|
|
|
7
7
|
|
|
8
8
|
import trackEvent from '../../helpers/tracking';
|
|
9
9
|
import hexDiff from '../../helpers/hex-diff';
|
|
10
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
components: {
|
|
@@ -23,6 +24,11 @@ export default {
|
|
|
23
24
|
required: true,
|
|
24
25
|
},
|
|
25
26
|
},
|
|
27
|
+
setup() {
|
|
28
|
+
return {
|
|
29
|
+
uploadYourLogoTr,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
26
32
|
data() {
|
|
27
33
|
return {
|
|
28
34
|
isRunning: false,
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
13
13
|
{{ currentStepProgressLabel }}
|
|
14
14
|
</p>
|
|
15
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
16
|
-
<p class="tw-mt-0 tw-pb-8">
|
|
15
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">{{ uploadYourLogoTr('uploadYourLogoText') }}</h2>
|
|
16
|
+
<p class="tw-mt-0 tw-pb-8">{{ uploadYourLogoTr('disclaimerText') }}</p>
|
|
17
17
|
<UploadYourLogoDropzone :is-modal="true" @on-upload-success="onLogoFileChange"> </UploadYourLogoDropzone>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
@on-logo-file-change="onLogoFileChange"
|
|
71
71
|
/>
|
|
72
72
|
|
|
73
|
-
<LogoUploadingLoader v-if="isCurrentlySaving" loading-text="
|
|
73
|
+
<LogoUploadingLoader v-if="isCurrentlySaving" :loading-text="uploadYourLogoTr('generatingDesigns')" />
|
|
74
74
|
|
|
75
75
|
<LogoUploadExitConfirmation
|
|
76
76
|
v-if="isAttemptingToExit && currentStep > 1"
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
import brandCrowdClient from '../../clients/brand-crowd-api.client';
|
|
86
86
|
import Errors from '../../constants/error-constants';
|
|
87
87
|
import trackEvent from '../../helpers/tracking';
|
|
88
|
+
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
88
89
|
|
|
89
90
|
import LogoUploadModal from './LogoUploadModal.vue';
|
|
90
91
|
import UploadYourLogoDropzone from '../UploadYourLogoDropzone/UploadYourLogoDropzone.vue';
|
|
@@ -127,6 +128,11 @@ export default {
|
|
|
127
128
|
default: false,
|
|
128
129
|
},
|
|
129
130
|
},
|
|
131
|
+
setup() {
|
|
132
|
+
return {
|
|
133
|
+
uploadYourLogoTr,
|
|
134
|
+
};
|
|
135
|
+
},
|
|
130
136
|
data() {
|
|
131
137
|
return {
|
|
132
138
|
currentStep: this.useDropzone ? 0 : 1,
|
|
@@ -145,9 +151,9 @@ export default {
|
|
|
145
151
|
currentStepProgressLabel() {
|
|
146
152
|
if (this.includeDropzoneInModal) {
|
|
147
153
|
const currentStepDisplay = this.currentStep === 0 ? 1 : this.currentStep;
|
|
148
|
-
return
|
|
154
|
+
return this.uploadYourLogoTr('stepOf', { CURRENT: currentStepDisplay, TOTAL: 5 });
|
|
149
155
|
}
|
|
150
|
-
return
|
|
156
|
+
return this.uploadYourLogoTr('stepOf', { CURRENT: this.currentStep - 1, TOTAL: 4 });
|
|
151
157
|
},
|
|
152
158
|
hasError() {
|
|
153
159
|
return !!this.errorMessage;
|
|
@@ -175,7 +181,7 @@ export default {
|
|
|
175
181
|
handler() {
|
|
176
182
|
if (this.logoFile) {
|
|
177
183
|
this.errorMessage =
|
|
178
|
-
this.logoFile.file.size > Errors.MAX_BYO_FILE_SIZE ?
|
|
184
|
+
this.logoFile.file.size > Errors.MAX_BYO_FILE_SIZE ? uploadYourLogoTr('maxByoFileErrorMessage') : null;
|
|
179
185
|
}
|
|
180
186
|
},
|
|
181
187
|
},
|
|
@@ -191,7 +197,7 @@ export default {
|
|
|
191
197
|
if (typeof err.response?.data?.errorMessage === 'string' && err.response?.data?.errorMessage !== '') {
|
|
192
198
|
this.errorMessage = err.response.data.errorMessage;
|
|
193
199
|
} else {
|
|
194
|
-
this.errorMessage =
|
|
200
|
+
this.errorMessage = uploadYourLogoTr('genericByoErrorMessage');
|
|
195
201
|
}
|
|
196
202
|
this.currentStep = null;
|
|
197
203
|
},
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uploadYourLogo" : {
|
|
3
|
+
"uploadYourLogoText" : "Laden Sie Ihr Logo hoch",
|
|
4
|
+
"disclaimerText" : "Bitte stellen Sie sicher, dass Sie über die Nutzungsrechte für alle hochgeladenen Bilder verfügen.",
|
|
5
|
+
"generatingDesigns" : "Designs werden erstellt ...",
|
|
6
|
+
"uploadingAndConverting" : "Ihr Logo wird hochgeladen und konvertiert ...",
|
|
7
|
+
"stepOf" : "Schritt {{CURRENT}} von {{TOTAL}}",
|
|
8
|
+
"uploadError" : "Fehler beim Hochladen",
|
|
9
|
+
"cancel" : "Abbrechen",
|
|
10
|
+
"continue" : "Weiter",
|
|
11
|
+
"back" : "Zurück",
|
|
12
|
+
"no" : "Nein",
|
|
13
|
+
"yes" : "Ja",
|
|
14
|
+
"businessName" : "Name des Unternehmens",
|
|
15
|
+
"businessNameDescription" : "Geben Sie Ihren Logotext oder Unternehmensnamen ein",
|
|
16
|
+
"cropYourLogo" : "Schneiden Sie Ihr Logo zu",
|
|
17
|
+
"cropDescription" : "Schneiden Sie Ihr Logo-Design so zu, dass es auf die Arbeitsfläche unseres Logo-Erstellers passt",
|
|
18
|
+
"logoPreview" : "Logo-Vorschau",
|
|
19
|
+
"logoPreviewDescription" : "Ihr Logo sieht großartig aus! Helfen Sie uns bei der Einrichtung Ihres Logos, indem Sie die nächsten Schritte ausführen.",
|
|
20
|
+
"primaryTextColor" : "Primäre Textfarbe",
|
|
21
|
+
"primaryTextColorDescription" : "Helfen Sie uns bei der Einrichtung Ihres Logos, indem Sie die primäre Textfarbe bestätigen. Wählen Sie aus den verfügbaren Farben oder klicken Sie auf das Plus-Symbol, um eine weitere Farbe hinzuzufügen.",
|
|
22
|
+
"backgroundColor" : "Hintergrundfarbe",
|
|
23
|
+
"backgroundColorDescription" : "Helfen Sie uns bei der Einrichtung Ihres Logos, indem Sie die Hintergrundfarbe bestätigen. Wählen Sie aus den verfügbaren Farben oder klicken Sie auf das Plus-Symbol, um eine weitere Farbe hinzuzufügen.",
|
|
24
|
+
"colorsWarning" : "Ihre Text- und Hintergrundfarben sind zu ähnlich. Bitte wählen Sie eine deutlichere Paarung, um sicherzustellen, dass sie hochwertige Designs erstellen.",
|
|
25
|
+
"exitConfirmationTitle" : "Möchten Sie die Anwendung wirklich verlassen?",
|
|
26
|
+
"exitConfirmationDescription" : "Der Fortschritt Ihres Logo-Uploads in dieser Sitzung geht verloren",
|
|
27
|
+
"maxByoFileErrorMessage" : "Ihre Datei überschreitet die maximale Größe von 25 MB. Bitte wählen Sie eine kleinere Datei.",
|
|
28
|
+
"genericByoErrorMessage" : "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es erneut.",
|
|
29
|
+
"dropYourFileHere" : "Legen Sie Ihre Datei hier ab oder",
|
|
30
|
+
"clickToUpload" : "klicken Sie hier, um eine Datei hochzuladen.",
|
|
31
|
+
"acceptedFiles" : "Wir akzeptieren PNG-, JPG-, SVG- und EPS-Dateien bis zu 25 MB.",
|
|
32
|
+
"wrongUploadType" : "Sie können Dateien dieses Typs nicht hochladen."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uploadYourLogo" : {
|
|
3
|
+
"uploadYourLogoText" : "Sube tu logo",
|
|
4
|
+
"disclaimerText" : "Asegúrate de que tienes derecho a usar cualquier imagen que subas.",
|
|
5
|
+
"generatingDesigns" : "Generando diseños...",
|
|
6
|
+
"uploadingAndConverting" : "Subiendo y convirtiendo tu logo...",
|
|
7
|
+
"stepOf" : "Paso {{CURRENT}} de {{TOTAL}}",
|
|
8
|
+
"uploadError" : "Error de carga",
|
|
9
|
+
"cancel" : "Cancelar",
|
|
10
|
+
"continue" : "Continuar",
|
|
11
|
+
"back" : "Volver",
|
|
12
|
+
"no" : "No",
|
|
13
|
+
"yes" : "Sí",
|
|
14
|
+
"businessName" : "Nombre del negocio",
|
|
15
|
+
"businessNameDescription" : "Introduce el texto de tu logo o el nombre de tu negocio",
|
|
16
|
+
"cropYourLogo" : "Recorta tu logo",
|
|
17
|
+
"cropDescription" : "Recorta tu diseño de logo para que encaje en nuestro lienzo del creador de logos",
|
|
18
|
+
"logoPreview" : "Vista previa del logo",
|
|
19
|
+
"logoPreviewDescription" : "¡Tu logo tiene un aspecto genial! Ayúdanos a configurar tu logo completando los siguientes pasos.",
|
|
20
|
+
"primaryTextColor" : "Color principal del texto",
|
|
21
|
+
"primaryTextColorDescription" : "Ayúdanos a configurar tu logo confirmando el color principal del texto. Elige entre los colores disponibles o haz clic en el icono de más (+) para añadir otro.",
|
|
22
|
+
"backgroundColor" : "Color de fondo",
|
|
23
|
+
"backgroundColorDescription" : "Ayúdanos a configurar tu logo confirmando el color de fondo. Elige entre los colores disponibles o haz clic en el icono de más (+) para añadir otro.",
|
|
24
|
+
"colorsWarning" : "Los colores del texto y del fondo son demasiado similares. Elige una combinación más diferente para conseguir crear diseños de calidad.",
|
|
25
|
+
"exitConfirmationTitle" : "¿Estás seguro de que quieres salir?",
|
|
26
|
+
"exitConfirmationDescription" : "El progreso de carga de tu logo en esta sesión se perderá.",
|
|
27
|
+
"maxByoFileErrorMessage" : "Tu archivo supera el tamaño máximo de 25 MB. Elige un archivo más pequeño.",
|
|
28
|
+
"genericByoErrorMessage" : "Se ha producido un error inesperado. Inténtalo de nuevo.",
|
|
29
|
+
"dropYourFileHere" : "Suelta el archivo aquí o",
|
|
30
|
+
"clickToUpload" : "haz clic para subirlo",
|
|
31
|
+
"acceptedFiles" : "Aceptamos archivos PNG, JPG, SVG o EPS de hasta 25 MB",
|
|
32
|
+
"wrongUploadType" : "No puedes subir archivos de este tipo."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uploadYourLogo" : {
|
|
3
|
+
"uploadYourLogoText" : "Téléchargez votre logo",
|
|
4
|
+
"disclaimerText" : "Veuillez vous assurer que vous avez le droit d'utiliser toute image que vous téléchargez.",
|
|
5
|
+
"generatingDesigns" : "Génération de designs...",
|
|
6
|
+
"uploadingAndConverting" : "Téléchargement et conversion de votre logo...",
|
|
7
|
+
"stepOf" : "Étape {{CURRENT}} sur {{TOTAL}}",
|
|
8
|
+
"uploadError" : "Erreur de téléchargement",
|
|
9
|
+
"cancel" : "Annuler",
|
|
10
|
+
"continue" : "Continuer",
|
|
11
|
+
"back" : "Retour",
|
|
12
|
+
"no" : "Non",
|
|
13
|
+
"yes" : "Oui",
|
|
14
|
+
"businessName" : "Nom de l’entreprise",
|
|
15
|
+
"businessNameDescription" : "Saisissez le texte de votre logo ou le nom de votre entreprise",
|
|
16
|
+
"cropYourLogo" : "Recadrez votre logo",
|
|
17
|
+
"cropDescription" : "Recadrez votre logo pour qu'il s'adapte au canevas de notre outil de création de logos",
|
|
18
|
+
"logoPreview" : "Aperçu du logo",
|
|
19
|
+
"logoPreviewDescription" : "Votre logo est magnifique ! Aidez-nous à configurer votre logo en suivant les étapes suivantes.",
|
|
20
|
+
"primaryTextColor" : "Couleur principale du texte",
|
|
21
|
+
"primaryTextColorDescription" : "Aidez-nous à configurer votre logo en confirmant la couleur principale du texte. Choisissez parmi les couleurs disponibles ou cliquez sur l'icône plus pour en ajouter une autre.",
|
|
22
|
+
"backgroundColor" : "Couleur d’arrière-plan",
|
|
23
|
+
"backgroundColorDescription" : "Aidez-nous à configurer votre logo en confirmant la couleur d'arrière-plan. Choisissez parmi les couleurs disponibles ou cliquez sur l'icône plus pour en ajouter une autre.",
|
|
24
|
+
"colorsWarning" : "Les couleurs de votre texte et de votre arrière-plan sont trop semblables. Veuillez choisir une combinaison plus distincte pour garantir un design de qualité.",
|
|
25
|
+
"exitConfirmationTitle" : "Voulez-vous vraiment quitter ?",
|
|
26
|
+
"exitConfirmationDescription" : "La progression du téléchargement de votre logo au cours de cette session sera perdue",
|
|
27
|
+
"maxByoFileErrorMessage" : "Votre fichier dépasse la taille maximale de 25 Mo. Veuillez choisir un fichier plus petit.",
|
|
28
|
+
"genericByoErrorMessage" : "Une erreur inattendue s'est produite. Veuillez réessayer.",
|
|
29
|
+
"dropYourFileHere" : "Déposez votre fichier ici ou",
|
|
30
|
+
"clickToUpload" : "cliquez pour télécharger",
|
|
31
|
+
"acceptedFiles" : "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
|
|
32
|
+
"wrongUploadType" : "Vous ne pouvez pas télécharger des fichiers de ce type."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uploadYourLogo": {
|
|
3
|
+
"uploadYourLogoText": "Upload your logo",
|
|
4
|
+
"disclaimerText": "Please ensure you have the right to use any image you upload.",
|
|
5
|
+
"generatingDesigns": "Generating Designs...",
|
|
6
|
+
"uploadingAndConverting": "Uploading and converting your logo...",
|
|
7
|
+
"stepOf": "Step {{CURRENT}} of {{TOTAL}}",
|
|
8
|
+
"uploadError": "Upload Error",
|
|
9
|
+
"cancel": "Cancel",
|
|
10
|
+
"continue": "Continue",
|
|
11
|
+
"back": "Back",
|
|
12
|
+
"no": "No",
|
|
13
|
+
"yes": "Yes",
|
|
14
|
+
"businessName": "Business Name",
|
|
15
|
+
"businessNameDescription": "Enter your logo text or business name",
|
|
16
|
+
"cropYourLogo": "Crop your logo",
|
|
17
|
+
"cropDescription": "Crop your logo design to fit our logo maker canvas",
|
|
18
|
+
"logoPreview": "Logo preview",
|
|
19
|
+
"logoPreviewDescription": "Your logo looks great! Help us setup your logo by completing the next steps.",
|
|
20
|
+
"primaryTextColor": "Primary text color",
|
|
21
|
+
"primaryTextColorDescription": "Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.",
|
|
22
|
+
"backgroundColor": "Background color",
|
|
23
|
+
"backgroundColorDescription": "Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.",
|
|
24
|
+
"colorsWarning": "Your text and background colors are too similar. Please choose a more distinct pairing to ensure they create quality designs.",
|
|
25
|
+
"exitConfirmationTitle": "Are you sure you want to exit?",
|
|
26
|
+
"exitConfirmationDescription": "Your logo upload progress in this session will be lost",
|
|
27
|
+
"maxByoFileErrorMessage": "Your file exceeds the maximum size of 25MB. Please choose a smaller file.",
|
|
28
|
+
"genericByoErrorMessage": "An unexpected error occured. Please try again.",
|
|
29
|
+
|
|
30
|
+
"dropYourFileHere": "Drop your file here or",
|
|
31
|
+
"clickToUpload": "click to upload",
|
|
32
|
+
"acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
|
|
33
|
+
"wrongUploadType": "You can't upload files of this type."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"uploadYourLogo" : {
|
|
3
|
+
"uploadYourLogoText" : "Carregue o seu logótipo",
|
|
4
|
+
"disclaimerText" : "Certifique-se de que tem os direitos de utilização de todas as imagens que carregar.",
|
|
5
|
+
"generatingDesigns" : "A gerar designs…",
|
|
6
|
+
"uploadingAndConverting" : "A carregar e a converter o seu logótipo…",
|
|
7
|
+
"stepOf" : "Passo {{CURRENT}} de {{TOTAL}}",
|
|
8
|
+
"uploadError" : "Erro ao carregar",
|
|
9
|
+
"cancel" : "Cancelar",
|
|
10
|
+
"continue" : "Continuar",
|
|
11
|
+
"back" : "Voltar",
|
|
12
|
+
"no" : "Não",
|
|
13
|
+
"yes" : "Sim",
|
|
14
|
+
"businessName" : "Nome da empresa",
|
|
15
|
+
"businessNameDescription" : "Introduza o texto do seu logótipo ou o nome da sua empresa",
|
|
16
|
+
"cropYourLogo" : "Recorte o seu logótipo",
|
|
17
|
+
"cropDescription" : "Recorte o design de logótipo para caber no ecrã do criador de logótipos",
|
|
18
|
+
"logoPreview" : "Pré-visualização do logótipo",
|
|
19
|
+
"logoPreviewDescription" : "O seu logótipo está com um ótimo aspeto! Ajude-nos a configurar o seu logótipo concluindo os próximos passos.",
|
|
20
|
+
"primaryTextColor" : "Cor principal do texto",
|
|
21
|
+
"primaryTextColorDescription" : "Ajude-nos a configurar o seu logótipo confirmando a cor principal do texto. Escolha entre as cores disponíveis ou clique no ícone de mais para adicionar outra.",
|
|
22
|
+
"backgroundColor" : "Cor de fundo",
|
|
23
|
+
"backgroundColorDescription" : "Ajude-nos a configurar o seu logótipo confirmando a cor do fundo. Escolha entre as cores disponíveis ou clique no ícone de mais para adicionar outra.",
|
|
24
|
+
"colorsWarning" : "As suas cores de texto e de fundo são demasiado semelhantes. Escolha uma combinação mais distinta para garantir que criamos designs de qualidade.",
|
|
25
|
+
"exitConfirmationTitle" : "Tem a certeza de que pretende sair?",
|
|
26
|
+
"exitConfirmationDescription" : "O progresso do carregamento do seu logótipo nesta sessão será perdido",
|
|
27
|
+
"maxByoFileErrorMessage" : "O seu ficheiro excede o tamanho máximo de 25 MB. Escolha um ficheiro mais pequeno.",
|
|
28
|
+
"genericByoErrorMessage" : "Ocorreu um erro inesperado. Tente novamente.",
|
|
29
|
+
"dropYourFileHere" : "Arraste o seu ficheiro aqui ou",
|
|
30
|
+
"clickToUpload" : "clique para carregar",
|
|
31
|
+
"acceptedFiles" : "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
|
|
32
|
+
"wrongUploadType" : "Não pode carregar ficheiros deste tipo."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -37,6 +37,8 @@ const tr = (key, valuesToInterpolate = {}) => {
|
|
|
37
37
|
return translated;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
+
const uploadYourLogoTr = (key, valuesToInterpolate = {}) => tr(`uploadYourLogo.${key}`, valuesToInterpolate);
|
|
41
|
+
|
|
40
42
|
const publishBrandPageModalTr = (key, valuesToInterpolate = {}) =>
|
|
41
43
|
tr(`publishBrandPageModal.${key}`, valuesToInterpolate);
|
|
42
44
|
|
|
@@ -61,6 +63,8 @@ const sharedPaymentConfigTr = (key, valuesToInterpolate = {}) => tr(`sharedPayme
|
|
|
61
63
|
|
|
62
64
|
const priceTr = (key, valuesToInterpolate = {}) => tr(`price.${key}`, valuesToInterpolate);
|
|
63
65
|
|
|
66
|
+
const upsellModalComponentsTr = (key, valuesToInterpolate = {}) => tr(`upsellModalComponents.${key}`, valuesToInterpolate);
|
|
67
|
+
|
|
64
68
|
const getCurrentLocale = () => {
|
|
65
69
|
return i18next.language || 'en-US';
|
|
66
70
|
};
|
|
@@ -76,6 +80,8 @@ export {
|
|
|
76
80
|
sellDomainNameModalApplicationTr,
|
|
77
81
|
sellDomainNameListModalTr,
|
|
78
82
|
sellDomainNameListTr,
|
|
83
|
+
uploadYourLogoTr,
|
|
79
84
|
sharedPaymentConfigTr,
|
|
80
85
|
priceTr,
|
|
86
|
+
upsellModalComponentsTr,
|
|
81
87
|
};
|