Sha256: 10159059ac9c34b2be08c803ef61206dbb483409d74b90761f374ca9f275079b

Contents?: true

Size: 466 Bytes

Versions: 30

Compression:

Stored size: 466 Bytes

Contents

import React from 'react';
import JSONTree from 'react-json-tree';
import PropTypes from 'prop-types';

const theme = {
  scheme: 'foreman',
  backgroundColor: 'rgba(0, 0, 0, 255)',
  base00: 'rgba(0, 0, 0, 0)',
};

const ReportJsonViewer = ({ data }) => (
  <div className="report-json-viewer">
    <JSONTree data={data} hideRoot theme={theme} />
  </div>
);

ReportJsonViewer.propTypes = {
  data: PropTypes.object.isRequired,
};

export default ReportJsonViewer;

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
foreman_ansible-7.1.8 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.7 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.6 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.5 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.4 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.3 webpack/components/ReportJsonViewer.js
foreman_ansible-9.0.0 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.2 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.1 webpack/components/ReportJsonViewer.js
foreman_ansible-8.0.1 webpack/components/ReportJsonViewer.js
foreman_ansible-8.0.0 webpack/components/ReportJsonViewer.js
foreman_ansible-7.0.4 webpack/components/ReportJsonViewer.js
foreman_ansible-7.1.0 webpack/components/ReportJsonViewer.js
foreman_ansible-7.0.3 webpack/components/ReportJsonViewer.js
foreman_ansible-7.0.2 webpack/components/ReportJsonViewer.js
foreman_ansible-7.0.1 webpack/components/ReportJsonViewer.js
foreman_ansible-7.0.0 webpack/components/ReportJsonViewer.js
foreman_ansible-6.3.4 webpack/components/ReportJsonViewer.js
foreman_ansible-6.3.3 webpack/components/ReportJsonViewer.js
foreman_ansible-6.3.2 webpack/components/ReportJsonViewer.js