@designcrowd/fe-shared-lib 1.2.9-ml-currency → 1.2.9-shared-branch-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/Dockerfile +1 -1
- package/dist/css/tailwind-brandCrowd.css +37 -3
- package/dist/css/tailwind-brandPage.css +33 -3
- package/dist/css/tailwind-crazyDomains.css +37 -3
- package/dist/css/tailwind-designCom.css +37 -3
- package/dist/css/tailwind-designCrowd.css +37 -3
- package/package.json +2 -2
- package/public/css/tailwind-brandCrowd.css +2411 -0
- package/public/css/tailwind-brandPage.css +2095 -0
- package/public/css/tailwind-crazyDomains.css +2411 -0
- package/public/css/tailwind-designCom.css +2411 -0
- package/public/css/tailwind-designCrowd.css +2411 -0
- package/src/atoms/components/Price/Price.vue +0 -17
- package/src/bundleTranslation.js +1 -0
- package/src/bundles/bundled-translations.de-DE.json +8 -0
- package/src/bundles/bundled-translations.es-ES.json +8 -0
- package/src/bundles/bundled-translations.fr-FR.json +8 -0
- package/src/bundles/bundled-translations.json +8 -0
- package/src/bundles/bundled-translations.pt-PT.json +8 -0
- package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +5 -4
- package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +5 -2
- package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +4 -1
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +10 -0
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +10 -0
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +10 -0
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +10 -0
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +10 -0
- package/src/useSharedLibTranslate.js +3 -1
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
</span>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
|
|
9
|
-
import i18next from "i18next";
|
|
10
|
-
import {setSharedLibLocaleAsync} from "../../../useSharedLibTranslate";
|
|
11
|
-
|
|
12
8
|
export default {
|
|
13
9
|
props: {
|
|
14
10
|
amount: {
|
|
@@ -26,11 +22,6 @@ export default {
|
|
|
26
22
|
required: false,
|
|
27
23
|
default: null,
|
|
28
24
|
},
|
|
29
|
-
localeCurrency: {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false,
|
|
32
|
-
default: null,
|
|
33
|
-
},
|
|
34
25
|
fraction: {
|
|
35
26
|
type: [Number, String],
|
|
36
27
|
required: false,
|
|
@@ -57,9 +48,6 @@ export default {
|
|
|
57
48
|
default: false,
|
|
58
49
|
},
|
|
59
50
|
},
|
|
60
|
-
setup() {
|
|
61
|
-
setSharedLibLocaleAsync();
|
|
62
|
-
},
|
|
63
51
|
computed: {
|
|
64
52
|
amountFormatted() {
|
|
65
53
|
if (this.isDomainCredit) {
|
|
@@ -70,11 +58,6 @@ export default {
|
|
|
70
58
|
return 'Free';
|
|
71
59
|
}
|
|
72
60
|
|
|
73
|
-
if (this.localeCurrency != null)
|
|
74
|
-
{
|
|
75
|
-
return i18next.t('{{val, number}}', { ns: 'fe-shared-lib', val: this.amount, lng: this.localeCurrency, minimumFractionDigits: this.fraction });
|
|
76
|
-
}
|
|
77
|
-
|
|
78
61
|
const parsedAmount = Number.parseFloat(this.amount);
|
|
79
62
|
|
|
80
63
|
if (Number.isNaN(parsedAmount)) {
|
package/src/bundleTranslation.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"sharedPaymentConfig": {
|
|
3
|
+
"onboardingIncomplete": "Das Onboarding wurde noch nicht abgeschlossen.",
|
|
4
|
+
"pendingVerification": "Ausstehende Verifizierung",
|
|
5
|
+
"connected": "Verbunden",
|
|
6
|
+
"inactive": "Inaktiv",
|
|
7
|
+
"addPaymentProvider": "Zahlungsanbieter hinzufügen",
|
|
8
|
+
"deletePaymentMethod": "Zahlungsmethode löschen"
|
|
9
|
+
},
|
|
2
10
|
"publishBrandPageModal": {
|
|
3
11
|
"firstTimePublishHeaderLabel": "Legen Sie die URL für {{brandPageDisplayName}} fest",
|
|
4
12
|
"sitePublishedLabel": "Seite veröffentlicht!",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"sharedPaymentConfig": {
|
|
3
|
+
"onboardingIncomplete": "Incorporación incompleta",
|
|
4
|
+
"pendingVerification": "Pendiente de verificación",
|
|
5
|
+
"connected": "Conectado",
|
|
6
|
+
"inactive": "Inactivo",
|
|
7
|
+
"addPaymentProvider": "Añadir proveedor de pago",
|
|
8
|
+
"deletePaymentMethod": "Eliminar método de pago"
|
|
9
|
+
},
|
|
2
10
|
"publishBrandPageModal": {
|
|
3
11
|
"firstTimePublishHeaderLabel": "Establece la URL para {{brandPageDisplayName}}",
|
|
4
12
|
"sitePublishedLabel": "¡Sitio publicado!",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"sharedPaymentConfig": {
|
|
3
|
+
"onboardingIncomplete": "Inscription incomplète",
|
|
4
|
+
"pendingVerification": "Vérification en attente",
|
|
5
|
+
"connected": "Connecté",
|
|
6
|
+
"inactive": "Inactif",
|
|
7
|
+
"addPaymentProvider": "Ajouter un fournisseur de paiement",
|
|
8
|
+
"deletePaymentMethod": "Supprimer le mode de paiement"
|
|
9
|
+
},
|
|
2
10
|
"publishBrandPageModal": {
|
|
3
11
|
"firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
|
|
4
12
|
"sitePublishedLabel": "Site publié !",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"sharedPaymentConfig": {
|
|
3
|
+
"onboardingIncomplete": "Onboarding Incomplete",
|
|
4
|
+
"pendingVerification": "Pending Verification",
|
|
5
|
+
"connected": "Connected",
|
|
6
|
+
"inactive": "Inactive",
|
|
7
|
+
"addPaymentProvider": "Add Payment Provider",
|
|
8
|
+
"deletePaymentMethod": "Delete payment method"
|
|
9
|
+
},
|
|
2
10
|
"publishBrandPageModal": {
|
|
3
11
|
"firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
|
|
4
12
|
"sitePublishedLabel": "Site published!",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"sharedPaymentConfig": {
|
|
3
|
+
"onboardingIncomplete": "Integração incompleta",
|
|
4
|
+
"pendingVerification": "Verificação Pendente",
|
|
5
|
+
"connected": "Ligado",
|
|
6
|
+
"inactive": "Inativo",
|
|
7
|
+
"addPaymentProvider": "Adicionar fornecedor de pagamentos",
|
|
8
|
+
"deletePaymentMethod": "Eliminar método de pagamento"
|
|
9
|
+
},
|
|
2
10
|
"publishBrandPageModal": {
|
|
3
11
|
"firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
|
|
4
12
|
"sitePublishedLabel": "Site publicado!",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import vClickOutside from 'click-outside-vue3';
|
|
2
2
|
import brandPageApiClient from '../../clients/brand-page-api.client';
|
|
3
|
+
import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
|
|
3
4
|
|
|
4
5
|
export const paymentConfigStatuses = Object.freeze({
|
|
5
6
|
active: 'Active',
|
|
@@ -38,13 +39,13 @@ export default {
|
|
|
38
39
|
getPaymentConfigStatusDisplayText(paymentConfigStatus) {
|
|
39
40
|
switch (paymentConfigStatus) {
|
|
40
41
|
case paymentConfigStatuses.pendingPreOnboarding:
|
|
41
|
-
return '
|
|
42
|
+
return sharedPaymentConfigTr('onboardingIncomplete');
|
|
42
43
|
case paymentConfigStatuses.pendingPostOnboarding:
|
|
43
|
-
return '
|
|
44
|
+
return sharedPaymentConfigTr('pendingVerification');
|
|
44
45
|
case paymentConfigStatuses.active:
|
|
45
|
-
return '
|
|
46
|
+
return sharedPaymentConfigTr('connected');
|
|
46
47
|
case paymentConfigStatuses.unactivatedByCustomer:
|
|
47
|
-
return '
|
|
48
|
+
return sharedPaymentConfigTr('inactive');
|
|
48
49
|
default:
|
|
49
50
|
if (process.env.NODE_ENV !== 'production') {
|
|
50
51
|
console.warn(`Unsupported payment config status ${paymentConfigStatus}`);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
<Button
|
|
7
7
|
v-if="isAddPaymentProviderButtonVisible"
|
|
8
|
-
label="
|
|
8
|
+
:label="sharedPaymentConfigTr('addPaymentProvider')"
|
|
9
9
|
size="small"
|
|
10
10
|
variant="outline"
|
|
11
11
|
@on-click="onAddPaymentProviderButtonClick"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<DropdownItem v-if="showAddPaymentProvider" class="tw-border-t-2" @click="onAddPaymentProviderButtonClick">
|
|
44
44
|
<Button
|
|
45
45
|
:full-width="true"
|
|
46
|
-
label="
|
|
46
|
+
:label="sharedPaymentConfigTr('addPaymentProvider')"
|
|
47
47
|
size="small"
|
|
48
48
|
variant="outline"
|
|
49
49
|
@on-click="onAddPaymentProviderButtonClick"
|
|
@@ -60,6 +60,7 @@ import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
|
|
|
60
60
|
import Pill from '../../../../src/atoms/components/Pill/Pill.vue';
|
|
61
61
|
|
|
62
62
|
import PaymentConfigMixin, { paymentConfigStatuses } from './PaymentConfig.mixin';
|
|
63
|
+
import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
|
|
63
64
|
|
|
64
65
|
export default {
|
|
65
66
|
components: {
|
|
@@ -109,6 +110,8 @@ export default {
|
|
|
109
110
|
}
|
|
110
111
|
},
|
|
111
112
|
methods: {
|
|
113
|
+
sharedPaymentConfigTr,
|
|
114
|
+
|
|
112
115
|
onAddPaymentProviderButtonClick() {
|
|
113
116
|
this.$emit('on-add-payment-provider-click');
|
|
114
117
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
@click="onClickDeleteConfirmation(paymentConfig.id)"
|
|
49
49
|
>
|
|
50
50
|
<span class="tw-whitespace-nowrap tw-flex tw-gap-2"
|
|
51
|
-
><Icon name="delete" size="sm" />
|
|
51
|
+
><Icon name="delete" size="sm" />{{ sharedPaymentConfigTr('deletePaymentMethod') }}</span
|
|
52
52
|
>
|
|
53
53
|
</li>
|
|
54
54
|
</ul>
|
|
@@ -71,6 +71,7 @@ import PaymentConfigDeleteConfigModal from './PaymentConfigDeleteConfigModal.vue
|
|
|
71
71
|
import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
|
|
72
72
|
|
|
73
73
|
import PaymentConfigMixin from './PaymentConfig.mixin';
|
|
74
|
+
import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
|
|
74
75
|
|
|
75
76
|
export default {
|
|
76
77
|
components: {
|
|
@@ -89,6 +90,8 @@ export default {
|
|
|
89
90
|
};
|
|
90
91
|
},
|
|
91
92
|
methods: {
|
|
93
|
+
sharedPaymentConfigTr,
|
|
94
|
+
|
|
92
95
|
onClickStripeOptions(index) {
|
|
93
96
|
this.activeStripeOptionIndex = this.activeStripeOptionIndex === index ? null : index;
|
|
94
97
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sharedPaymentConfig" : {
|
|
3
|
+
"onboardingIncomplete" : "Das Onboarding wurde noch nicht abgeschlossen.",
|
|
4
|
+
"pendingVerification" : "Ausstehende Verifizierung",
|
|
5
|
+
"connected" : "Verbunden",
|
|
6
|
+
"inactive" : "Inaktiv",
|
|
7
|
+
"addPaymentProvider" : "Zahlungsanbieter hinzufügen",
|
|
8
|
+
"deletePaymentMethod" : "Zahlungsmethode löschen"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sharedPaymentConfig" : {
|
|
3
|
+
"onboardingIncomplete" : "Incorporación incompleta",
|
|
4
|
+
"pendingVerification" : "Pendiente de verificación",
|
|
5
|
+
"connected" : "Conectado",
|
|
6
|
+
"inactive" : "Inactivo",
|
|
7
|
+
"addPaymentProvider" : "Añadir proveedor de pago",
|
|
8
|
+
"deletePaymentMethod" : "Eliminar método de pago"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sharedPaymentConfig" : {
|
|
3
|
+
"onboardingIncomplete" : "Inscription incomplète",
|
|
4
|
+
"pendingVerification" : "Vérification en attente",
|
|
5
|
+
"connected" : "Connecté",
|
|
6
|
+
"inactive" : "Inactif",
|
|
7
|
+
"addPaymentProvider" : "Ajouter un fournisseur de paiement",
|
|
8
|
+
"deletePaymentMethod" : "Supprimer le mode de paiement"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sharedPaymentConfig": {
|
|
3
|
+
"onboardingIncomplete": "Onboarding Incomplete",
|
|
4
|
+
"pendingVerification": "Pending Verification",
|
|
5
|
+
"connected": "Connected",
|
|
6
|
+
"inactive": "Inactive",
|
|
7
|
+
"addPaymentProvider": "Add Payment Provider",
|
|
8
|
+
"deletePaymentMethod": "Delete payment method"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sharedPaymentConfig" : {
|
|
3
|
+
"onboardingIncomplete" : "Integração incompleta",
|
|
4
|
+
"pendingVerification" : "Verificação Pendente",
|
|
5
|
+
"connected" : "Ligado",
|
|
6
|
+
"inactive" : "Inativo",
|
|
7
|
+
"addPaymentProvider" : "Adicionar fornecedor de pagamentos",
|
|
8
|
+
"deletePaymentMethod" : "Eliminar método de pagamento"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -55,6 +55,8 @@ const sellDomainNameListModalTr = (key, valuesToInterpolate = {}) =>
|
|
|
55
55
|
|
|
56
56
|
const sellDomainNameListTr = (key, valuesToInterpolate = {}) => tr(`sellDomainNameList.${key}`, valuesToInterpolate);
|
|
57
57
|
|
|
58
|
+
const sharedPaymentConfigTr = (key, valuesToInterpolate = {}) => tr(`sharedPaymentConfig.${key}`, valuesToInterpolate);
|
|
59
|
+
|
|
58
60
|
const getCurrentLocale = () => {
|
|
59
61
|
return i18next.language || 'en-US';
|
|
60
62
|
};
|
|
@@ -70,5 +72,5 @@ export {
|
|
|
70
72
|
sellDomainNameModalApplicationTr,
|
|
71
73
|
sellDomainNameListModalTr,
|
|
72
74
|
sellDomainNameListTr,
|
|
75
|
+
sharedPaymentConfigTr,
|
|
73
76
|
};
|
|
74
|
-
|