Sha256: 0919429bda20018c1f40da9e5cffafafb4014c7c966bfbe12feabe6a303c8320

Contents?: true

Size: 1.61 KB

Versions: 138

Compression:

Stored size: 1.61 KB

Contents

import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import ModuleStreamDetailArtifacts from './ModuleStreamDetailArtifacts';
import ModuleStreamDetailProfiles from './Profiles/ModuleStreamDetailProfiles';
import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo';
import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories';

export const displayMap = new Map([
  ['name', __('Name')],
  ['summary', __('Summary')],
  ['description', __('Description')],
  ['stream', __('Stream')],
  ['version', __('Version')],
  ['arch', __('Arch')],
  ['context', __('Context')],
  ['uuid', __('UUID')],
]);

export default (detailInfo) => {
  const { repositories, profiles, artifacts } = detailInfo;

  return [
    {
      key: 1,
      tabHeader: __('Details'),
      tabContent: (
        <ContentDetailInfo contentDetails={detailInfo} displayMap={displayMap} />
      ),
    },
    {
      key: 2,
      tabHeader: __('Repositories'),
      tabContent: (repositories && repositories.length ?
        <ContentDetailRepositories repositories={repositories} /> :
        __('No repositories to show')
      ),
    },
    {
      key: 3,
      tabHeader: __('Profiles'),
      tabContent: (profiles && profiles.length ?
        <ModuleStreamDetailProfiles profiles={profiles} /> :
        __('No profiles to show')
      ),
    },
    {
      key: 4,
      tabHeader: __('Artifacts'),
      tabContent: (artifacts && artifacts.length ?
        <ModuleStreamDetailArtifacts artifacts={artifacts} /> :
        __('No artifacts to show')
      ),
    },
  ];
};

Version data entries

138 entries across 138 versions & 1 rubygems

Version Path
katello-3.18.0.rc2.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.18.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.17.0 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.18.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.17.0.rc2.2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.17.0.rc2.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.1.2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.1.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.17.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.17.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.0 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.0.rc5.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.0.rc5 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.0.rc4.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.15.3.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.15.3 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.0.rc4 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.16.0.rc3.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-3.15.2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js