mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-06 16:53:42 +08:00
feat: update TokensTable button sizes to 'tiny' and adjust translation for 'never expire'
This commit is contained in:
@@ -415,9 +415,9 @@ const TokensTable = () => {
|
|||||||
</Table.Cell>
|
</Table.Cell>
|
||||||
<Table.Cell>
|
<Table.Cell>
|
||||||
<div>
|
<div>
|
||||||
<Button.Group color='green' size={'mini'}>
|
<Button.Group color='green' size={'tiny'}>
|
||||||
<Button
|
<Button
|
||||||
size={'mini'}
|
size={'tiny'}
|
||||||
positive
|
positive
|
||||||
onClick={async () => await onCopy('', token.key)}
|
onClick={async () => await onCopy('', token.key)}
|
||||||
>
|
>
|
||||||
@@ -430,9 +430,9 @@ const TokensTable = () => {
|
|||||||
trigger={<></>}
|
trigger={<></>}
|
||||||
/>
|
/>
|
||||||
</Button.Group>{' '}
|
</Button.Group>{' '}
|
||||||
<Button.Group color='blue' size={'mini'}>
|
<Button.Group color='olive' size={'tiny'}>
|
||||||
<Button
|
<Button
|
||||||
size={'mini'}
|
size={'tiny'}
|
||||||
positive
|
positive
|
||||||
onClick={() => onOpenLink('', token.key)}
|
onClick={() => onOpenLink('', token.key)}
|
||||||
>
|
>
|
||||||
@@ -456,7 +456,7 @@ const TokensTable = () => {
|
|||||||
hoverable
|
hoverable
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
size={'mini'}
|
size={'tiny'}
|
||||||
negative
|
negative
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
manageToken(token.id, 'delete', idx);
|
manageToken(token.id, 'delete', idx);
|
||||||
@@ -466,7 +466,7 @@ const TokensTable = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</Popup>
|
</Popup>
|
||||||
<Button
|
<Button
|
||||||
size={'mini'}
|
size={'tiny'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
manageToken(
|
manageToken(
|
||||||
token.id,
|
token.id,
|
||||||
@@ -480,7 +480,7 @@ const TokensTable = () => {
|
|||||||
: t('token.buttons.enable')}
|
: t('token.buttons.enable')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
size={'mini'}
|
size={'tiny'}
|
||||||
as={Link}
|
as={Link}
|
||||||
to={'/token/edit/' + token.id}
|
to={'/token/edit/' + token.id}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
"expired_time": "Expiry Time",
|
"expired_time": "Expiry Time",
|
||||||
"actions": "Actions",
|
"actions": "Actions",
|
||||||
"no_name": "None",
|
"no_name": "None",
|
||||||
"never_expire": "Never Expires",
|
"never_expire": "never",
|
||||||
"unlimited": "Unlimited",
|
"unlimited": "Unlimited",
|
||||||
"status_enabled": "Enabled",
|
"status_enabled": "Enabled",
|
||||||
"status_disabled": "Disabled",
|
"status_disabled": "Disabled",
|
||||||
|
|||||||
Reference in New Issue
Block a user