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
716af523
authored
Jul 29, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: adjust ui
parent
7d2b3e28
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
web/src/components/ChannelsTable.js
+16
-13
web/src/components/UsersTable.js
+1
-1
web/src/constants/toast.constants.js
+1
-1
web/src/pages/Token/EditToken.js
+1
-1
No files found.
web/src/components/ChannelsTable.js
View file @
716af523
...
...
@@ -363,9 +363,12 @@ const ChannelsTable = () => {
<
/Table.Cell
>
<
Table
.
Cell
>
<
Popup
content
=
{
channel
.
balance_updated_time
?
renderTimestamp
(
channel
.
balance_updated_time
)
:
'未更新'
}
key
=
{
channel
.
id
}
trigger
=
{
renderBalance
(
channel
.
type
,
channel
.
balance
)}
trigger
=
{
<
span
onClick
=
{()
=>
{
updateChannelBalance
(
channel
.
id
,
channel
.
name
,
idx
);
}}
style
=
{{
cursor
:
'pointer'
}}
>
{
renderBalance
(
channel
.
type
,
channel
.
balance
)}
<
/span>
}
content
=
"点击更新"
basic
/>
<
/Table.Cell
>
...
...
@@ -380,16 +383,16 @@ const ChannelsTable = () => {
>
测试
<
/Button
>
<
Button
size
=
{
'small'
}
positive
loading
=
{
updatingBalance
}
onClick
=
{()
=>
{
updateChannelBalance
(
channel
.
id
,
channel
.
name
,
idx
);
}
}
>
更新余额
<
/Button
>
{
/*<Button*/
}
{
/* size={'small'}*/
}
{
/* positive*/
}
{
/* loading={updatingBalance}*/
}
{
/* onClick={() => {*/
}
{
/* updateChannelBalance(channel.id, channel.name, idx);*/
}
{
/* }}*/
}
{
/*>*/
}
{
/* 更新余额*/
}
{
/*</Button>*/
}
<
Popup
trigger
=
{
<
Button
size
=
'small'
negative
>
...
...
web/src/components/UsersTable.js
View file @
716af523
...
...
@@ -227,7 +227,7 @@ const UsersTable = () => {
content
=
{
user
.
email
?
user
.
email
:
'未绑定邮箱地址'
}
key
=
{
user
.
username
}
header
=
{
user
.
display_name
?
user
.
display_name
:
user
.
username
}
trigger
=
{
<
span
>
{
renderText
(
user
.
username
,
1
0
)}
<
/span>
}
trigger
=
{
<
span
>
{
renderText
(
user
.
username
,
1
5
)}
<
/span>
}
hoverable
/>
<
/Table.Cell
>
...
...
web/src/constants/toast.constants.js
View file @
716af523
export
const
toastConstants
=
{
SUCCESS_TIMEOUT
:
500
,
SUCCESS_TIMEOUT
:
1
500
,
INFO_TIMEOUT
:
3000
,
ERROR_TIMEOUT
:
5000
,
WARNING_TIMEOUT
:
10000
,
...
...
web/src/pages/Token/EditToken.js
View file @
716af523
...
...
@@ -83,7 +83,7 @@ const EditToken = () => {
if
(
isEdit
)
{
showSuccess
(
'令牌更新成功!'
);
}
else
{
showSuccess
(
'令牌创建成功!'
);
showSuccess
(
'令牌创建成功
,请在列表页面点击复制获取令牌
!'
);
setInputs
(
originInputs
);
}
}
else
{
...
...
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