Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d5a3b05b
authored
Jun 04, 2025
by
Apple\Apple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔖
chore(text): Optimize the text prompts on the login and registration pages
parent
80d43b00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
web/src/components/auth/LoginForm.js
+4
-4
web/src/components/auth/RegisterForm.js
+2
-2
web/src/i18n/locales/en.json
+4
-4
No files found.
web/src/components/auth/LoginForm.js
View file @
d5a3b05b
...
...
@@ -294,7 +294,7 @@ const LoginForm = () => {
theme
=
'outline'
className
=
"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors"
type
=
"tertiary"
icon
=
{
<
IconGithubLogo
size
=
"large"
style
=
{{
color
:
'#24292e'
}}
/>
}
icon
=
{
<
IconGithubLogo
size
=
"large"
/>
}
size
=
"large"
onClick
=
{
handleGitHubClick
}
loading
=
{
githubLoading
}
...
...
@@ -353,7 +353,7 @@ const LoginForm = () => {
onClick
=
{
handleEmailLoginClick
}
loading
=
{
emailLoginLoading
}
>
<
span
className
=
"ml-3"
>
{
t
(
'使用 邮箱 登录'
)}
<
/span
>
<
span
className
=
"ml-3"
>
{
t
(
'使用 邮箱
或用户名
登录'
)}
<
/span
>
<
/Button
>
<
/div
>
...
...
@@ -395,8 +395,8 @@ const LoginForm = () => {
<
Form
className
=
"space-y-3"
>
<
Form
.
Input
field
=
"username"
label
=
{
t
(
'邮箱'
)}
placeholder
=
{
t
(
'请输入您的邮箱地址'
)}
label
=
{
t
(
'
用户名或
邮箱'
)}
placeholder
=
{
t
(
'请输入您的
用户名或
邮箱地址'
)}
name
=
"username"
size
=
"large"
className
=
"!rounded-md"
...
...
web/src/components/auth/RegisterForm.js
View file @
d5a3b05b
...
...
@@ -300,7 +300,7 @@ const RegisterForm = () => {
theme
=
'outline'
className
=
"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors"
type
=
"tertiary"
icon
=
{
<
IconGithubLogo
size
=
"large"
style
=
{{
color
:
'#24292e'
}}
/>
}
icon
=
{
<
IconGithubLogo
size
=
"large"
/>
}
size
=
"large"
onClick
=
{
handleGitHubClick
}
loading
=
{
githubLoading
}
...
...
@@ -359,7 +359,7 @@ const RegisterForm = () => {
onClick
=
{
handleEmailRegisterClick
}
loading
=
{
emailRegisterLoading
}
>
<
span
className
=
"ml-3"
>
{
t
(
'使用
邮箱
注册'
)}
<
/span
>
<
span
className
=
"ml-3"
>
{
t
(
'使用
用户名
注册'
)}
<
/span
>
<
/Button
>
<
/div
>
...
...
web/src/i18n/locales/en.json
View file @
d5a3b05b
...
...
@@ -6,15 +6,15 @@
"或"
:
"or"
,
"登 录"
:
"Log In"
,
"注 册"
:
"Sign Up"
,
"使用 邮箱
登录"
:
"Sign in with Email
"
,
"使用 邮箱
或用户名 登录"
:
"Sign in with Email or Username
"
,
"使用 GitHub 继续"
:
"Continue with GitHub"
,
"使用 OIDC 继续"
:
"Continue with OIDC"
,
"使用 微信 继续"
:
"Continue with WeChat"
,
"使用 LinuxDO 继续"
:
"Continue with LinuxDO"
,
"使用
邮箱 注册"
:
"Sign up with Email
"
,
"使用
用户名 注册"
:
"Sign up with Username
"
,
"其他登录选项"
:
"Other login options"
,
"其他注册选项"
:
"Other registration options"
,
"请输入您的
邮箱地址"
:
"Please enter you
r email address"
,
"请输入您的
用户名或邮箱地址"
:
"Please enter your username o
r email address"
,
"请输入您的密码"
:
"Please enter your password"
,
"继续"
:
"Continue"
,
"%d 点额度"
:
"%d point quota"
,
...
...
@@ -585,7 +585,7 @@
"您正在使用默认密码!"
:
"You are using the default password!"
,
"请立刻修改默认密码!"
:
"Please change the default password immediately!"
,
"请输入用户名和密码!"
:
"Please enter username and password!"
,
"用户名
/邮箱"
:
"Username/
email"
,
"用户名
或邮箱"
:
"Username or
email"
,
"微信扫码登录"
:
"WeChat scan code to log in"
,
"刷新成功"
:
"Refresh successful"
,
"刷新失败"
:
"Refresh failed"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment