@designcrowd/fe-shared-lib 1.2.20-rr-test-4 → 1.2.20

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.
Files changed (24) hide show
  1. package/dist/css/tailwind-brandCrowd.css +11 -3
  2. package/dist/css/tailwind-brandPage.css +11 -3
  3. package/dist/css/tailwind-crazyDomains.css +11 -3
  4. package/dist/css/tailwind-designCom.css +11 -3
  5. package/dist/css/tailwind-designCrowd.css +11 -3
  6. package/package.json +1 -1
  7. package/public/css/tailwind-brandCrowd.css +2411 -0
  8. package/public/css/tailwind-brandPage.css +2095 -0
  9. package/public/css/tailwind-crazyDomains.css +2411 -0
  10. package/public/css/tailwind-designCom.css +2411 -0
  11. package/public/css/tailwind-designCrowd.css +2411 -0
  12. package/src/bundles/bundled-translations.de-DE.json +6 -0
  13. package/src/bundles/bundled-translations.es-ES.json +6 -0
  14. package/src/bundles/bundled-translations.fr-FR.json +6 -0
  15. package/src/bundles/bundled-translations.json +6 -0
  16. package/src/bundles/bundled-translations.pt-PT.json +6 -0
  17. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +2 -10
  18. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +15 -5
  19. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.de-DE.json +8 -0
  20. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.es-ES.json +8 -0
  21. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.fr-FR.json +8 -0
  22. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.json +8 -0
  23. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.pt-PT.json +8 -0
  24. package/src/useSharedLibTranslate.js +6 -2
@@ -92,5 +92,11 @@
92
92
  "clickToUpload": "klicken Sie hier, um eine Datei hochzuladen.",
93
93
  "acceptedFiles": "Wir akzeptieren PNG-, JPG-, SVG- und EPS-Dateien bis zu 25 MB.",
94
94
  "wrongUploadType": "Sie können Dateien dieses Typs nicht hochladen."
95
+ },
96
+ "uploadLogoSearchResultCard": {
97
+ "replace": "Ersetzen",
98
+ "replaceLogo": "Logo ersetzen",
99
+ "delete": "Löschen",
100
+ "deleteLogo": "Logo löschen"
95
101
  }
96
102
  }
@@ -92,5 +92,11 @@
92
92
  "clickToUpload": "haz clic para subirlo",
93
93
  "acceptedFiles": "Aceptamos archivos PNG, JPG, SVG o EPS de hasta 25 MB",
94
94
  "wrongUploadType": "No puedes subir archivos de este tipo."
95
+ },
96
+ "uploadLogoSearchResultCard": {
97
+ "replace": "Sustituir",
98
+ "replaceLogo": "Reemplaza el logo",
99
+ "delete": "Eliminar",
100
+ "deleteLogo": "Elimina el logo"
95
101
  }
96
102
  }
@@ -92,5 +92,11 @@
92
92
  "clickToUpload": "cliquez pour télécharger",
93
93
  "acceptedFiles": "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
94
94
  "wrongUploadType": "Vous ne pouvez pas télécharger des fichiers de ce type."
95
+ },
96
+ "uploadLogoSearchResultCard": {
97
+ "replace": "Remplacer",
98
+ "replaceLogo": "Remplacez le logo",
99
+ "delete": "Supprimer",
100
+ "deleteLogo": "Supprimez le logo"
95
101
  }
96
102
  }
@@ -92,5 +92,11 @@
92
92
  "clickToUpload": "click to upload",
93
93
  "acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
94
94
  "wrongUploadType": "You can't upload files of this type."
95
+ },
96
+ "uploadLogoSearchResultCard": {
97
+ "replace": "Replace",
98
+ "replaceLogo": "Replace Logo",
99
+ "delete": "Delete",
100
+ "deleteLogo": "Delete Logo"
95
101
  }
96
102
  }
@@ -92,5 +92,11 @@
92
92
  "clickToUpload": "clique para carregar",
93
93
  "acceptedFiles": "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
94
94
  "wrongUploadType": "Não pode carregar ficheiros deste tipo."
95
+ },
96
+ "uploadLogoSearchResultCard": {
97
+ "replace": "Substituir",
98
+ "replaceLogo": "Substituir logótipo",
99
+ "delete": "Eliminar",
100
+ "deleteLogo": "Eliminar Logótipo"
95
101
  }
96
102
  }
@@ -66,7 +66,7 @@
66
66
  import Button from '../../../atoms/components/Button/Button.vue';
67
67
  import Price from '../../../atoms/components/Price/Price.vue';
68
68
  import Events from '../../constants/event-constants';
69
- import { sellDomainNameListTr, getCurrentLocale } from '../../../useSharedLibTranslate';
69
+ import { sellDomainNameListTr } from '../../../useSharedLibTranslate';
70
70
 
71
71
  export default {
72
72
  components: {
@@ -116,11 +116,6 @@ export default {
116
116
  costPriceLabel: sellDomainNameListTr('costPriceLabel'),
117
117
  };
118
118
  },
119
- computed: {
120
- currentLocale() {
121
- return getCurrentLocale();
122
- },
123
- },
124
119
  methods: {
125
120
  onBuyNowClick(domain) {
126
121
  const request = domain;
@@ -134,10 +129,7 @@ export default {
134
129
  }),
135
130
  );
136
131
  if (this.isUserAuthenticated) {
137
- const { checkoutUrl } = domain;
138
- const url = new URL(checkoutUrl, window.location.origin);
139
- url.searchParams.set('locale', this.currentLocale);
140
- window.location.href = url.toString();
132
+ window.location.href = domain.checkoutUrl;
141
133
  }
142
134
  },
143
135
  getPrice(domain) {
@@ -55,7 +55,7 @@
55
55
  }"
56
56
  >
57
57
  <label for="replace-logo-file" class="tw-sr-only">
58
- Replace logo
58
+ {{ uploadLogoSearchResultCardTr('replaceLogo') }}
59
59
  <input
60
60
  id="replace-logo-file"
61
61
  ref="fileInput"
@@ -65,7 +65,7 @@
65
65
  />
66
66
  </label>
67
67
  <div
68
- class="tw-flex tw-items-center tw-justify-center"
68
+ class="tw-flex tw-items-center tw-justify-center tw-flex-col tw-gap-4"
69
69
  :class="{
70
70
  'md:tw-items-center': useLandscapeTile,
71
71
  'md:tw-flex-col': aspectRatio > 30 && useLandscapeTile,
@@ -81,7 +81,7 @@
81
81
  @on-click="onReplaceButtonClick"
82
82
  />
83
83
  <button
84
- class="tw-uppercase tw-ml-6 tw-text-xs tw-text-secondary tw-font-sans tw-font-bold"
84
+ class="tw-uppercase tw-text-xs tw-text-secondary tw-font-sans tw-font-bold"
85
85
  :class="{
86
86
  'md:tw-mt-3': useLandscapeTile && !extraWideLandscape,
87
87
  'md:tw-ml-0': useLandscapeTile,
@@ -102,6 +102,7 @@ import Button from '../../../../src/atoms/components/Button/Button.vue';
102
102
  import Events from '../../constants/event-constants';
103
103
  import API from '../../constants/api';
104
104
  import trackEvent from '../../helpers/tracking';
105
+ import { uploadLogoSearchResultCardTr } from '../../../useSharedLibTranslate';
105
106
 
106
107
  export default {
107
108
  components: {
@@ -131,6 +132,11 @@ export default {
131
132
  default: false,
132
133
  },
133
134
  },
135
+ setup() {
136
+ return {
137
+ uploadLogoSearchResultCardTr,
138
+ };
139
+ },
134
140
  data() {
135
141
  return {
136
142
  extraWideLandscape: this.useLandscapeTile && this.aspectRatio <= 30,
@@ -138,10 +144,14 @@ export default {
138
144
  },
139
145
  computed: {
140
146
  replaceButtonLabel() {
141
- return this.alternativeLayout ? 'Replace' : 'Replace Logo';
147
+ return this.alternativeLayout
148
+ ? this.uploadLogoSearchResultCardTr('replace')
149
+ : this.uploadLogoSearchResultCardTr('replaceLogo');
142
150
  },
143
151
  deleteButtonLabel() {
144
- return this.alternativeLayout ? 'Delete' : 'Delete Logo';
152
+ return this.alternativeLayout
153
+ ? this.uploadLogoSearchResultCardTr('delete')
154
+ : this.uploadLogoSearchResultCardTr('deleteLogo');
145
155
  },
146
156
  },
147
157
  methods: {
@@ -0,0 +1,8 @@
1
+ {
2
+ "uploadLogoSearchResultCard" : {
3
+ "replace" : "Ersetzen",
4
+ "replaceLogo" : "Logo ersetzen",
5
+ "delete" : "Löschen",
6
+ "deleteLogo" : "Logo löschen"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "uploadLogoSearchResultCard" : {
3
+ "replace" : "Sustituir",
4
+ "replaceLogo" : "Reemplaza el logo",
5
+ "delete" : "Eliminar",
6
+ "deleteLogo" : "Elimina el logo"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "uploadLogoSearchResultCard" : {
3
+ "replace" : "Remplacer",
4
+ "replaceLogo" : "Remplacez le logo",
5
+ "delete" : "Supprimer",
6
+ "deleteLogo" : "Supprimez le logo"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "uploadLogoSearchResultCard": {
3
+ "replace": "Replace",
4
+ "replaceLogo": "Replace Logo",
5
+ "delete": "Delete",
6
+ "deleteLogo": "Delete Logo"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "uploadLogoSearchResultCard" : {
3
+ "replace" : "Substituir",
4
+ "replaceLogo" : "Substituir logótipo",
5
+ "delete" : "Eliminar",
6
+ "deleteLogo" : "Eliminar Logótipo"
7
+ }
8
+ }
@@ -63,6 +63,9 @@ const sharedPaymentConfigTr = (key, valuesToInterpolate = {}) => tr(`sharedPayme
63
63
 
64
64
  const priceTr = (key, valuesToInterpolate = {}) => tr(`price.${key}`, valuesToInterpolate);
65
65
 
66
+ const uploadLogoSearchResultCardTr = (key, valuesToInterpolate = {}) =>
67
+ tr(`uploadLogoSearchResultCard.${key}`, valuesToInterpolate);
68
+
66
69
  const getCurrentLocale = () => {
67
70
  return i18next.language || 'en-US';
68
71
  };
@@ -93,7 +96,7 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
93
96
 
94
97
  const altAudAbbreviation = 'AU';
95
98
  if (showAbbreviation && !localeAmount.includes(abbreviationTrimmed)) {
96
- return localeAmount.replace(symbolTrimmed,`${abbreviationTrimmed}${symbolTrimmed}`);
99
+ return localeAmount.replace(symbolTrimmed, `${abbreviationTrimmed}${symbolTrimmed}`);
97
100
  } else if (!showAbbreviation && localeAmount.includes(altAudAbbreviation)) {
98
101
  return localeAmount.replace(altAudAbbreviation, '');
99
102
  } else if (!showAbbreviation && localeAmount.includes(abbreviationTrimmed)) {
@@ -101,7 +104,7 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
101
104
  }
102
105
 
103
106
  return localeAmount;
104
- }
107
+ };
105
108
 
106
109
  export {
107
110
  setSharedLibLocaleAsync,
@@ -117,5 +120,6 @@ export {
117
120
  uploadYourLogoTr,
118
121
  sharedPaymentConfigTr,
119
122
  priceTr,
123
+ uploadLogoSearchResultCardTr,
120
124
  formatCurrency,
121
125
  };