You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.2 KiB
113 lines
2.2 KiB
import { useLocalization } from '/@/hooks/abp/useLocalization';
|
|
import { BasicColumn } from '/@/components/Table';
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
|
|
const { L } = useLocalization('AbpIdentityServer');
|
|
|
|
export function getDataColumns(): BasicColumn[] {
|
|
return [
|
|
{
|
|
title: 'id',
|
|
dataIndex: 'id',
|
|
width: 1,
|
|
ifShow: false,
|
|
},
|
|
{
|
|
title: L('Name'),
|
|
dataIndex: 'name',
|
|
align: 'left',
|
|
width: 200,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('DisplayName'),
|
|
dataIndex: 'displayName',
|
|
align: 'left',
|
|
width: 300,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('Description'),
|
|
dataIndex: 'description',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('Resource:Enabled'),
|
|
dataIndex: 'enabled',
|
|
align: 'center',
|
|
width: 200,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('ShowInDiscoveryDocument'),
|
|
dataIndex: 'showInDiscoveryDocument',
|
|
align: 'center',
|
|
width: 200,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('AllowedAccessTokenSigningAlgorithms'),
|
|
dataIndex: 'allowedAccessTokenSigningAlgorithms',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
];
|
|
}
|
|
|
|
export function getSecretColumns(): BasicColumn[] {
|
|
return [
|
|
{
|
|
title: L('Secret:Type'),
|
|
dataIndex: 'type',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('Secret:Value'),
|
|
dataIndex: 'value',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('Description'),
|
|
dataIndex: 'description',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('Expiration'),
|
|
dataIndex: 'expiration',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
format: (text) => {
|
|
return text ? formatToDate(text) : '';
|
|
},
|
|
},
|
|
];
|
|
}
|
|
|
|
export function getPropertyColumns(): BasicColumn[] {
|
|
return [
|
|
{
|
|
title: L('Propertites:Key'),
|
|
dataIndex: 'key',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('Propertites:Value'),
|
|
dataIndex: 'value',
|
|
align: 'left',
|
|
width: 180,
|
|
sorter: true,
|
|
},
|
|
];
|
|
}
|
|
|