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 = () => {
...
@@ -363,9 +363,12 @@ const ChannelsTable = () => {
<
/Table.Cell
>
<
/Table.Cell
>
<
Table
.
Cell
>
<
Table
.
Cell
>
<
Popup
<
Popup
content
=
{
channel
.
balance_updated_time
?
renderTimestamp
(
channel
.
balance_updated_time
)
:
'未更新'
}
trigger
=
{
<
span
onClick
=
{()
=>
{
key
=
{
channel
.
id
}
updateChannelBalance
(
channel
.
id
,
channel
.
name
,
idx
);
trigger
=
{
renderBalance
(
channel
.
type
,
channel
.
balance
)}
}}
style
=
{{
cursor
:
'pointer'
}}
>
{
renderBalance
(
channel
.
type
,
channel
.
balance
)}
<
/span>
}
content
=
"点击更新"
basic
basic
/>
/>
<
/Table.Cell
>
<
/Table.Cell
>
...
@@ -380,16 +383,16 @@ const ChannelsTable = () => {
...
@@ -380,16 +383,16 @@ const ChannelsTable = () => {
>
>
测试
测试
<
/Button
>
<
/Button
>
<
Button
{
/*<Button*/
}
size
=
{
'small'
}
{
/* size={'small'}*/
}
positive
{
/* positive*/
}
loading
=
{
updatingBalance
}
{
/* loading={updatingBalance}*/
}
onClick
=
{()
=>
{
{
/* onClick={() => {*/
}
updateChannelBalance
(
channel
.
id
,
channel
.
name
,
idx
);
{
/* updateChannelBalance(channel.id, channel.name, idx);*/
}
}
}
{
/* }}*/
}
>
{
/*>*/
}
更新余额
{
/* 更新余额*/
}
<
/Button
>
{
/*</Button>*/
}
<
Popup
<
Popup
trigger
=
{
trigger
=
{
<
Button
size
=
'small'
negative
>
<
Button
size
=
'small'
negative
>
...
...
web/src/components/UsersTable.js
View file @
716af523
...
@@ -227,7 +227,7 @@ const UsersTable = () => {
...
@@ -227,7 +227,7 @@ const UsersTable = () => {
content
=
{
user
.
email
?
user
.
email
:
'未绑定邮箱地址'
}
content
=
{
user
.
email
?
user
.
email
:
'未绑定邮箱地址'
}
key
=
{
user
.
username
}
key
=
{
user
.
username
}
header
=
{
user
.
display_name
?
user
.
display_name
:
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
hoverable
/>
/>
<
/Table.Cell
>
<
/Table.Cell
>
...
...
web/src/constants/toast.constants.js
View file @
716af523
export
const
toastConstants
=
{
export
const
toastConstants
=
{
SUCCESS_TIMEOUT
:
500
,
SUCCESS_TIMEOUT
:
1
500
,
INFO_TIMEOUT
:
3000
,
INFO_TIMEOUT
:
3000
,
ERROR_TIMEOUT
:
5000
,
ERROR_TIMEOUT
:
5000
,
WARNING_TIMEOUT
:
10000
,
WARNING_TIMEOUT
:
10000
,
...
...
web/src/pages/Token/EditToken.js
View file @
716af523
...
@@ -83,7 +83,7 @@ const EditToken = () => {
...
@@ -83,7 +83,7 @@ const EditToken = () => {
if
(
isEdit
)
{
if
(
isEdit
)
{
showSuccess
(
'令牌更新成功!'
);
showSuccess
(
'令牌更新成功!'
);
}
else
{
}
else
{
showSuccess
(
'令牌创建成功!'
);
showSuccess
(
'令牌创建成功
,请在列表页面点击复制获取令牌
!'
);
setInputs
(
originInputs
);
setInputs
(
originInputs
);
}
}
}
else
{
}
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