@@ -27,42 +27,42 @@ export default function SigUp() {
27
27
validate : {
28
28
username : ( value ) => {
29
29
if ( step === 0 ) {
30
- return ( value . length < 6 ? '用户名至少六位 ' : null ) ;
30
+ return ( value . length < 6 ? 'username last 6 len ' : null ) ;
31
31
}
32
32
return null ;
33
33
} ,
34
34
password0 : ( value ) => {
35
35
if ( step === 2 ) {
36
- return ( value . length < 6 ? '密码至少六位 ' : null ) ;
36
+ return ( value . length < 6 ? 'password last 6 len ' : null ) ;
37
37
}
38
38
return null ;
39
39
} ,
40
40
password1 : ( value ) => {
41
41
if ( step === 2 ) {
42
- return ( value . length < 6 ? '密码至少六位 ' : null ) ;
42
+ return ( value . length < 6 ? 'password last 6 len ' : null ) ;
43
43
}
44
44
return null ;
45
45
} ,
46
46
captcha : ( value ) => {
47
47
if ( step === 2 ) {
48
- return ( value . length < 4 ? '验证码至少四位 ' : null ) ;
48
+ return ( value . length < 4 ? 'image captcha last 4 len ' : null ) ;
49
49
}
50
50
return null ;
51
51
} ,
52
52
email : ( value ) => {
53
53
if ( step === 0 ) {
54
54
if ( ! value . includes ( '@' ) ) {
55
- return '邮箱格式错误 ' ;
55
+ return 'Email format err ' ;
56
56
}
57
57
if ( ! value . includes ( '.' ) ) {
58
- return '邮箱格式错误 ' ;
58
+ return 'Email format err ' ;
59
59
}
60
60
}
61
61
return null ;
62
62
} ,
63
63
code : ( value ) => {
64
64
if ( step === 1 ) {
65
- return ( value . length < 6 ? '验证码至少六位 ' : null ) ;
65
+ return ( value . length < 6 ? 'Email Captcha code last eq 6 len ' : null ) ;
66
66
}
67
67
return null ;
68
68
} ,
@@ -129,7 +129,7 @@ export default function SigUp() {
129
129
if ( data . code === 0 ) {
130
130
notifications . show ( {
131
131
title : 'Success' ,
132
- message : '验证码发送成功 ' ,
132
+ message : 'Email captcha send successful ' ,
133
133
color : 'green' ,
134
134
} ) ;
135
135
setStep ( 1 ) ;
@@ -144,7 +144,7 @@ export default function SigUp() {
144
144
} else {
145
145
notifications . show ( {
146
146
title : 'Failed' ,
147
- message : '验证码发送失败 ' ,
147
+ message : 'email captcha send error ' ,
148
148
color : 'red' ,
149
149
} ) ;
150
150
}
@@ -160,7 +160,7 @@ export default function SigUp() {
160
160
} else {
161
161
notifications . show ( {
162
162
title : 'Failed' ,
163
- message : '验证码发送失败 ' ,
163
+ message : 'email captcha send error ' ,
164
164
color : 'red' ,
165
165
} ) ;
166
166
}
@@ -174,7 +174,7 @@ export default function SigUp() {
174
174
if ( code . length !== 6 ) {
175
175
notifications . show ( {
176
176
title : 'Failed' ,
177
- message : '验证码错误 ' ,
177
+ message : 'Email captcha code err ' ,
178
178
color : 'red' ,
179
179
} ) ;
180
180
return ;
@@ -199,7 +199,7 @@ export default function SigUp() {
199
199
if ( data . code === 0 ) {
200
200
notifications . show ( {
201
201
title : 'Success' ,
202
- message : '验证码正确 ' ,
202
+ message : 'Captcha Successful ' ,
203
203
color : 'green' ,
204
204
} ) ;
205
205
setStep ( 2 ) ;
@@ -214,7 +214,7 @@ export default function SigUp() {
214
214
} else {
215
215
notifications . show ( {
216
216
title : 'Failed' ,
217
- message : '验证码错误 ' ,
217
+ message : 'Captcha Err ' ,
218
218
color : 'red' ,
219
219
} ) ;
220
220
}
@@ -228,7 +228,7 @@ export default function SigUp() {
228
228
if ( data . password0 !== data . password1 ) {
229
229
notifications . show ( {
230
230
title : 'Failed' ,
231
- message : '两次密码不一致 ' ,
231
+ message : 'password not is same ' ,
232
232
color : 'red' ,
233
233
} ) ;
234
234
return ;
@@ -255,7 +255,7 @@ export default function SigUp() {
255
255
if ( data . code === 0 ) {
256
256
notifications . show ( {
257
257
title : 'Success' ,
258
- message : '注册成功 ' ,
258
+ message : 'Sign up successful ' ,
259
259
color : 'green' ,
260
260
} ) ;
261
261
} else {
@@ -269,7 +269,7 @@ export default function SigUp() {
269
269
} else {
270
270
notifications . show ( {
271
271
title : 'Failed' ,
272
- message : '注册失败 ' ,
272
+ message : 'Sign up error ' ,
273
273
color : 'red' ,
274
274
} ) ;
275
275
}
@@ -281,7 +281,7 @@ export default function SigUp() {
281
281
} , [ ] ) ;
282
282
return (
283
283
< >
284
- < h1 > 注册 </ h1 >
284
+ < h1 > Sign up </ h1 >
285
285
< Form form = { form } className = "form" >
286
286
{
287
287
( step === 0 ) ? < Sign0 form = { form } /> : null
@@ -296,14 +296,14 @@ export default function SigUp() {
296
296
Next ( ) ;
297
297
} } >
298
298
{
299
- ( step <= 1 ) ? '下一步 ' : '完成 '
299
+ ( step <= 1 ) ? 'next ' : 'submit '
300
300
}
301
301
</ Button >
302
- < Divider label = "已经有账号了?去登陆 " />
302
+ < Divider label = "aleary has account?go sign in " />
303
303
< Button type = "button" color = "dark" onClick = { ( ) => {
304
304
nav ( '/sigin' )
305
305
} } >
306
- 登陆
306
+ Sign in
307
307
</ Button >
308
308
</ Form >
309
309
</ >
0 commit comments