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.
83 lines
1.8 KiB
83 lines
1.8 KiB
import { useLocalization } from '/@/hooks/abp/useLocalization';
|
|
import { BasicColumn } from '/@/components/Table';
|
|
import { formatToDateTime } from '/@/utils/dateUtil';
|
|
|
|
const { L } = useLocalization(['AbpOpenIddict']);
|
|
|
|
export function getDataColumns(): BasicColumn[] {
|
|
return [
|
|
{
|
|
title: 'id',
|
|
dataIndex: 'id',
|
|
align: 'left',
|
|
width: 1,
|
|
ifShow: false
|
|
},
|
|
{
|
|
title: L('DisplayName:ApplicationId'),
|
|
dataIndex: 'applicationId',
|
|
align: 'left',
|
|
width: 300,
|
|
sorter: true,
|
|
resizable: true,
|
|
},
|
|
{
|
|
title: L('DisplayName:AuthorizationId'),
|
|
dataIndex: 'authorizationId',
|
|
align: 'left',
|
|
width: 300,
|
|
sorter: true,
|
|
resizable: true,
|
|
},
|
|
{
|
|
title: L('DisplayName:Subject'),
|
|
dataIndex: 'subject',
|
|
align: 'left',
|
|
width: 300,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('DisplayName:Type'),
|
|
dataIndex: 'type',
|
|
align: 'left',
|
|
width: 150,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('DisplayName:CreationDate'),
|
|
dataIndex: 'creationDate',
|
|
align: 'left',
|
|
width: 200,
|
|
sorter: true,
|
|
resizable: true,
|
|
format: (text: string) => {
|
|
return text ? formatToDateTime(text) : '';
|
|
},
|
|
},
|
|
{
|
|
title: L('DisplayName:ExpirationDate'),
|
|
dataIndex: 'expirationDate',
|
|
align: 'left',
|
|
width: 200,
|
|
sorter: true,
|
|
resizable: true,
|
|
format: (text: string) => {
|
|
return text ? formatToDateTime(text) : '';
|
|
},
|
|
},
|
|
{
|
|
title: L('DisplayName:Status'),
|
|
dataIndex: 'status',
|
|
align: 'left',
|
|
width: 150,
|
|
sorter: true,
|
|
},
|
|
{
|
|
title: L('DisplayName:ReferenceId'),
|
|
dataIndex: 'referenceId',
|
|
align: 'left',
|
|
width: 150,
|
|
sorter: true,
|
|
},
|
|
];
|
|
}
|
|
|