@designcrowd/fe-shared-lib 1.0.8-ml-82-7 → 1.0.8-ml-82-9
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
|
@@ -139,6 +139,8 @@
|
|
|
139
139
|
:disabled="isLoading"
|
|
140
140
|
:facebook-loading="facebookLoading"
|
|
141
141
|
:google-loading="googleLoading"
|
|
142
|
+
:login-with-google-label="loginWithGoogleLabel"
|
|
143
|
+
:login-with-facebook-label="loginWithFacebookLabel"
|
|
142
144
|
/>
|
|
143
145
|
</div>
|
|
144
146
|
</div>
|
|
@@ -328,6 +330,16 @@ export default {
|
|
|
328
330
|
required: false,
|
|
329
331
|
default: undefined,
|
|
330
332
|
},
|
|
333
|
+
loginWithGoogleLabel: {
|
|
334
|
+
type: String,
|
|
335
|
+
required: false,
|
|
336
|
+
default: undefined,
|
|
337
|
+
},
|
|
338
|
+
loginWithFacebookLabel: {
|
|
339
|
+
type: String,
|
|
340
|
+
required: false,
|
|
341
|
+
default: undefined,
|
|
342
|
+
},
|
|
331
343
|
},
|
|
332
344
|
data() {
|
|
333
345
|
return {
|
|
@@ -369,6 +381,10 @@ export default {
|
|
|
369
381
|
return url;
|
|
370
382
|
},
|
|
371
383
|
getRedirectToRecommendedActionUrl() {
|
|
384
|
+
if (typeof window === 'undefined') {
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
|
|
372
388
|
const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
|
|
373
389
|
if (this.aUserName) {
|
|
374
390
|
url.searchParams.append('email', this.aUserName);
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
:login-with-google-url="loginWithGoogleUrl"
|
|
93
93
|
:login-with-facebook-url="loginWithFacebookUrl"
|
|
94
94
|
:anti-forgery-token="antiForgeryToken"
|
|
95
|
+
:login-with-google-label="loginWithGoogleLabel"
|
|
96
|
+
:login-with-facebook-label="loginWithFacebookLabel"
|
|
95
97
|
/>
|
|
96
98
|
</div>
|
|
97
99
|
</div>
|
|
@@ -213,6 +215,16 @@ export default {
|
|
|
213
215
|
required: false,
|
|
214
216
|
default: 'Sign Up',
|
|
215
217
|
},
|
|
218
|
+
loginWithGoogleLabel: {
|
|
219
|
+
type: String,
|
|
220
|
+
required: false,
|
|
221
|
+
default: undefined,
|
|
222
|
+
},
|
|
223
|
+
loginWithFacebookLabel: {
|
|
224
|
+
type: String,
|
|
225
|
+
required: false,
|
|
226
|
+
default: undefined,
|
|
227
|
+
},
|
|
216
228
|
},
|
|
217
229
|
data() {
|
|
218
230
|
return {
|
|
@@ -236,6 +248,10 @@ export default {
|
|
|
236
248
|
return url;
|
|
237
249
|
},
|
|
238
250
|
getRedirectToRecommendedActionUrl() {
|
|
251
|
+
if (typeof window === 'undefined') {
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
|
|
239
255
|
const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
|
|
240
256
|
if (this.aUserName) {
|
|
241
257
|
url.searchParams.append('email', this.aUserName);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
>
|
|
10
10
|
<input type="hidden" name="__RequestVerificationToken" :value="antiForgeryToken" />
|
|
11
11
|
<SocialSignInButton
|
|
12
|
-
label="
|
|
12
|
+
:label="googleLoginLabel"
|
|
13
13
|
type="google"
|
|
14
14
|
:disabled="disabled"
|
|
15
15
|
:is-loading="googleLoading"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
>
|
|
27
27
|
<input type="hidden" name="__RequestVerificationToken" :value="antiForgeryToken" />
|
|
28
28
|
<SocialSignInButton
|
|
29
|
-
label="
|
|
29
|
+
:label="facebookLoginLabel"
|
|
30
30
|
type="facebook"
|
|
31
31
|
:disabled="disabled"
|
|
32
32
|
:is-loading="facebookLoading"
|
|
@@ -88,12 +88,24 @@ export default {
|
|
|
88
88
|
required: false,
|
|
89
89
|
default: undefined,
|
|
90
90
|
},
|
|
91
|
+
loginWithGoogleLabel: {
|
|
92
|
+
type: String,
|
|
93
|
+
required: false,
|
|
94
|
+
default: undefined,
|
|
95
|
+
},
|
|
96
|
+
loginWithFacebookLabel: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: false,
|
|
99
|
+
default: undefined,
|
|
100
|
+
},
|
|
91
101
|
},
|
|
92
102
|
data() {
|
|
93
103
|
return {
|
|
94
104
|
formFacebookUrl: this.loginWithFacebookUrl,
|
|
95
105
|
formGoogleUrl: this.loginWithGoogleUrl,
|
|
96
106
|
formAntiForgeryToken: this.antiForgeryToken,
|
|
107
|
+
googleLoginLabel: this.loginWithGoogleLabel ?? 'Continue with Google',
|
|
108
|
+
facebookLoginLabel: this.loginWithFacebookLabel ?? 'Continue with Facebook',
|
|
97
109
|
};
|
|
98
110
|
},
|
|
99
111
|
methods: {
|