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
bc4c572b
authored
May 22, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: fix UI related problems
parent
eef09897
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
web/src/components/ChannelsTable.js
+1
-1
web/src/pages/Token/EditToken.js
+17
-17
No files found.
web/src/components/ChannelsTable.js
View file @
bc4c572b
...
@@ -405,7 +405,7 @@ const ChannelsTable = () => {
...
@@ -405,7 +405,7 @@ const ChannelsTable = () => {
<
Button
size
=
'small'
loading
=
{
loading
}
onClick
=
{
testAllChannels
}
>
<
Button
size
=
'small'
loading
=
{
loading
}
onClick
=
{
testAllChannels
}
>
测试所有已启用通道
测试所有已启用通道
<
/Button
>
<
/Button
>
<
Button
size
=
'small'
onClick
=
{
updateAllChannelsBalance
}
loading
=
{
updatingBalance
}
>
更新所有已启用通道余额
<
/Button
>
<
Button
size
=
'small'
onClick
=
{
updateAllChannelsBalance
}
loading
=
{
loading
||
updatingBalance
}
>
更新所有已启用通道余额
<
/Button
>
<
Pagination
<
Pagination
floated
=
'right'
floated
=
'right'
activePage
=
{
activePage
}
activePage
=
{
activePage
}
...
...
web/src/pages/Token/EditToken.js
View file @
bc4c572b
...
@@ -106,22 +106,6 @@ const EditToken = () => {
...
@@ -106,22 +106,6 @@ const EditToken = () => {
required
=
{
!
isEdit
}
required
=
{
!
isEdit
}
/
>
/
>
<
/Form.Field
>
<
/Form.Field
>
<
Message
>
注意,令牌的额度仅用于限制令牌本身的最大额度使用量,实际的使用受到账户的剩余额度限制。
<
/Message
>
<
Form
.
Field
>
<
Form
.
Input
label
=
'额度'
name
=
'remain_quota'
placeholder
=
{
'请输入额度'
}
onChange
=
{
handleInputChange
}
value
=
{
remain_quota
}
autoComplete
=
'new-password'
type
=
'number'
disabled
=
{
unlimited_quota
}
/
>
<
/Form.Field
>
<
Button
type
=
{
'button'
}
style
=
{{
marginBottom
:
'14px'
}}
onClick
=
{()
=>
{
setUnlimitedQuota
();
}}
>
{
unlimited_quota
?
'取消无限额度'
:
'设置为无限额度'
}
<
/Button
>
<
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Input
<
Form
.
Input
label
=
'过期时间'
label
=
'过期时间'
...
@@ -150,7 +134,23 @@ const EditToken = () => {
...
@@ -150,7 +134,23 @@ const EditToken = () => {
setExpiredTime
(
0
,
0
,
0
,
1
);
setExpiredTime
(
0
,
0
,
0
,
1
);
}}
>
一分钟后过期
<
/Button
>
}}
>
一分钟后过期
<
/Button
>
<
/div
>
<
/div
>
<
Button
positive
onClick
=
{
submit
}
style
=
{{
marginTop
:
'12px'
}}
>
提交
<
/Button
>
<
Message
>
注意,令牌的额度仅用于限制令牌本身的最大额度使用量,实际的使用受到账户的剩余额度限制。
<
/Message
>
<
Form
.
Field
>
<
Form
.
Input
label
=
'额度'
name
=
'remain_quota'
placeholder
=
{
'请输入额度'
}
onChange
=
{
handleInputChange
}
value
=
{
remain_quota
}
autoComplete
=
'new-password'
type
=
'number'
disabled
=
{
unlimited_quota
}
/
>
<
/Form.Field
>
<
Button
type
=
{
'button'
}
onClick
=
{()
=>
{
setUnlimitedQuota
();
}}
>
{
unlimited_quota
?
'取消无限额度'
:
'设置为无限额度'
}
<
/Button
>
<
Button
positive
onClick
=
{
submit
}
>
提交
<
/Button
>
<
/Form
>
<
/Form
>
<
/Segment
>
<
/Segment
>
<
/
>
<
/
>
...
...
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