foreman_inventory_upload 0.9.2 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/controllers/foreman_inventory_upload/reports_controller.rb +4 -3
- data/app/controllers/foreman_inventory_upload/statuses_controller.rb +41 -0
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +3 -3
- data/app/views/scripts/uploader.sh.erb +12 -25
- data/config/routes.rb +5 -5
- data/lib/foreman_inventory_upload/async/generate_all_reports_job.rb +7 -4
- data/lib/foreman_inventory_upload/async/generate_report_job.rb +10 -18
- data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +17 -12
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +17 -22
- data/lib/foreman_inventory_upload/engine.rb +0 -2
- data/lib/foreman_inventory_upload/generators/archived_report.rb +2 -2
- data/lib/foreman_inventory_upload/generators/queries.rb +10 -19
- data/lib/foreman_inventory_upload/generators/slice.rb +3 -24
- data/lib/foreman_inventory_upload/version.rb +1 -1
- data/lib/foreman_inventory_upload.rb +10 -15
- data/lib/tasks/foreman_inventory_upload_tasks.rake +1 -1
- data/lib/tasks/generator.rake +5 -19
- data/test/controllers/reports_controller_test.rb +3 -3
- data/test/controllers/{accounts_controller_test.rb → statuses_controller_test.rb} +7 -6
- data/test/controllers/uploads_controller_test.rb +3 -3
- data/test/unit/archived_report_generator_test.rb +3 -3
- data/test/unit/slice_generator_test.rb +0 -74
- metadata +41 -180
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +0 -39
- data/package.json +0 -125
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +0 -37
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +0 -74
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.stories.js +0 -18
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +0 -65
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListConstants.js +0 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +0 -55
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +0 -8
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js +0 -16
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/EmptyState.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/__tests__/__snapshots__/EmptyState.test.js.snap +0 -26
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/emptyState.scss +0 -7
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorState.js +0 -23
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/ErrorStateHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/ErrorState.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/__tests__/__snapshots__/ErrorState.test.js.snap +0 -20
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/errorState.scss +0 -18
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ErrorState/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.fixtures.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +0 -41
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItemHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/ListItem.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/__tests__/__snapshots__/ListItem.test.js.snap +0 -50
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/listItem.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.fixtures.js +0 -7
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatus.js +0 -43
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/ListItemStatusHelper.js +0 -29
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/ListItemStatus.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/__tests__/__snapshots__/ListItemStatus.test.js.snap +0 -78
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss +0 -16
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +0 -20
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +0 -60
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +0 -26
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +0 -44
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +0 -47
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +0 -69
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +0 -46
- data/webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss +0 -9
- data/webpack/ForemanInventoryUpload/Components/AccountList/index.js +0 -27
- data/webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.fixtures.js +0 -50
- data/webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.js +0 -146
- data/webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.stories.js +0 -19
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +0 -87
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardConstants.js +0 -9
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardReducer.js +0 -68
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +0 -17
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/Dashboard.test.js +0 -25
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +0 -39
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +0 -16
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardReducer.test.js +0 -64
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +0 -45
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/Dashboard.test.js.snap +0 -36
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/DashboardActions.test.js.snap +0 -76
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/DashboardReducer.test.js.snap +0 -44
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/DashboardSelectors.test.js.snap +0 -42
- data/webpack/ForemanInventoryUpload/Components/Dashboard/dashboard.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/Dashboard/index.js +0 -34
- data/webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js +0 -22
- data/webpack/ForemanInventoryUpload/Components/FileDownload/FileDownloadHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/FileDownload.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/FileDownload/__tests__/__snapshots__/FileDownload.test.js.snap +0 -25
- data/webpack/ForemanInventoryUpload/Components/FileDownload/fileDownload.scss +0 -3
- data/webpack/ForemanInventoryUpload/Components/FileDownload/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +0 -50
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModalHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/FullScreenModal.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +0 -64
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +0 -10
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js +0 -10
- data/webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js +0 -83
- data/webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/NavContainer.test.js +0 -26
- data/webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/__snapshots__/NavContainer.test.js.snap +0 -89
- data/webpack/ForemanInventoryUpload/Components/NavContainer/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/NavContainer/navContainer.scss +0 -7
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js +0 -16
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js +0 -57
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/__tests__/ReportGenerate.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/__tests__/__snapshots__/ReportGenerate.test.js.snap +0 -45
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/ReportGenerate/reportGenerate.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.fixtures.js +0 -18
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUpload.js +0 -57
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/ReportUploadHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/__tests__/ReportUpload.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/__tests__/__snapshots__/ReportUpload.test.js.snap +0 -45
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/ReportUpload/reportUpload.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRun.fixtures.js +0 -3
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRun.js +0 -27
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRunHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap +0 -25
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/scheduledRun.scss +0 -11
- data/webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.js +0 -56
- data/webpack/ForemanInventoryUpload/Components/StatusChart/StatusChartHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/StatusChart.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +0 -74
- data/webpack/ForemanInventoryUpload/Components/StatusChart/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/StatusChart/statusChart.scss +0 -8
- data/webpack/ForemanInventoryUpload/Components/TabBody/TabBody.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabBody/TabBody.js +0 -31
- data/webpack/ForemanInventoryUpload/Components/TabBody/TabBodyHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabBody/__tests__/TabBody.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/TabBody/__tests__/__snapshots__/TabBody.test.js.snap +0 -19
- data/webpack/ForemanInventoryUpload/Components/TabBody/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/TabBody/tabBody.scss +0 -3
- data/webpack/ForemanInventoryUpload/Components/TabContainer/TabContainer.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabContainer/TabContainer.js +0 -24
- data/webpack/ForemanInventoryUpload/Components/TabContainer/TabContainerHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/TabContainer.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/TabContainer/__tests__/__snapshots__/TabContainer.test.js.snap +0 -18
- data/webpack/ForemanInventoryUpload/Components/TabContainer/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/TabContainer/tabContainer.scss +0 -8
- data/webpack/ForemanInventoryUpload/Components/TabFooter/TabFooter.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabFooter/TabFooter.js +0 -19
- data/webpack/ForemanInventoryUpload/Components/TabFooter/TabFooterHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/TabFooter.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/TabFooter/__tests__/__snapshots__/TabFooter.test.js.snap +0 -12
- data/webpack/ForemanInventoryUpload/Components/TabFooter/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/TabFooter/tabFooter.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.fixtures.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js +0 -45
- data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeaderHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/TabHeader.test.js +0 -13
- data/webpack/ForemanInventoryUpload/Components/TabHeader/__tests__/__snapshots__/TabHeader.test.js.snap +0 -53
- data/webpack/ForemanInventoryUpload/Components/TabHeader/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/TabHeader/tabHeader.scss +0 -21
- data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.fixtures.js +0 -10
- data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.js +0 -112
- data/webpack/ForemanInventoryUpload/Components/Terminal/TerminalHelper.js +0 -6
- data/webpack/ForemanInventoryUpload/Components/Terminal/__tests__/Terminal.test.js +0 -35
- data/webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap +0 -98
- data/webpack/ForemanInventoryUpload/Components/Terminal/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss +0 -31
- data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +0 -15
- data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js +0 -10
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +0 -12
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
- data/webpack/ForemanInventoryUpload/__snapshots__/ForemanInventoryUpload.test.js.snap +0 -16
- data/webpack/ForemanInventoryUpload/index.js +0 -1
- data/webpack/__mocks__/foremanReact/API.js +0 -7
- data/webpack/__mocks__/foremanReact/common/I18n.js +0 -5
- data/webpack/__mocks__/foremanReact/common/helpers.js +0 -3
- data/webpack/index.js +0 -18
- data/webpack/stories/ForemanInventoryUploadReducers.js +0 -3
- data/webpack/stories/configureStore.js +0 -15
- data/webpack/stories/decorators/index.js +0 -1
- data/webpack/stories/decorators/withCardsDecorator.js +0 -14
- data/webpack/stories/index.js +0 -10
- data/webpack/stories/index.scss +0 -7
- data/webpack/test_setup.js +0 -6
@@ -1,35 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
|
3
|
-
import { mount } from 'enzyme';
|
4
|
-
import Terminal from '../Terminal';
|
5
|
-
import { props, logs } from '../Terminal.fixtures';
|
6
|
-
|
7
|
-
const fixtures = {
|
8
|
-
'render without Props': {},
|
9
|
-
'render with props': props,
|
10
|
-
};
|
11
|
-
|
12
|
-
describe('Terminal', () => {
|
13
|
-
describe('rendering', () =>
|
14
|
-
testComponentSnapshotsWithFixtures(Terminal, fixtures));
|
15
|
-
|
16
|
-
it('handles terminal scroll on componentDidUpdate', () => {
|
17
|
-
const wrapper = mount(<Terminal {...props} />);
|
18
|
-
jest.spyOn(wrapper.instance(), 'scrollBottom');
|
19
|
-
wrapper.setProps({ logs: [...logs, 'new-log'] });
|
20
|
-
expect(wrapper.instance().scrollBottom).toBeCalled();
|
21
|
-
});
|
22
|
-
|
23
|
-
it('error should be displayed in terminal', () => {
|
24
|
-
const modifiedProps = { ...props, error: 'some-error' };
|
25
|
-
const wrapper = mount(<Terminal {...modifiedProps} />);
|
26
|
-
expect(wrapper.find('p.terminal_error').exists()).toBeTruthy();
|
27
|
-
});
|
28
|
-
|
29
|
-
it('logs as a string instead of an array should be displayed', () => {
|
30
|
-
const text = 'some-string-log';
|
31
|
-
const modifiedProps = { ...props, logs: text };
|
32
|
-
const wrapper = mount(<Terminal {...modifiedProps} />);
|
33
|
-
expect(wrapper.find('.terminal p').text()).toEqual(text);
|
34
|
-
});
|
35
|
-
});
|
@@ -1,98 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`Terminal rendering render with props 1`] = `
|
4
|
-
<Col
|
5
|
-
bsClass="col"
|
6
|
-
componentClass="div"
|
7
|
-
sm={12}
|
8
|
-
>
|
9
|
-
<div
|
10
|
-
className="terminal"
|
11
|
-
onScroll={[Function]}
|
12
|
-
>
|
13
|
-
<Grid
|
14
|
-
bsClass="container"
|
15
|
-
componentClass="div"
|
16
|
-
fluid={true}
|
17
|
-
>
|
18
|
-
<Row
|
19
|
-
bsClass="row"
|
20
|
-
componentClass="div"
|
21
|
-
>
|
22
|
-
<Col
|
23
|
-
bsClass="col"
|
24
|
-
componentClass="div"
|
25
|
-
sm={12}
|
26
|
-
>
|
27
|
-
<p
|
28
|
-
key="0"
|
29
|
-
>
|
30
|
-
Generating...
|
31
|
-
</p>
|
32
|
-
<p
|
33
|
-
key="1"
|
34
|
-
>
|
35
|
-
Hosts: 1000
|
36
|
-
</p>
|
37
|
-
<p
|
38
|
-
key="2"
|
39
|
-
>
|
40
|
-
writing host 1/1000
|
41
|
-
</p>
|
42
|
-
<p
|
43
|
-
key="3"
|
44
|
-
>
|
45
|
-
writing host 2/1000
|
46
|
-
</p>
|
47
|
-
<Spinner
|
48
|
-
className=""
|
49
|
-
inline={true}
|
50
|
-
inverse={true}
|
51
|
-
loading={true}
|
52
|
-
size="xs"
|
53
|
-
/>
|
54
|
-
</Col>
|
55
|
-
</Row>
|
56
|
-
</Grid>
|
57
|
-
</div>
|
58
|
-
</Col>
|
59
|
-
`;
|
60
|
-
|
61
|
-
exports[`Terminal rendering render without Props 1`] = `
|
62
|
-
<Col
|
63
|
-
bsClass="col"
|
64
|
-
componentClass="div"
|
65
|
-
sm={12}
|
66
|
-
>
|
67
|
-
<div
|
68
|
-
className="terminal"
|
69
|
-
onScroll={[Function]}
|
70
|
-
>
|
71
|
-
<Grid
|
72
|
-
bsClass="container"
|
73
|
-
componentClass="div"
|
74
|
-
fluid={true}
|
75
|
-
>
|
76
|
-
<Row
|
77
|
-
bsClass="row"
|
78
|
-
componentClass="div"
|
79
|
-
>
|
80
|
-
<Col
|
81
|
-
bsClass="col"
|
82
|
-
componentClass="div"
|
83
|
-
sm={12}
|
84
|
-
>
|
85
|
-
<p />
|
86
|
-
<Spinner
|
87
|
-
className=""
|
88
|
-
inline={true}
|
89
|
-
inverse={true}
|
90
|
-
loading={false}
|
91
|
-
size="xs"
|
92
|
-
/>
|
93
|
-
</Col>
|
94
|
-
</Row>
|
95
|
-
</Grid>
|
96
|
-
</div>
|
97
|
-
</Col>
|
98
|
-
`;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './Terminal';
|
@@ -1,31 +0,0 @@
|
|
1
|
-
.terminal {
|
2
|
-
height: 200px;
|
3
|
-
background-color: #222;
|
4
|
-
padding: 10px 0;
|
5
|
-
margin-bottom: 20px;
|
6
|
-
overflow-y: scroll;
|
7
|
-
overflow-x: hidden;
|
8
|
-
|
9
|
-
p {
|
10
|
-
font-family: monospace;
|
11
|
-
font-size: 16px;
|
12
|
-
color: #22da26;
|
13
|
-
|
14
|
-
&.terminal_error {
|
15
|
-
color: #f00;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
&::-webkit-scrollbar {
|
20
|
-
width: 12px;
|
21
|
-
height: 12px;
|
22
|
-
background: #aaa;
|
23
|
-
}
|
24
|
-
|
25
|
-
&::-webkit-scrollbar-thumb {
|
26
|
-
background: #222;
|
27
|
-
border-radius: 6px;
|
28
|
-
border: 3px solid transparent;
|
29
|
-
background-clip: content-box;
|
30
|
-
}
|
31
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { IntlProvider } from 'react-intl';
|
3
|
-
import { translate as __ } from 'foremanReact/common/I18n';
|
4
|
-
import AccountList from './Components/AccountList';
|
5
|
-
|
6
|
-
const ForemanInventoryUpload = () => (
|
7
|
-
<IntlProvider locale={navigator.language}>
|
8
|
-
<div className="inventory-upload">
|
9
|
-
<h1>{__('Red Hat Inventory Uploads')}</h1>
|
10
|
-
<AccountList />
|
11
|
-
</div>
|
12
|
-
</IntlProvider>
|
13
|
-
);
|
14
|
-
|
15
|
-
export default ForemanInventoryUpload;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
|
2
|
-
|
3
|
-
import ForemanInventoryUpload from './ForemanInventoryUpload';
|
4
|
-
|
5
|
-
const fixtures = {
|
6
|
-
'render without Props': {},
|
7
|
-
};
|
8
|
-
|
9
|
-
describe('ForemanInventoryUpload', () =>
|
10
|
-
testComponentSnapshotsWithFixtures(ForemanInventoryUpload, fixtures));
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { combineReducers } from 'redux';
|
2
|
-
import { reducers as accountListReducers } from './Components/AccountList';
|
3
|
-
import { reducers as dashboardReducers } from './Components/Dashboard';
|
4
|
-
|
5
|
-
const reducers = {
|
6
|
-
ForemanInventoryUpload: combineReducers({
|
7
|
-
...accountListReducers,
|
8
|
-
...dashboardReducers,
|
9
|
-
}),
|
10
|
-
};
|
11
|
-
|
12
|
-
export default reducers;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`ForemanInventoryUpload render without Props 1`] = `
|
4
|
-
<IntlProvider
|
5
|
-
locale="en-US"
|
6
|
-
>
|
7
|
-
<div
|
8
|
-
className="inventory-upload"
|
9
|
-
>
|
10
|
-
<h1>
|
11
|
-
Red Hat Inventory Uploads
|
12
|
-
</h1>
|
13
|
-
<Connect(AccountList) />
|
14
|
-
</div>
|
15
|
-
</IntlProvider>
|
16
|
-
`;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './ForemanInventoryUpload';
|
data/webpack/index.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
/* eslint import/no-unresolved: [2, { ignore: [foremanReact/*] }] */
|
2
|
-
/* eslint-disable import/no-extraneous-dependencies */
|
3
|
-
/* eslint-disable import/extensions */
|
4
|
-
import componentRegistry from 'foremanReact/components/componentRegistry';
|
5
|
-
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
|
-
import reducers from './ForemanInventoryUpload/ForemanInventoryUploadReducers';
|
7
|
-
import ForemanInventoryUpload from './ForemanInventoryUpload';
|
8
|
-
|
9
|
-
// register reducers
|
10
|
-
Object.entries(reducers).forEach(([key, reducer]) =>
|
11
|
-
registerReducer(key, reducer)
|
12
|
-
);
|
13
|
-
|
14
|
-
// register components
|
15
|
-
componentRegistry.register({
|
16
|
-
name: 'ForemanInventoryUpload',
|
17
|
-
type: ForemanInventoryUpload,
|
18
|
-
});
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { applyMiddleware, compose, createStore } from 'redux';
|
2
|
-
import thunkMiddleware from 'redux-thunk';
|
3
|
-
import rootReducer from './ForemanInventoryUploadReducers';
|
4
|
-
|
5
|
-
export default function configureStore(preloadedState) {
|
6
|
-
const middlewares = [thunkMiddleware];
|
7
|
-
const middlewareEnhancer = applyMiddleware(...middlewares);
|
8
|
-
|
9
|
-
const enhancers = [middlewareEnhancer];
|
10
|
-
const composedEnhancers = compose(...enhancers);
|
11
|
-
|
12
|
-
const store = createStore(rootReducer, preloadedState, composedEnhancers);
|
13
|
-
|
14
|
-
return store;
|
15
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './withCardsDecorator';
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
export const withCardsDecorator = storyFn => (
|
4
|
-
<div
|
5
|
-
style={{
|
6
|
-
width: '100%',
|
7
|
-
height: '100vh',
|
8
|
-
backgroundColor: '#F5F5F5',
|
9
|
-
padding: '50px',
|
10
|
-
}}
|
11
|
-
>
|
12
|
-
<div style={{ width: '300px', margin: 'auto' }}>{storyFn()}</div>
|
13
|
-
</div>
|
14
|
-
);
|
data/webpack/stories/index.js
DELETED
data/webpack/stories/index.scss
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
$img-path: '~patternfly/dist/img/';
|
2
|
-
$font-path: '~patternfly/dist/fonts/';
|
3
|
-
$icon-font-path: '~patternfly/dist/fonts/';
|
4
|
-
|
5
|
-
@import '~patternfly/dist/sass/patternfly';
|
6
|
-
@import '~patternfly-react/dist/sass/patternfly-react';
|
7
|
-
@import '~font-awesome-sass/assets/stylesheets/_font-awesome';
|