2024-04-04 13:25:32 +00:00
|
|
|
import { createColumnHelper } from '@tanstack/react-table';
|
|
|
|
|
|
|
|
import { isoDateFromTimestamp } from '@/portainer/filters/filters';
|
|
|
|
|
|
|
|
import { buildNameColumn } from '@@/datatables/buildNameColumn';
|
|
|
|
|
|
|
|
import { EdgeJob } from '../types';
|
|
|
|
|
|
|
|
const columnHelper = createColumnHelper<EdgeJob>();
|
|
|
|
|
|
|
|
export const columns = [
|
2024-04-11 00:11:38 +00:00
|
|
|
buildNameColumn<EdgeJob>('Name', '.job', 'edge-job-name'),
|
2024-04-04 13:25:32 +00:00
|
|
|
columnHelper.accessor('CronExpression', {
|
|
|
|
header: 'Cron Expression',
|
|
|
|
}),
|
|
|
|
columnHelper.accessor('Created', {
|
|
|
|
header: 'Created',
|
|
|
|
cell: ({ getValue }) => isoDateFromTimestamp(getValue()),
|
|
|
|
}),
|
|
|
|
];
|