@designcrowd/fe-shared-lib 1.0.8-ml-82-22 → 1.0.8-ml-82-23
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
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
>
|
|
152
152
|
<p>
|
|
153
153
|
{{ getSignUpText }}
|
|
154
|
-
<a :href="
|
|
154
|
+
<a :href="signUpUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
|
|
155
155
|
signUpLabel
|
|
156
156
|
}}</a>
|
|
157
157
|
</p>
|
|
@@ -352,18 +352,11 @@ export default {
|
|
|
352
352
|
},
|
|
353
353
|
},
|
|
354
354
|
data() {
|
|
355
|
-
const signUpHref =
|
|
356
|
-
typeof window === 'undefined' ? null : new URL(`https://${window.location.host}${this.signUpUrl}`);
|
|
357
|
-
if (this.aUserName) {
|
|
358
|
-
signUpHref.searchParams.append('initialUserName', this.aUserName);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
355
|
return {
|
|
362
356
|
aUserName: this.initialUserName,
|
|
363
357
|
password: undefined,
|
|
364
358
|
userNameError: undefined,
|
|
365
359
|
passwordError: undefined,
|
|
366
|
-
signUpHref,
|
|
367
360
|
};
|
|
368
361
|
},
|
|
369
362
|
computed: {
|
|
@@ -373,18 +366,6 @@ export default {
|
|
|
373
366
|
submissionButtonLabelLowercase() {
|
|
374
367
|
return this.submissionButtonLabel.toLowerCase();
|
|
375
368
|
},
|
|
376
|
-
getSignUpUrl() {
|
|
377
|
-
if (typeof window === 'undefined') {
|
|
378
|
-
return null;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
const url = new URL(`https://${window.location.host}${this.signUpUrl}`);
|
|
382
|
-
|
|
383
|
-
if (this.aUserName) {
|
|
384
|
-
url.searchParams.append('initialUserName', this.aUserName);
|
|
385
|
-
}
|
|
386
|
-
return url;
|
|
387
|
-
},
|
|
388
369
|
getForgotPasswordUrl() {
|
|
389
370
|
if (typeof window === 'undefined') {
|
|
390
371
|
return null;
|
|
@@ -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="
|
|
104
|
+
<a :href="signInUrl" target="_blank" class="tw-text-info-500">{{ loginLabel }}</a>
|
|
105
105
|
</p>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
@@ -237,33 +237,15 @@ export default {
|
|
|
237
237
|
},
|
|
238
238
|
},
|
|
239
239
|
data() {
|
|
240
|
-
const signInHref =
|
|
241
|
-
typeof window === 'undefined' ? null : new URL(`https://${window.location.host}${this.signInUrl}`);
|
|
242
|
-
if (this.aUserName) {
|
|
243
|
-
signInHref.searchParams.append('initialUserName', this.aUserName);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
240
|
return {
|
|
247
241
|
isLoading: false,
|
|
248
242
|
aUserName: this.initialUserName,
|
|
249
243
|
password: null,
|
|
250
244
|
passwordError: undefined,
|
|
251
245
|
userNameError: null,
|
|
252
|
-
signInHref,
|
|
253
246
|
};
|
|
254
247
|
},
|
|
255
248
|
computed: {
|
|
256
|
-
getRedirectToSignInUrl() {
|
|
257
|
-
if (typeof window === 'undefined') {
|
|
258
|
-
return null;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
const url = new URL(`https://${window.location.host}${this.signInUrl}`);
|
|
262
|
-
if (this.aUserName) {
|
|
263
|
-
url.searchParams.append('initialUserName', this.aUserName);
|
|
264
|
-
}
|
|
265
|
-
return url;
|
|
266
|
-
},
|
|
267
249
|
getRedirectToRecommendedActionUrl() {
|
|
268
250
|
if (typeof window === 'undefined') {
|
|
269
251
|
return null;
|