feat: show the apikey mask value
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'apikeys.title': 'API Keys',
|
'apikeys.title': 'API Keys',
|
||||||
'apikeys.table.apikeys': 'keys',
|
'apikeys.table.apikeys': 'keys',
|
||||||
|
'apikeys.table.key': 'Key',
|
||||||
'apikeys.button.create': 'Add API Key',
|
'apikeys.button.create': 'Add API Key',
|
||||||
'apikeys.button.edit': 'Edit API Key',
|
'apikeys.button.edit': 'Edit API Key',
|
||||||
'apikeys.title.save': 'Save API Key',
|
'apikeys.title.save': 'Save API Key',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'apikeys.title': 'APIキー',
|
'apikeys.title': 'APIキー',
|
||||||
'apikeys.table.apikeys': 'キー',
|
'apikeys.table.apikeys': 'キー',
|
||||||
|
'apikeys.table.key': 'キー',
|
||||||
'apikeys.button.create': '新しいAPIキーを作成',
|
'apikeys.button.create': '新しいAPIキーを作成',
|
||||||
'apikeys.button.edit': 'APIキーを編集',
|
'apikeys.button.edit': 'APIキーを編集',
|
||||||
'apikeys.title.save': 'APIキーを保存',
|
'apikeys.title.save': 'APIキーを保存',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'apikeys.title': 'API-ключи',
|
'apikeys.title': 'API-ключи',
|
||||||
'apikeys.table.apikeys': 'Ключи',
|
'apikeys.table.apikeys': 'Ключи',
|
||||||
|
'apikeys.table.key': 'Ключ',
|
||||||
'apikeys.button.create': 'Создать API-ключ',
|
'apikeys.button.create': 'Создать API-ключ',
|
||||||
'apikeys.button.edit': 'Редактировать API-ключ',
|
'apikeys.button.edit': 'Редактировать API-ключ',
|
||||||
'apikeys.title.save': 'Сохранить API-ключ',
|
'apikeys.title.save': 'Сохранить API-ключ',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'apikeys.title': 'API 密钥',
|
'apikeys.title': 'API 密钥',
|
||||||
'apikeys.table.apikeys': '密钥',
|
'apikeys.table.apikeys': '密钥',
|
||||||
|
'apikeys.table.key': '密钥',
|
||||||
'apikeys.button.create': '添加 API 密钥',
|
'apikeys.button.create': '添加 API 密钥',
|
||||||
'apikeys.button.edit': '编辑 API 密钥',
|
'apikeys.button.edit': '编辑 API 密钥',
|
||||||
'apikeys.title.save': '保存 API 密钥',
|
'apikeys.title.save': '保存 API 密钥',
|
||||||
|
|||||||
@@ -47,6 +47,16 @@ const useModelsColumns = ({
|
|||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: intl.formatMessage({ id: 'apikeys.table.key' }),
|
||||||
|
dataIndex: 'masked_value',
|
||||||
|
key: 'masked_value',
|
||||||
|
render: (text: string, record: ListItem) => (
|
||||||
|
<AutoTooltip ghost style={{ maxWidth: 400 }}>
|
||||||
|
{text}
|
||||||
|
</AutoTooltip>
|
||||||
|
)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'apikeys.form.expiretime' }),
|
title: intl.formatMessage({ id: 'apikeys.form.expiretime' }),
|
||||||
dataIndex: 'expires_at',
|
dataIndex: 'expires_at',
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const Header = styled.div`
|
|||||||
|
|
||||||
const CardName = styled.div`
|
const CardName = styled.div`
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: var(--ant-color-text);
|
color: var(--ant-color-text);
|
||||||
|
|||||||
Reference in New Issue
Block a user