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
5fc5cdf2
authored
Jun 19, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: hide token id for user
parent
7170091f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
+1
-10
web/src/components/TokensTable.js
+1
-10
No files found.
web/src/components/TokensTable.js
View file @
5fc5cdf2
...
@@ -167,14 +167,6 @@ const TokensTable = () => {
...
@@ -167,14 +167,6 @@ const TokensTable = () => {
<
Table
.
HeaderCell
<
Table
.
HeaderCell
style
=
{{
cursor
:
'pointer'
}}
style
=
{{
cursor
:
'pointer'
}}
onClick
=
{()
=>
{
onClick
=
{()
=>
{
sortToken
(
'id'
);
}}
>
ID
<
/Table.HeaderCell
>
<
Table
.
HeaderCell
style
=
{{
cursor
:
'pointer'
}}
onClick
=
{()
=>
{
sortToken
(
'name'
);
sortToken
(
'name'
);
}}
}}
>
>
...
@@ -226,7 +218,6 @@ const TokensTable = () => {
...
@@ -226,7 +218,6 @@ const TokensTable = () => {
if
(
token
.
deleted
)
return
<><
/>
;
if
(
token
.
deleted
)
return
<><
/>
;
return
(
return
(
<
Table
.
Row
key
=
{
token
.
id
}
>
<
Table
.
Row
key
=
{
token
.
id
}
>
<
Table
.
Cell
>
{
token
.
id
}
<
/Table.Cell
>
<
Table
.
Cell
>
{
token
.
name
?
token
.
name
:
'无'
}
<
/Table.Cell
>
<
Table
.
Cell
>
{
token
.
name
?
token
.
name
:
'无'
}
<
/Table.Cell
>
<
Table
.
Cell
>
{
renderStatus
(
token
.
status
)}
<
/Table.Cell
>
<
Table
.
Cell
>
{
renderStatus
(
token
.
status
)}
<
/Table.Cell
>
<
Table
.
Cell
>
{
token
.
unlimited_quota
?
'无限制'
:
token
.
remain_quota
}
<
/Table.Cell
>
<
Table
.
Cell
>
{
token
.
unlimited_quota
?
'无限制'
:
token
.
remain_quota
}
<
/Table.Cell
>
...
@@ -296,7 +287,7 @@ const TokensTable = () => {
...
@@ -296,7 +287,7 @@ const TokensTable = () => {
<
Table
.
Footer
>
<
Table
.
Footer
>
<
Table
.
Row
>
<
Table
.
Row
>
<
Table
.
HeaderCell
colSpan
=
'
8
'
>
<
Table
.
HeaderCell
colSpan
=
'
7
'
>
<
Button
size
=
'small'
as
=
{
Link
}
to
=
'/token/add'
loading
=
{
loading
}
>
<
Button
size
=
'small'
as
=
{
Link
}
to
=
'/token/add'
loading
=
{
loading
}
>
添加新的令牌
添加新的令牌
<
/Button
>
<
/Button
>
...
...
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