-
Notifications
You must be signed in to change notification settings - Fork 285
/
AnsibleCollectionsTableSchema.js
60 lines (57 loc) · 1.17 KB
/
AnsibleCollectionsTableSchema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import React from 'react';
import { Link } from 'react-router-dom';
import { translate as __ } from 'foremanReact/common/I18n';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import {
headerFormatter,
cellFormatter,
} from '../../components/pf3Table/formatters';
const TableSchema = [
{
property: 'name',
header: {
label: __('Name'),
formatters: [headerFormatter],
},
cell: {
formatters: [
(value, { rowData }) => (
<td>
<Link to={urlBuilder('legacy_ansible_collections', '', rowData.id)}>{rowData.name}</Link>
</td>
),
],
},
},
{
property: 'namespace',
header: {
label: __('Author'),
formatters: [headerFormatter],
},
cell: {
formatters: [cellFormatter],
},
},
{
property: 'version',
header: {
label: __('Version'),
formatters: [headerFormatter],
},
cell: {
formatters: [cellFormatter],
},
},
{
property: 'checksum',
header: {
label: __('Checksum'),
formatters: [headerFormatter],
},
cell: {
formatters: [cellFormatter],
},
},
];
export default TableSchema;