foreman_leapp 4.1.2 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_leapp/locale/de/foreman_leapp.js +37 -4
- data/app/assets/javascripts/foreman_leapp/locale/en/foreman_leapp.js +36 -3
- data/app/assets/javascripts/foreman_leapp/locale/fr/foreman_leapp.js +37 -4
- data/app/assets/javascripts/foreman_leapp/locale/ja/foreman_leapp.js +37 -4
- data/app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js +40 -7
- data/app/assets/javascripts/foreman_leapp/locale/ko/foreman_leapp.js +37 -4
- data/app/assets/javascripts/foreman_leapp/locale/zh_CN/foreman_leapp.js +37 -4
- data/app/controllers/api/v2/preupgrade_report_entries_controller.rb +17 -29
- data/app/controllers/concerns/foreman_leapp/preupgrade_report_entry_bulk_remediate.rb +69 -0
- data/app/lib/actions/foreman_leapp/preupgrade_job.rb +1 -2
- data/app/lib/helpers/job_helper.rb +8 -0
- data/app/views/api/v2/job_invocations/leapp_preupgrade_report.json.rabl +3 -0
- data/config/routes.rb +1 -2
- data/lib/foreman_leapp/engine.rb +3 -12
- data/lib/foreman_leapp/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/de/foreman_leapp.po +38 -5
- data/locale/en/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/en/foreman_leapp.po +36 -3
- data/locale/foreman_leapp.pot +66 -18
- data/locale/fr/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/fr/foreman_leapp.po +38 -5
- data/locale/ja/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ja/foreman_leapp.po +38 -5
- data/locale/ka/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ka/foreman_leapp.po +41 -8
- data/locale/ko/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ko/foreman_leapp.po +38 -5
- data/locale/zh_CN/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/zh_CN/foreman_leapp.po +38 -5
- data/package.json +0 -1
- data/test/functional/api/v2/job_invocations_controller_test.rb +39 -0
- data/test/functional/api/v2/preupgrade_report_entries_controller_test.rb +64 -0
- data/test/unit/helpers/job_helper_test.rb +20 -0
- data/webpack/components/PreupgradeReportsTable/PreupgradeReportsTableHelpers.js +44 -17
- data/webpack/components/PreupgradeReportsTable/__tests__/PreupgradeReportsTable.test.js +131 -10
- data/webpack/components/PreupgradeReportsTable/index.js +67 -74
- data/webpack/index.js +0 -13
- metadata +7 -67
- data/app/controllers/preupgrade_reports_controller.rb +0 -17
- data/app/views/job_invocations/_leapp_preupgrade_report.html.erb +0 -11
- data/app/views/preupgrade_report_entries/base.json.rabl +0 -4
- data/app/views/preupgrade_reports/index.json.rabl +0 -3
- data/app/views/preupgrade_reports/show.json.rabl +0 -7
- data/test/functional/preupgrade_reports_controller_test.rb +0 -39
- data/webpack/components/PreupgradeReports/PreupgradeReports.js +0 -154
- data/webpack/components/PreupgradeReports/PreupgradeReportsActions.js +0 -31
- data/webpack/components/PreupgradeReports/PreupgradeReportsHelpers.js +0 -152
- data/webpack/components/PreupgradeReports/PreupgradeReportsReducer.js +0 -37
- data/webpack/components/PreupgradeReports/PreupgradeReportsSelectors.js +0 -18
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReports.fixtures.js +0 -129
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReports.test.js +0 -159
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsHelpers.test.js +0 -78
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsReducer.test.js +0 -44
- data/webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js +0 -28
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsHelpers.test.js.snap +0 -489
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsReducer.test.js.snap +0 -102
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsSelectors.test.js.snap +0 -76
- data/webpack/components/PreupgradeReports/components/EntriesFilter.js +0 -121
- data/webpack/components/PreupgradeReports/components/EntriesFilter.scss +0 -3
- data/webpack/components/PreupgradeReports/components/EntriesFilter.test.js +0 -30
- data/webpack/components/PreupgradeReports/components/FixSelectedButton.js +0 -35
- data/webpack/components/PreupgradeReports/components/FixSelectedButton.test.js +0 -15
- data/webpack/components/PreupgradeReports/components/NoReports.js +0 -35
- data/webpack/components/PreupgradeReports/components/NoReports.test.js +0 -29
- data/webpack/components/PreupgradeReports/components/UpgradeAllButton.js +0 -28
- data/webpack/components/PreupgradeReports/components/UpgradeAllButton.test.js +0 -17
- data/webpack/components/PreupgradeReports/components/__snapshots__/EntriesFilter.test.js.snap +0 -330
- data/webpack/components/PreupgradeReports/components/__snapshots__/FixSelectedButton.test.js.snap +0 -40
- data/webpack/components/PreupgradeReports/components/__snapshots__/UpgradeAllButton.test.js.snap +0 -41
- data/webpack/components/PreupgradeReports/index.js +0 -57
- data/webpack/components/PreupgradeReportsList/PreupgradeReportList.scss +0 -37
- data/webpack/components/PreupgradeReportsList/__tests__/PreupgradeReportsList.test.js +0 -124
- data/webpack/components/PreupgradeReportsList/components/EmptyInfoItem.js +0 -16
- data/webpack/components/PreupgradeReportsList/components/InfoItem.js +0 -34
- data/webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js +0 -33
- data/webpack/components/PreupgradeReportsList/components/PreupgradeReportEntry.js +0 -64
- data/webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js +0 -56
- data/webpack/components/PreupgradeReportsList/components/SortableHeaderItem.js +0 -50
- data/webpack/components/PreupgradeReportsList/components/__tests__/EmptyInfoItem.test.js +0 -13
- data/webpack/components/PreupgradeReportsList/components/__tests__/InhibitorInfoItem.test.js +0 -27
- data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportEntry.fixtures.js +0 -38
- data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportEntry.test.js +0 -14
- data/webpack/components/PreupgradeReportsList/components/__tests__/PreupgradeReportsListHeader.test.js +0 -14
- data/webpack/components/PreupgradeReportsList/components/__tests__/SortableHeaderItem.test.js +0 -29
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/EmptyInfoItem.test.js.snap +0 -8
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/InhibitorInfoItem.test.js.snap +0 -32
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/PreupgradeReportEntry.test.js.snap +0 -134
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/PreupgradeReportsListHeader.test.js.snap +0 -113
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/SortableHeaderItem.test.js.snap +0 -36
- data/webpack/components/PreupgradeReportsList/components/__tests__/__snapshots__/helpers.test.js.snap +0 -197
- data/webpack/components/PreupgradeReportsList/components/__tests__/helpers.test.js +0 -28
- data/webpack/components/PreupgradeReportsList/components/foreman_leapp.scss +0 -15
- data/webpack/components/PreupgradeReportsList/components/helpers.js +0 -186
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-critical.svg +0 -61
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-high.svg +0 -61
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-low.svg +0 -62
- data/webpack/components/PreupgradeReportsList/components/images/i_severity-med.svg +0 -62
- data/webpack/components/PreupgradeReportsList/index.js +0 -61
- data/webpack/consts.js +0 -3
- data/webpack/csrf.js +0 -4
- data/webpack/reducer.js +0 -5
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Grid, ListView, Badge, Icon } from 'patternfly-react';
|
|
3
|
-
import { translate as __ } from 'foremanReact/common/I18n';
|
|
4
|
-
|
|
5
|
-
import EmptyInfoItem from './EmptyInfoItem';
|
|
6
|
-
import SeverityHigh from './images/i_severity-high.svg';
|
|
7
|
-
import SeverityMedium from './images/i_severity-med.svg';
|
|
8
|
-
import SeverityLow from './images/i_severity-low.svg';
|
|
9
|
-
|
|
10
|
-
export const itemIteratorId = (entry, ...rest) =>
|
|
11
|
-
`${entry.id}-${entry.preupgradeReportId}-${rest.join('-')}`;
|
|
12
|
-
|
|
13
|
-
export const tagInfo = tags =>
|
|
14
|
-
tags.map(attr => (
|
|
15
|
-
<Badge key={attr} variant="pill primary">
|
|
16
|
-
{attr}
|
|
17
|
-
</Badge>
|
|
18
|
-
));
|
|
19
|
-
|
|
20
|
-
export const getSeverityImg = entry => {
|
|
21
|
-
const key = itemIteratorId(entry, `sv${entry.id}`);
|
|
22
|
-
|
|
23
|
-
switch (entry.severity) {
|
|
24
|
-
case 'low':
|
|
25
|
-
return (
|
|
26
|
-
<img
|
|
27
|
-
key={key}
|
|
28
|
-
src={SeverityLow}
|
|
29
|
-
alt={__('Low Risk Factor')}
|
|
30
|
-
className="severity-img"
|
|
31
|
-
/>
|
|
32
|
-
);
|
|
33
|
-
case 'medium':
|
|
34
|
-
return (
|
|
35
|
-
<img
|
|
36
|
-
key={key}
|
|
37
|
-
src={SeverityMedium}
|
|
38
|
-
alt={__('Medium Risk Factor')}
|
|
39
|
-
className="severity-img"
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
42
|
-
case 'high':
|
|
43
|
-
return (
|
|
44
|
-
<img
|
|
45
|
-
key={key}
|
|
46
|
-
src={SeverityHigh}
|
|
47
|
-
alt={__('High Risk Factor')}
|
|
48
|
-
className="severity-img"
|
|
49
|
-
/>
|
|
50
|
-
);
|
|
51
|
-
default:
|
|
52
|
-
return (
|
|
53
|
-
<img
|
|
54
|
-
key={key}
|
|
55
|
-
src={SeverityLow}
|
|
56
|
-
alt={__('Low Risk Factor')}
|
|
57
|
-
className="severity-img"
|
|
58
|
-
/>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const hasRemediations = entry => {
|
|
64
|
-
const key = itemIteratorId(entry, `rm${entry.id}`);
|
|
65
|
-
if (entry.detail && entry.detail.remediations) {
|
|
66
|
-
return (
|
|
67
|
-
<ListView.InfoItem key={key}>
|
|
68
|
-
<Icon type="pf" name="warning-triangle-o" /> {__('Has Remediation')}
|
|
69
|
-
</ListView.InfoItem>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return <EmptyInfoItem key={key} entry={entry} attr="remediation" />;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const getTitle = entry => {
|
|
77
|
-
if (entry.title) {
|
|
78
|
-
return (
|
|
79
|
-
<Grid.Row>
|
|
80
|
-
<Grid.Col md={1}>
|
|
81
|
-
<strong>{__('Title')}</strong>
|
|
82
|
-
</Grid.Col>
|
|
83
|
-
<Grid.Col md={8}>{entry.title}</Grid.Col>
|
|
84
|
-
</Grid.Row>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
return <div />;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export const getSeverity = entry => {
|
|
91
|
-
if (entry.severity) {
|
|
92
|
-
return (
|
|
93
|
-
<Grid.Row className="top-padded">
|
|
94
|
-
<Grid.Col md={1}>
|
|
95
|
-
<strong>{__('Risk Factor')}</strong>
|
|
96
|
-
</Grid.Col>
|
|
97
|
-
<Grid.Col md={8}>
|
|
98
|
-
{getSeverityImg(entry)} {entry.severity}
|
|
99
|
-
</Grid.Col>
|
|
100
|
-
</Grid.Row>
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
return <div />;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export const getSummary = entry => {
|
|
107
|
-
if (entry.summary) {
|
|
108
|
-
return (
|
|
109
|
-
<Grid.Row className="top-padded">
|
|
110
|
-
<Grid.Col md={1}>
|
|
111
|
-
<strong>{__('Summary')}</strong>
|
|
112
|
-
</Grid.Col>
|
|
113
|
-
<Grid.Col md={8} className="pre-wrap">
|
|
114
|
-
{entry.summary}
|
|
115
|
-
</Grid.Col>
|
|
116
|
-
</Grid.Row>
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
return <div />;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export const getTags = entry => {
|
|
123
|
-
if (entry.tags) {
|
|
124
|
-
return (
|
|
125
|
-
<Grid.Row className="top-padded">
|
|
126
|
-
<Grid.Col md={1}>
|
|
127
|
-
<strong>{__('Tags')}</strong>
|
|
128
|
-
</Grid.Col>
|
|
129
|
-
<Grid.Col md={8}>{tagInfo(entry.tags)}</Grid.Col>
|
|
130
|
-
</Grid.Row>
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
return <div />;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export const getExternals = entry => {
|
|
137
|
-
if (entry.detail && entry.detail.external) {
|
|
138
|
-
return entry.detail.external.map(attr => {
|
|
139
|
-
const key = itemIteratorId(entry, attr);
|
|
140
|
-
return (
|
|
141
|
-
<Grid.Row className="top-padded" key={key}>
|
|
142
|
-
<Grid.Col md={1}>
|
|
143
|
-
<strong>{__('Links')}</strong>
|
|
144
|
-
</Grid.Col>
|
|
145
|
-
<Grid.Col md={8}>
|
|
146
|
-
<a href={attr.url}>{attr.title}</a>
|
|
147
|
-
</Grid.Col>
|
|
148
|
-
</Grid.Row>
|
|
149
|
-
);
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
return <div />;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
export const getRemediations = entry => {
|
|
156
|
-
if (entry.detail && entry.detail.remediations) {
|
|
157
|
-
return entry.detail.remediations.map(attr => {
|
|
158
|
-
const key = itemIteratorId(entry, attr);
|
|
159
|
-
if (attr.type === 'hint') {
|
|
160
|
-
return (
|
|
161
|
-
<Grid.Row className="top-padded" key={key}>
|
|
162
|
-
<Grid.Col md={1}>
|
|
163
|
-
<strong>{__('Hint')}</strong>
|
|
164
|
-
</Grid.Col>
|
|
165
|
-
<Grid.Col md={8}>{attr.context}</Grid.Col>
|
|
166
|
-
</Grid.Row>
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
if (attr.type === 'command') {
|
|
170
|
-
return (
|
|
171
|
-
<Grid.Row className="top-padded" key={key}>
|
|
172
|
-
<Grid.Col md={1}>
|
|
173
|
-
<strong>{__('Command')}</strong>
|
|
174
|
-
</Grid.Col>
|
|
175
|
-
<Grid.Col md={8}>
|
|
176
|
-
<code>{attr.context.join(' ')}</code>
|
|
177
|
-
</Grid.Col>
|
|
178
|
-
</Grid.Row>
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return <div />;
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
return <div />;
|
|
186
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
-
version="1.1"
|
|
13
|
-
id="Layer_1"
|
|
14
|
-
x="0px"
|
|
15
|
-
y="0px"
|
|
16
|
-
viewBox="0 0 146 166"
|
|
17
|
-
style="enable-background:new 0 0 146 166;"
|
|
18
|
-
xml:space="preserve"
|
|
19
|
-
sodipodi:docname="i_critical.svg"
|
|
20
|
-
inkscape:version="0.92.1 r"><metadata
|
|
21
|
-
id="metadata4612"><rdf:RDF><cc:Work
|
|
22
|
-
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
23
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
|
24
|
-
id="defs4610" /><sodipodi:namedview
|
|
25
|
-
pagecolor="#ffffff"
|
|
26
|
-
bordercolor="#666666"
|
|
27
|
-
borderopacity="1"
|
|
28
|
-
objecttolerance="10"
|
|
29
|
-
gridtolerance="10"
|
|
30
|
-
guidetolerance="10"
|
|
31
|
-
inkscape:pageopacity="0"
|
|
32
|
-
inkscape:pageshadow="2"
|
|
33
|
-
inkscape:window-width="1920"
|
|
34
|
-
inkscape:window-height="1055"
|
|
35
|
-
id="namedview4608"
|
|
36
|
-
showgrid="false"
|
|
37
|
-
inkscape:zoom="1.4216867"
|
|
38
|
-
inkscape:cx="73"
|
|
39
|
-
inkscape:cy="83"
|
|
40
|
-
inkscape:window-x="0"
|
|
41
|
-
inkscape:window-y="1050"
|
|
42
|
-
inkscape:window-maximized="1"
|
|
43
|
-
inkscape:current-layer="Layer_1" /><style
|
|
44
|
-
type="text/css"
|
|
45
|
-
id="style4593">
|
|
46
|
-
.st0{fill:#808080;}
|
|
47
|
-
.st1{fill:#CC0000;}
|
|
48
|
-
</style><g
|
|
49
|
-
id="g4605"><path
|
|
50
|
-
class="st1"
|
|
51
|
-
d="M114.6,143.3H31c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.6,13-10.6h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,138.5,121.8,143.3,114.6,143.3z"
|
|
52
|
-
id="path4597" /><path
|
|
53
|
-
class="st1"
|
|
54
|
-
d="M114.6,110.2H31c-7.2,0-13-4.8-13-10.6l0,0C18,93.7,23.9,89,31,89h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,105.4,121.8,110.2,114.6,110.2z"
|
|
55
|
-
id="path4599" /><path
|
|
56
|
-
class="st1"
|
|
57
|
-
d="M115,77.1H31.4c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.6,13-10.6H115c7.2,0,13,4.8,13,10.6l0,0 C128,72.3,122.1,77.1,115,77.1z"
|
|
58
|
-
id="path4601" /><path
|
|
59
|
-
class="st1"
|
|
60
|
-
d="M114.6,44H31c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.7,13-10.7h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,39.2,121.8,44,114.6,44z"
|
|
61
|
-
id="path4603" /></g></svg>
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
-
version="1.1"
|
|
13
|
-
id="Layer_1"
|
|
14
|
-
x="0px"
|
|
15
|
-
y="0px"
|
|
16
|
-
viewBox="0 0 146 166"
|
|
17
|
-
style="enable-background:new 0 0 146 166;"
|
|
18
|
-
xml:space="preserve"
|
|
19
|
-
sodipodi:docname="i_high.svg"
|
|
20
|
-
inkscape:version="0.92.1 r"><metadata
|
|
21
|
-
id="metadata6016"><rdf:RDF><cc:Work
|
|
22
|
-
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
23
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
|
24
|
-
id="defs6014" /><sodipodi:namedview
|
|
25
|
-
pagecolor="#ffffff"
|
|
26
|
-
bordercolor="#666666"
|
|
27
|
-
borderopacity="1"
|
|
28
|
-
objecttolerance="10"
|
|
29
|
-
gridtolerance="10"
|
|
30
|
-
guidetolerance="10"
|
|
31
|
-
inkscape:pageopacity="0"
|
|
32
|
-
inkscape:pageshadow="2"
|
|
33
|
-
inkscape:window-width="1920"
|
|
34
|
-
inkscape:window-height="1055"
|
|
35
|
-
id="namedview6012"
|
|
36
|
-
showgrid="false"
|
|
37
|
-
inkscape:zoom="1.4216867"
|
|
38
|
-
inkscape:cx="73"
|
|
39
|
-
inkscape:cy="83"
|
|
40
|
-
inkscape:window-x="0"
|
|
41
|
-
inkscape:window-y="1050"
|
|
42
|
-
inkscape:window-maximized="1"
|
|
43
|
-
inkscape:current-layer="Layer_1" /><style
|
|
44
|
-
type="text/css"
|
|
45
|
-
id="style5999">
|
|
46
|
-
.st0{fill:#808080;}
|
|
47
|
-
.st1{fill:#F39800;}
|
|
48
|
-
.st2{fill:#CCCCCC;}
|
|
49
|
-
</style><path
|
|
50
|
-
class="st1"
|
|
51
|
-
d="M114.6,143.3H31c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.6,13-10.6h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,138.5,121.8,143.3,114.6,143.3z"
|
|
52
|
-
id="path6003" /><path
|
|
53
|
-
class="st1"
|
|
54
|
-
d="M114.6,110.2H31c-7.2,0-13-4.8-13-10.6l0,0C18,93.7,23.9,89,31,89h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,105.4,121.8,110.2,114.6,110.2z"
|
|
55
|
-
id="path6005" /><path
|
|
56
|
-
class="st1"
|
|
57
|
-
d="M115,77.1H31.4c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.6,13-10.6H115c7.2,0,13,4.8,13,10.6l0,0 C128,72.3,122.1,77.1,115,77.1z"
|
|
58
|
-
id="path6007" /><path
|
|
59
|
-
class="st2"
|
|
60
|
-
d="M99.6,40.2H46c-4.6,0-8.4-3.1-8.4-6.8l0,0c0-3.8,3.8-6.9,8.4-6.9h53.7c4.6,0,8.4,3.1,8.4,6.8l0,0 C108.1,37.1,104.3,40.2,99.6,40.2z"
|
|
61
|
-
id="path6009" /></svg>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
-
version="1.1"
|
|
13
|
-
id="Layer_1"
|
|
14
|
-
x="0px"
|
|
15
|
-
y="0px"
|
|
16
|
-
viewBox="0 0 146 166"
|
|
17
|
-
style="enable-background:new 0 0 146 166;"
|
|
18
|
-
xml:space="preserve"
|
|
19
|
-
sodipodi:docname="i_low.svg"
|
|
20
|
-
inkscape:version="0.92.1 r"><metadata
|
|
21
|
-
id="metadata6693"><rdf:RDF><cc:Work
|
|
22
|
-
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
23
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
|
24
|
-
id="defs6691" /><sodipodi:namedview
|
|
25
|
-
pagecolor="#ffffff"
|
|
26
|
-
bordercolor="#666666"
|
|
27
|
-
borderopacity="1"
|
|
28
|
-
objecttolerance="10"
|
|
29
|
-
gridtolerance="10"
|
|
30
|
-
guidetolerance="10"
|
|
31
|
-
inkscape:pageopacity="0"
|
|
32
|
-
inkscape:pageshadow="2"
|
|
33
|
-
inkscape:window-width="1920"
|
|
34
|
-
inkscape:window-height="1055"
|
|
35
|
-
id="namedview6689"
|
|
36
|
-
showgrid="false"
|
|
37
|
-
inkscape:zoom="1.4216867"
|
|
38
|
-
inkscape:cx="73"
|
|
39
|
-
inkscape:cy="83"
|
|
40
|
-
inkscape:window-x="0"
|
|
41
|
-
inkscape:window-y="1050"
|
|
42
|
-
inkscape:window-maximized="1"
|
|
43
|
-
inkscape:current-layer="Layer_1" /><style
|
|
44
|
-
type="text/css"
|
|
45
|
-
id="style6674">
|
|
46
|
-
.st0{fill:#808080;}
|
|
47
|
-
.st1{fill:#94D400;}
|
|
48
|
-
.st2{fill:#CCCCCC;}
|
|
49
|
-
</style><g
|
|
50
|
-
id="g6678" /><path
|
|
51
|
-
class="st1"
|
|
52
|
-
d="M114.6,143.3H31c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.6,13-10.6h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,138.5,121.8,143.3,114.6,143.3z"
|
|
53
|
-
id="path6680" /><path
|
|
54
|
-
class="st2"
|
|
55
|
-
d="M99.6,40.2H46c-4.6,0-8.4-3.1-8.4-6.8l0,0c0-3.8,3.8-6.9,8.4-6.9h53.7c4.6,0,8.4,3.1,8.4,6.8l0,0 C108.1,37.1,104.3,40.2,99.6,40.2z"
|
|
56
|
-
id="path6682" /><path
|
|
57
|
-
class="st2"
|
|
58
|
-
d="M99.6,73.3H46c-4.6,0-8.4-3.1-8.4-6.8l0,0c0-3.8,3.8-6.9,8.4-6.9h53.7c4.6,0,8.4,3.1,8.4,6.8l0,0 C108.1,70.2,104.3,73.3,99.6,73.3z"
|
|
59
|
-
id="path6684" /><path
|
|
60
|
-
class="st2"
|
|
61
|
-
d="M99.6,106.4H46c-4.6,0-8.4-3.1-8.4-6.8l0,0c0-3.8,3.8-6.9,8.4-6.9h53.7c4.6,0,8.4,3.1,8.4,6.8l0,0 C108.1,103.3,104.3,106.4,99.6,106.4z"
|
|
62
|
-
id="path6686" /></svg>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
-
version="1.1"
|
|
13
|
-
id="Layer_1"
|
|
14
|
-
x="0px"
|
|
15
|
-
y="0px"
|
|
16
|
-
viewBox="0 0 146 166"
|
|
17
|
-
style="enable-background:new 0 0 146 166;"
|
|
18
|
-
xml:space="preserve"
|
|
19
|
-
sodipodi:docname="i_med.svg"
|
|
20
|
-
inkscape:version="0.92.1 r"><metadata
|
|
21
|
-
id="metadata7574"><rdf:RDF><cc:Work
|
|
22
|
-
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
23
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
|
24
|
-
id="defs7572" /><sodipodi:namedview
|
|
25
|
-
pagecolor="#ffffff"
|
|
26
|
-
bordercolor="#666666"
|
|
27
|
-
borderopacity="1"
|
|
28
|
-
objecttolerance="10"
|
|
29
|
-
gridtolerance="10"
|
|
30
|
-
guidetolerance="10"
|
|
31
|
-
inkscape:pageopacity="0"
|
|
32
|
-
inkscape:pageshadow="2"
|
|
33
|
-
inkscape:window-width="834"
|
|
34
|
-
inkscape:window-height="480"
|
|
35
|
-
id="namedview7570"
|
|
36
|
-
showgrid="false"
|
|
37
|
-
inkscape:zoom="1.4216867"
|
|
38
|
-
inkscape:cx="73"
|
|
39
|
-
inkscape:cy="83"
|
|
40
|
-
inkscape:window-x="0"
|
|
41
|
-
inkscape:window-y="1050"
|
|
42
|
-
inkscape:window-maximized="0"
|
|
43
|
-
inkscape:current-layer="Layer_1" /><style
|
|
44
|
-
type="text/css"
|
|
45
|
-
id="style7555">
|
|
46
|
-
.st0{fill:#808080;}
|
|
47
|
-
.st1{fill:#DEC800;}
|
|
48
|
-
.st2{fill:#CCCCCC;}
|
|
49
|
-
</style><g
|
|
50
|
-
id="g7559" /><path
|
|
51
|
-
class="st1"
|
|
52
|
-
d="M114.6,143.3H31c-7.2,0-13-4.8-13-10.6l0,0c0-5.9,5.9-10.6,13-10.6h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,138.5,121.8,143.3,114.6,143.3z"
|
|
53
|
-
id="path7561" /><path
|
|
54
|
-
class="st1"
|
|
55
|
-
d="M114.6,110.2H31c-7.2,0-13-4.8-13-10.6l0,0C18,93.7,23.9,89,31,89h83.6c7.2,0,13,4.8,13,10.6l0,0 C127.7,105.4,121.8,110.2,114.6,110.2z"
|
|
56
|
-
id="path7563" /><path
|
|
57
|
-
class="st2"
|
|
58
|
-
d="M99.6,40.2H46c-4.6,0-8.4-3.1-8.4-6.8l0,0c0-3.8,3.8-6.9,8.4-6.9h53.7c4.6,0,8.4,3.1,8.4,6.8l0,0 C108.1,37.1,104.3,40.2,99.6,40.2z"
|
|
59
|
-
id="path7565" /><path
|
|
60
|
-
class="st2"
|
|
61
|
-
d="M99.6,73.3H46c-4.6,0-8.4-3.1-8.4-6.8l0,0c0-3.8,3.8-6.9,8.4-6.9h53.7c4.6,0,8.4,3.1,8.4,6.8l0,0 C108.1,70.2,104.3,73.3,99.6,73.3z"
|
|
62
|
-
id="path7567" /></svg>
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { ListView } from 'patternfly-react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
5
|
-
import Pagination from 'foremanReact/components/Pagination';
|
|
6
|
-
import { useForemanSettings } from 'foremanReact/Root/Context/ForemanContext';
|
|
7
|
-
|
|
8
|
-
import PreupgradeReportEntry from './components/PreupgradeReportEntry';
|
|
9
|
-
import PreupgradeReportsListHeader from './components/PreupgradeReportsListHeader';
|
|
10
|
-
import { entriesPage } from '../PreupgradeReports/PreupgradeReportsHelpers';
|
|
11
|
-
|
|
12
|
-
import './PreupgradeReportList.scss';
|
|
13
|
-
|
|
14
|
-
const PreupgradeReportsList = ({
|
|
15
|
-
allEntries,
|
|
16
|
-
isSelected,
|
|
17
|
-
toggleSelected,
|
|
18
|
-
sort,
|
|
19
|
-
changeSort,
|
|
20
|
-
toggleSelectAll,
|
|
21
|
-
}) => {
|
|
22
|
-
const { perPage } = useForemanSettings();
|
|
23
|
-
const [pagination, setPagination] = useState({
|
|
24
|
-
page: 1,
|
|
25
|
-
perPage,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<ListView id="preupgrade-report-entries-list-view">
|
|
30
|
-
<PreupgradeReportsListHeader
|
|
31
|
-
sort={sort}
|
|
32
|
-
changeSort={changeSort}
|
|
33
|
-
toggleSelectAll={toggleSelectAll}
|
|
34
|
-
/>
|
|
35
|
-
{entriesPage(allEntries, pagination).map((entry, idx) => (
|
|
36
|
-
<PreupgradeReportEntry
|
|
37
|
-
entry={entry}
|
|
38
|
-
key={idx}
|
|
39
|
-
isEntrySelected={isSelected(entry)}
|
|
40
|
-
toggleSelected={toggleSelected}
|
|
41
|
-
/>
|
|
42
|
-
))}
|
|
43
|
-
<Pagination
|
|
44
|
-
viewType="list"
|
|
45
|
-
itemCount={allEntries.length}
|
|
46
|
-
onChange={newPage => setPagination({ ...pagination, ...newPage })}
|
|
47
|
-
/>
|
|
48
|
-
</ListView>
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
PreupgradeReportsList.propTypes = {
|
|
53
|
-
allEntries: PropTypes.array.isRequired,
|
|
54
|
-
isSelected: PropTypes.func.isRequired,
|
|
55
|
-
toggleSelected: PropTypes.func.isRequired,
|
|
56
|
-
sort: PropTypes.object.isRequired,
|
|
57
|
-
changeSort: PropTypes.func.isRequired,
|
|
58
|
-
toggleSelectAll: PropTypes.func.isRequired,
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export default PreupgradeReportsList;
|
data/webpack/consts.js
DELETED
data/webpack/csrf.js
DELETED