@designcrowd/fe-shared-lib 1.0.8-ml-82-6 → 1.0.8-ml-82-8
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,7 +13,7 @@
|
|
|
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
|
-
>{{ termsAndConditionsContent?.termsOfUse }} </a
|
|
16
|
+
> {{ termsAndConditionsContent?.termsOfUse }} </a
|
|
17
17
|
>
|
|
18
18
|
{{ termsAndConditionsContent?.and }}
|
|
19
19
|
<a :href="privacyPolicyUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
</p>
|
|
58
58
|
<div class="tw-flex tw-flex-col">
|
|
59
59
|
<div>
|
|
60
|
-
<form id="signin" method="post" @submit="validate">
|
|
60
|
+
<form id="signin" action="/identity/account/signin" method="post" @submit="validate">
|
|
61
61
|
<input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
|
|
62
62
|
<label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
|
|
63
63
|
<input
|
|
@@ -149,7 +149,9 @@
|
|
|
149
149
|
>
|
|
150
150
|
<p>
|
|
151
151
|
{{ getSignUpText }}
|
|
152
|
-
<a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
|
|
152
|
+
<a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
|
|
153
|
+
signInLabel
|
|
154
|
+
}}</a>
|
|
153
155
|
</p>
|
|
154
156
|
</div>
|
|
155
157
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<h2 v-if="title" class="tw-text-center tw-text-4xl tw-font-bold tw-mb-6">
|
|
33
33
|
{{ title }}
|
|
34
34
|
</h2>
|
|
35
|
-
<form id="signup" method="post" @submit="validate">
|
|
35
|
+
<form id="signup" action="/identity/account/signup" method="post" @submit="validate">
|
|
36
36
|
<input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
|
|
37
37
|
<label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
|
|
38
38
|
<input
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<SubmissionButton
|
|
68
68
|
variant="primary"
|
|
69
69
|
size="medium"
|
|
70
|
-
label="
|
|
70
|
+
:label="submissionButtonLabel"
|
|
71
71
|
label-size="smaller"
|
|
72
72
|
:is-loading="isLoading"
|
|
73
73
|
:disabled="isLoading"
|
|
@@ -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>
|
|
@@ -208,6 +210,21 @@ export default {
|
|
|
208
210
|
required: false,
|
|
209
211
|
default: undefined,
|
|
210
212
|
},
|
|
213
|
+
submissionButtonLabel: {
|
|
214
|
+
type: String,
|
|
215
|
+
required: false,
|
|
216
|
+
default: 'Sign Up',
|
|
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
|
+
},
|
|
211
228
|
},
|
|
212
229
|
data() {
|
|
213
230
|
return {
|
|
@@ -223,7 +240,7 @@ export default {
|
|
|
223
240
|
if (typeof window === 'undefined') {
|
|
224
241
|
return null;
|
|
225
242
|
}
|
|
226
|
-
|
|
243
|
+
|
|
227
244
|
const url = new URL(`https://${window.location.host}${this.signInUrl}`);
|
|
228
245
|
if (this.aUserName) {
|
|
229
246
|
url.searchParams.append('initialUserName', 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: {
|