@designcrowd/fe-shared-lib 1.0.8-ml-82-19 → 1.0.8-ml-82-21
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/package.json
CHANGED
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
<span v-if="isPartnerTheme"> and BrandCrowd's </span>
|
|
14
14
|
<span v-else>{{ termsAndConditionsContent?.byProceeding }} </span>
|
|
15
15
|
<a :href="termsOfUseUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
|
|
16
|
-
>
|
|
17
|
-
>
|
|
18
|
-
{{ termsAndConditionsContent?.and }}
|
|
16
|
+
>{{ termsAndConditionsContent?.termsOfUse }}</a
|
|
17
|
+
>
|
|
18
|
+
<span> {{ termsAndConditionsContent?.and }} </span>
|
|
19
19
|
<a :href="privacyPolicyUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
|
|
20
|
-
>{{ termsAndConditionsContent?.privacyPolicy }}
|
|
20
|
+
>{{ termsAndConditionsContent?.privacyPolicy }}</a
|
|
21
|
+
>
|
|
21
22
|
<span> {{ termsAndConditionsContent?.agreeToFutureUpdates }} {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span>
|
|
22
23
|
</p>
|
|
23
24
|
</template>
|
|
@@ -151,7 +151,9 @@
|
|
|
151
151
|
>
|
|
152
152
|
<p>
|
|
153
153
|
{{ getSignUpText }}
|
|
154
|
-
<a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">
|
|
154
|
+
<a :href="getSignUpUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
|
|
155
|
+
signUpLabel
|
|
156
|
+
}}</a>
|
|
155
157
|
</p>
|
|
156
158
|
</div>
|
|
157
159
|
</div>
|
|
@@ -338,6 +340,16 @@ export default {
|
|
|
338
340
|
required: false,
|
|
339
341
|
default: undefined,
|
|
340
342
|
},
|
|
343
|
+
invalidUsernameErrorLabel: {
|
|
344
|
+
type: String,
|
|
345
|
+
required: false,
|
|
346
|
+
default: 'Please enter a valid email address',
|
|
347
|
+
},
|
|
348
|
+
missingPasswordErrorLabel: {
|
|
349
|
+
type: String,
|
|
350
|
+
required: false,
|
|
351
|
+
default: 'Please enter a password',
|
|
352
|
+
},
|
|
341
353
|
},
|
|
342
354
|
data() {
|
|
343
355
|
return {
|
|
@@ -411,13 +423,13 @@ export default {
|
|
|
411
423
|
validate(e) {
|
|
412
424
|
this.clearErrorMessages();
|
|
413
425
|
if (!this.aUserName || !isValidEmail(this.aUserName)) {
|
|
414
|
-
this.userNameError =
|
|
426
|
+
this.userNameError = this.invalidUsernameErrorLabel;
|
|
415
427
|
e.preventDefault();
|
|
416
428
|
return false;
|
|
417
429
|
}
|
|
418
430
|
|
|
419
431
|
if (this.capturePassword && !this.password) {
|
|
420
|
-
this.passwordError =
|
|
432
|
+
this.passwordError = this.missingPasswordErrorLabel;
|
|
421
433
|
e.preventDefault();
|
|
422
434
|
return false;
|
|
423
435
|
}
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
class="tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
|
|
102
102
|
>
|
|
103
103
|
{{ alreadyHaveAnAccountLabel }}
|
|
104
|
-
<a :href="getRedirectToSignInUrl" class="tw-text-info-500">{{ loginLabel }}</a>
|
|
104
|
+
<a :href="getRedirectToSignInUrl" target="_blank" class="tw-text-info-500">{{ loginLabel }}</a>
|
|
105
105
|
</p>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
@@ -225,6 +225,16 @@ export default {
|
|
|
225
225
|
required: false,
|
|
226
226
|
default: undefined,
|
|
227
227
|
},
|
|
228
|
+
invalidUsernameErrorLabel: {
|
|
229
|
+
type: String,
|
|
230
|
+
required: false,
|
|
231
|
+
default: 'Please enter a valid email address',
|
|
232
|
+
},
|
|
233
|
+
missingPasswordErrorLabel: {
|
|
234
|
+
type: String,
|
|
235
|
+
required: false,
|
|
236
|
+
default: 'Please enter a password',
|
|
237
|
+
},
|
|
228
238
|
},
|
|
229
239
|
data() {
|
|
230
240
|
return {
|
|
@@ -272,10 +282,10 @@ export default {
|
|
|
272
282
|
this.passwordError = undefined;
|
|
273
283
|
|
|
274
284
|
if (!this.aUserName) {
|
|
275
|
-
this.userNameError =
|
|
285
|
+
this.userNameError = this.invalidUsernameErrorLabel;
|
|
276
286
|
}
|
|
277
287
|
if (!this.password) {
|
|
278
|
-
this.passwordError =
|
|
288
|
+
this.passwordError = this.missingPasswordErrorLabel;
|
|
279
289
|
}
|
|
280
290
|
|
|
281
291
|
e.preventDefault();
|