foreman_inventory_upload 1.0.0.beta2 → 1.0.0.beta3
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 +5 -5
- data/lib/foreman_inventory_upload/version.rb +1 -1
- data/package.json +0 -1
- metadata +2 -10
- data/webpack/ForemanInventoryUpload/Components/Tree/Tree.fixtures.js +0 -3
- data/webpack/ForemanInventoryUpload/Components/Tree/Tree.js +0 -29
- data/webpack/ForemanInventoryUpload/Components/Tree/TreeHelper.js +0 -0
- data/webpack/ForemanInventoryUpload/Components/Tree/__tests__/Tree.test.js +0 -14
- data/webpack/ForemanInventoryUpload/Components/Tree/__tests__/__snapshots__/Tree.test.js.snap +0 -63
- data/webpack/ForemanInventoryUpload/Components/Tree/index.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/Tree/tree.scss +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f6c4e22947c3224634899b21acf86d9f348b14e7c36259b1f83cd5f77bf25300
|
4
|
+
data.tar.gz: c1f625c2a3376341f5b314eac382ca33cd0a040fa670f8bdb97366dea072cf64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c138b8f2f8b80c31f46169ac5cedc81e602ed5294ad9a09c2a7b3e77f859da8a40bc0c4575be375fe69af9837ca5c9a1cb435e9e75ce0e70a8bfbcaecf24de
|
7
|
+
data.tar.gz: 2e1df88161295bb1d758888279858bedd7cebe6cc6b229cc38e7ab5cb76ae40e0f9295a20fea2fcc8090930d4e1e88545f2f23c493b78641e52e519ad6ee2bf5
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_inventory_upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inventory upload team
|
@@ -293,13 +293,6 @@ files:
|
|
293
293
|
- webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap
|
294
294
|
- webpack/ForemanInventoryUpload/Components/Terminal/index.js
|
295
295
|
- webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss
|
296
|
-
- webpack/ForemanInventoryUpload/Components/Tree/Tree.fixtures.js
|
297
|
-
- webpack/ForemanInventoryUpload/Components/Tree/Tree.js
|
298
|
-
- webpack/ForemanInventoryUpload/Components/Tree/TreeHelper.js
|
299
|
-
- webpack/ForemanInventoryUpload/Components/Tree/__tests__/Tree.test.js
|
300
|
-
- webpack/ForemanInventoryUpload/Components/Tree/__tests__/__snapshots__/Tree.test.js.snap
|
301
|
-
- webpack/ForemanInventoryUpload/Components/Tree/index.js
|
302
|
-
- webpack/ForemanInventoryUpload/Components/Tree/tree.scss
|
303
296
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
|
304
297
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js
|
305
298
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
@@ -336,8 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
329
|
- !ruby/object:Gem::Version
|
337
330
|
version: 1.3.1
|
338
331
|
requirements: []
|
339
|
-
|
340
|
-
rubygems_version: 2.6.14
|
332
|
+
rubygems_version: 3.0.6
|
341
333
|
signing_key:
|
342
334
|
specification_version: 4
|
343
335
|
summary: Summary of ForemanInventoryUpload.
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import { default as RATTree } from 'react-animated-tree';
|
4
|
-
import { Grid } from 'patternfly-react';
|
5
|
-
|
6
|
-
const Tree = ({ files }) => {
|
7
|
-
const filesAmount = files.length;
|
8
|
-
const fileTrees = files.map((file, index) => (
|
9
|
-
<RATTree key={index} content={file} />
|
10
|
-
));
|
11
|
-
return (
|
12
|
-
<Grid.Col sm={9}>
|
13
|
-
<p>There are currently {filesAmount} report files ready</p>
|
14
|
-
<RATTree content="Reports" open canHide visible>
|
15
|
-
{fileTrees}
|
16
|
-
</RATTree>
|
17
|
-
</Grid.Col>
|
18
|
-
);
|
19
|
-
};
|
20
|
-
|
21
|
-
Tree.propTypes = {
|
22
|
-
files: PropTypes.arrayOf(PropTypes.string),
|
23
|
-
};
|
24
|
-
|
25
|
-
Tree.defaultProps = {
|
26
|
-
files: [],
|
27
|
-
};
|
28
|
-
|
29
|
-
export default Tree;
|
File without changes
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
|
2
|
-
|
3
|
-
import Tree from '../Tree';
|
4
|
-
import { props } from '../Tree.fixtures';
|
5
|
-
|
6
|
-
const fixtures = {
|
7
|
-
'render without Props': {},
|
8
|
-
'render with props': props,
|
9
|
-
};
|
10
|
-
|
11
|
-
describe('Tree', () => {
|
12
|
-
describe('rendering', () =>
|
13
|
-
testComponentSnapshotsWithFixtures(Tree, fixtures));
|
14
|
-
});
|
data/webpack/ForemanInventoryUpload/Components/Tree/__tests__/__snapshots__/Tree.test.js.snap
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`Tree rendering render with props 1`] = `
|
4
|
-
<Col
|
5
|
-
bsClass="col"
|
6
|
-
componentClass="div"
|
7
|
-
sm={9}
|
8
|
-
>
|
9
|
-
<p>
|
10
|
-
There are currently
|
11
|
-
3
|
12
|
-
report files ready
|
13
|
-
</p>
|
14
|
-
<Tree
|
15
|
-
canHide={true}
|
16
|
-
content="Reports"
|
17
|
-
open={true}
|
18
|
-
visible={true}
|
19
|
-
>
|
20
|
-
<Tree
|
21
|
-
canHide={false}
|
22
|
-
content="file1"
|
23
|
-
key="0"
|
24
|
-
open={false}
|
25
|
-
visible={true}
|
26
|
-
/>
|
27
|
-
<Tree
|
28
|
-
canHide={false}
|
29
|
-
content="file2"
|
30
|
-
key="1"
|
31
|
-
open={false}
|
32
|
-
visible={true}
|
33
|
-
/>
|
34
|
-
<Tree
|
35
|
-
canHide={false}
|
36
|
-
content="file3"
|
37
|
-
key="2"
|
38
|
-
open={false}
|
39
|
-
visible={true}
|
40
|
-
/>
|
41
|
-
</Tree>
|
42
|
-
</Col>
|
43
|
-
`;
|
44
|
-
|
45
|
-
exports[`Tree rendering render without Props 1`] = `
|
46
|
-
<Col
|
47
|
-
bsClass="col"
|
48
|
-
componentClass="div"
|
49
|
-
sm={9}
|
50
|
-
>
|
51
|
-
<p>
|
52
|
-
There are currently
|
53
|
-
0
|
54
|
-
report files ready
|
55
|
-
</p>
|
56
|
-
<Tree
|
57
|
-
canHide={true}
|
58
|
-
content="Reports"
|
59
|
-
open={true}
|
60
|
-
visible={true}
|
61
|
-
/>
|
62
|
-
</Col>
|
63
|
-
`;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './Tree';
|
File without changes
|