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
d7e577cb
authored
May 20, 2025
by
Apple\Apple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
️Refactor: RegisterForm
parent
02214001
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
web/src/components/LoginForm.js
+2
-2
web/src/components/OIDCIcon.js
+2
-2
web/src/components/RegisterForm.js
+0
-0
web/src/i18n/locales/en.json
+4
-1
No files found.
web/src/components/LoginForm.js
View file @
d7e577cb
...
@@ -223,7 +223,7 @@ const LoginForm = () => {
...
@@ -223,7 +223,7 @@ const LoginForm = () => {
theme
=
'outline'
theme
=
'outline'
className
=
"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors"
className
=
"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors"
type
=
"tertiary"
type
=
"tertiary"
icon
=
{
<
OIDCIcon
style
=
{{
color
:
'#1877F2'
,
width
:
'20px'
,
height
:
'20px'
}}
/>
}
icon
=
{
<
OIDCIcon
style
=
{{
color
:
'#1877F2'
}}
/>
}
size
=
"large"
size
=
"large"
onClick
=
{()
=>
onClick
=
{()
=>
onOIDCClicked
(
onOIDCClicked
(
...
@@ -358,7 +358,7 @@ const LoginForm = () => {
...
@@ -358,7 +358,7 @@ const LoginForm = () => {
<
Divider
margin
=
'12px'
align
=
'center'
>
<
Divider
margin
=
'12px'
align
=
'center'
>
{
t
(
'或'
)}
{
t
(
'或'
)}
<
/Divider
>
<
/Divider
>
<
div
className
=
"mt-4 text-center"
>
<
div
className
=
"mt-4 text-center"
>
<
Button
<
Button
theme
=
"outline"
theme
=
"outline"
...
...
web/src/components/OIDCIcon.js
View file @
d7e577cb
...
@@ -11,8 +11,8 @@ const OIDCIcon = (props) => {
...
@@ -11,8 +11,8 @@ const OIDCIcon = (props) => {
version
=
'1.1'
version
=
'1.1'
xmlns
=
'http://www.w3.org/2000/svg'
xmlns
=
'http://www.w3.org/2000/svg'
p
-
id
=
'10969'
p
-
id
=
'10969'
width
=
'
1em
'
width
=
'
20
'
height
=
'
1em
'
height
=
'
20
'
>
>
<
path
<
path
d
=
'M512 960C265 960 64 759 64 512S265 64 512 64s448 201 448 448-201 448-448 448z m0-882.6c-239.7 0-434.6 195-434.6 434.6s195 434.6 434.6 434.6 434.6-195 434.6-434.6S751.7 77.4 512 77.4z'
d
=
'M512 960C265 960 64 759 64 512S265 64 512 64s448 201 448 448-201 448-448 448z m0-882.6c-239.7 0-434.6 195-434.6 434.6s195 434.6 434.6 434.6 434.6-195 434.6-434.6S751.7 77.4 512 77.4z'
...
...
web/src/components/RegisterForm.js
View file @
d7e577cb
This diff is collapsed.
Click to expand it.
web/src/i18n/locales/en.json
View file @
d7e577cb
...
@@ -5,12 +5,15 @@
...
@@ -5,12 +5,15 @@
"$%.6f 额度"
:
"$%.6f quota"
,
"$%.6f 额度"
:
"$%.6f quota"
,
"或"
:
"or"
,
"或"
:
"or"
,
"登 录"
:
"Log In"
,
"登 录"
:
"Log In"
,
"注 册"
:
"Sign Up"
,
"使用 邮箱 登录"
:
"Sign in with Email"
,
"使用 邮箱 登录"
:
"Sign in with Email"
,
"使用 GitHub 继续"
:
"Continue with GitHub"
,
"使用 GitHub 继续"
:
"Continue with GitHub"
,
"使用 OIDC 继续"
:
"Continue with OIDC"
,
"使用 OIDC 继续"
:
"Continue with OIDC"
,
"使用 微信 继续"
:
"Continue with WeChat"
,
"使用 微信 继续"
:
"Continue with WeChat"
,
"使用 LinuxDO 继续"
:
"Continue with LinuxDO"
,
"使用 LinuxDO 继续"
:
"Continue with LinuxDO"
,
"使用 邮箱 注册"
:
"Sign up with Email"
,
"其他登录选项"
:
"Other login options"
,
"其他登录选项"
:
"Other login options"
,
"其他注册选项"
:
"Other registration options"
,
"请输入您的邮箱地址"
:
"Please enter your email address"
,
"请输入您的邮箱地址"
:
"Please enter your email address"
,
"请输入您的密码"
:
"Please enter your password"
,
"请输入您的密码"
:
"Please enter your password"
,
"继续"
:
"Continue"
,
"继续"
:
"Continue"
,
...
@@ -775,7 +778,7 @@
...
@@ -775,7 +778,7 @@
"邀请码"
:
"Invitation code"
,
"邀请码"
:
"Invitation code"
,
"输入邀请码"
:
"Enter invitation code"
,
"输入邀请码"
:
"Enter invitation code"
,
"账户"
:
"Account"
,
"账户"
:
"Account"
,
"邮箱"
:
"
M
ail"
,
"邮箱"
:
"
Em
ail"
,
"已有账户?"
:
"Already have an account?"
,
"已有账户?"
:
"Already have an account?"
,
"创意任务"
:
"Tasks"
,
"创意任务"
:
"Tasks"
,
"用户管理"
:
"User Management"
,
"用户管理"
:
"User Management"
,
...
...
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