@jetthai/cuora 1.0.144 → 1.0.146
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/machine/auth.js +17 -9
- package/src/machine/user_sign_up.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.146](https://github.com/jetthai/cuora-module/compare/v1.0.145...v1.0.146) (2022-07-19)
|
|
6
|
+
|
|
7
|
+
### [1.0.145](https://github.com/jetthai/cuora-module/compare/v1.0.141-2...v1.0.145) (2022-07-19)
|
|
8
|
+
|
|
9
|
+
### [1.0.144](https://github.com/jetthai/cuora-module/compare/v1.0.140-2...v1.0.144) (2022-07-17)
|
|
10
|
+
|
|
11
|
+
### [1.0.143](https://github.com/jetthai/cuora-module/compare/v1.0.141...v1.0.143) (2022-07-14)
|
|
12
|
+
|
|
5
13
|
### [1.0.144](https://github.com/jetthai/cuora-module/compare/v1.0.140-2...v1.0.144) (2022-07-17)
|
|
6
14
|
|
|
7
15
|
### [1.0.143](https://github.com/jetthai/cuora-module/compare/v1.0.141...v1.0.143) (2022-07-14)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -178,6 +178,9 @@ export default function (request) {
|
|
|
178
178
|
LOGIN_3PARTY: {
|
|
179
179
|
actions: 'redirectTo3Party',
|
|
180
180
|
},
|
|
181
|
+
SET_PLAY: {
|
|
182
|
+
actions: 'setPlay',
|
|
183
|
+
},
|
|
181
184
|
},
|
|
182
185
|
},
|
|
183
186
|
{
|
|
@@ -202,7 +205,7 @@ export default function (request) {
|
|
|
202
205
|
setReCaptchaToken: assign((context, event) => {
|
|
203
206
|
const { reCaptchaToken } = event.data
|
|
204
207
|
return {
|
|
205
|
-
reCaptchaToken
|
|
208
|
+
reCaptchaToken,
|
|
206
209
|
}
|
|
207
210
|
}),
|
|
208
211
|
setLoginPhone: assign((context, event) => {
|
|
@@ -288,14 +291,14 @@ export default function (request) {
|
|
|
288
291
|
const redirectURL = urljoin(
|
|
289
292
|
request.config.fullURL,
|
|
290
293
|
'login?' +
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
294
|
+
qs.stringify({
|
|
295
|
+
provider,
|
|
296
|
+
redirectURI: `${window.location.protocol}//${window.location.host}`,
|
|
297
|
+
channel: cookies.get('channel') || channel || defaultChannel || 'official',
|
|
298
|
+
subchannel: cookies.get('subchannel') || subchannel || defaultSubchannel || 'pwa',
|
|
299
|
+
// dt,
|
|
300
|
+
platform: 'pwa',
|
|
301
|
+
})
|
|
299
302
|
)
|
|
300
303
|
window.location.href = redirectURL
|
|
301
304
|
},
|
|
@@ -305,6 +308,11 @@ export default function (request) {
|
|
|
305
308
|
userInfo: event.data,
|
|
306
309
|
}
|
|
307
310
|
}),
|
|
311
|
+
setPlay: assign((context, event) => {
|
|
312
|
+
return {
|
|
313
|
+
isPlaying: event.data,
|
|
314
|
+
}
|
|
315
|
+
}),
|
|
308
316
|
},
|
|
309
317
|
services: {
|
|
310
318
|
authenticate: async (context, event) => {
|
|
@@ -15,7 +15,7 @@ export default function (request) {
|
|
|
15
15
|
channel: null,
|
|
16
16
|
subchannel: null,
|
|
17
17
|
signUpData: {},
|
|
18
|
-
reCaptchaToken: null
|
|
18
|
+
reCaptchaToken: null,
|
|
19
19
|
},
|
|
20
20
|
states: {
|
|
21
21
|
idle: {
|
|
@@ -49,7 +49,7 @@ export default function (request) {
|
|
|
49
49
|
setReCaptchaToken: assign((context, event) => {
|
|
50
50
|
const { reCaptchaToken } = event.data
|
|
51
51
|
return {
|
|
52
|
-
reCaptchaToken
|
|
52
|
+
reCaptchaToken,
|
|
53
53
|
}
|
|
54
54
|
}),
|
|
55
55
|
setSignUpPhone: assign((context, event) => {
|
|
@@ -89,7 +89,7 @@ export default function (request) {
|
|
|
89
89
|
channel: cookies.get('channel') || defaultChannel || channel,
|
|
90
90
|
subchannel: cookies.get('subchannel') || defaultSubchannel || subchannel,
|
|
91
91
|
dt,
|
|
92
|
-
reCaptchaToken: context.reCaptchaToken
|
|
92
|
+
reCaptchaToken: context.reCaptchaToken,
|
|
93
93
|
})
|
|
94
94
|
)
|
|
95
95
|
},
|