Sha256: 7851a99dec019b526c70578a49ced082d3cb5470e20e6540086ceac695a5a849

Contents?: true

Size: 1.32 KB

Versions: 14

Compression:

Stored size: 1.32 KB

Contents

import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import ModuleStreamDetailArtifacts from './ModuleStreamDetailArtifacts';
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, 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: __('Artifacts'),
      tabContent: (artifacts && artifacts.length ?
        <ModuleStreamDetailArtifacts artifacts={artifacts} /> :
        __('No artifacts to show')
      ),
    },
  ];
};

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
katello-4.6.2.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.6.2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.6.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.4.2.2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.4.2.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.4.2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.5.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.6.0 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.6.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.6.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.5.0 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.5.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.4.1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js
katello-4.5.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js