foreman_ansible 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fa908b35593b08f7be264f7a9d23ef2357858ab24faea00711b06084a4f9c4a
4
- data.tar.gz: 7d1ae5b38052fd0b620170316ccf295181ff02c7d92712db15a95e2c3ab56bb5
3
+ metadata.gz: b1b51e2ee078f80efdc740694e7b27dd61bc6143420f7452db7d44dd085b6a30
4
+ data.tar.gz: f45a78080c31ffe8e5ad6595fb45ed5f81d151b68a113c1059615471c62cc245
5
5
  SHA512:
6
- metadata.gz: 0c0fc2260f5762f172b3445567069b48bc7a021129d9aa8ae94ff4eef7d28cadd7f93fa8302e6143561545fc2b327a51e5f1400942ad853bed4262c431f5d751
7
- data.tar.gz: d01daf2b7f4559c9e4ec4e819f6d4d99ce4570f59d3e4b99a2e074b3c16046817634846f534a08c46ec0c4aadbd92489897fd02a8c5f6b37e428605fa10daad3
6
+ metadata.gz: 238e18d65857e84570cb3c7fe9429c945d5c6eb05bcc9cd2dd814181ab47a0d2e271edc056c3a0a0497c424b990af57ad8113ddbda1779eddadffd0c142b2794
7
+ data.tar.gz: 38e1705a05da9f3d6885ec03bb7dcc0353eaac253896b0d5466aea839973d1ae25a51e3a1aee6eb98c7b9079d0494bf5e2991e1d6ac150c443460e1646dc844a
@@ -2,5 +2,5 @@
2
2
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
3
3
  # and detect what version the plugin is running.
4
4
  module ForemanAnsible
5
- VERSION = '2.1.1'.freeze
5
+ VERSION = '2.1.2'.freeze
6
6
  end
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import JSONTree from 'react-json-tree';
3
+
4
+ const theme = {
5
+ scheme: 'foreman',
6
+ backgroundColor: 'rgba(0, 0, 0, 255)',
7
+ base00: 'rgba(0, 0, 0, 0)',
8
+ };
9
+
10
+ class ReportJsonViewer extends React.Component {
11
+ render() {
12
+ return <div className="report-json-viewer">
13
+ <JSONTree data={this.props.data} hideRoot theme={theme} />
14
+ </div>;
15
+ }
16
+ }
17
+ export default ReportJsonViewer;
data/webpack/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import componentRegistry from 'foremanReact/components/componentRegistry';
2
+ import ReportJsonViewer from './components/ReportJsonViewer';
3
+
4
+ componentRegistry.register({ name: 'ReportJsonViewer', type: ReportJsonViewer });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
@@ -219,6 +219,8 @@ files:
219
219
  - test/unit/services/roles_importer_test.rb
220
220
  - test/unit/services/structured_fact_importer_test.rb
221
221
  - test/unit/services/ui_roles_importer_test.rb
222
+ - webpack/components/ReportJsonViewer.js
223
+ - webpack/index.js
222
224
  homepage: https://github.com/theforeman/foreman_ansible
223
225
  licenses:
224
226
  - GPL-3.0