Sha256: 222e266c899640c3ee9e0f993c2b0797ec230203653f44a40c5c75c1719aa3f9
Contents?: true
Size: 996 Bytes
Versions: 100
Compression:
Stored size: 996 Bytes
Contents
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo'; import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories'; export const displayMap = new Map([ ['name', __('Name')], ['description', __('Description')], ['namespace', __('Author')], ['version', __('Version')], ['checksum', __('Checksum')], ['tags', __('Tags')], ]); export default (detailInfo) => { const { repositories } = 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') ), }, ]; };
Version data entries
100 entries across 100 versions & 1 rubygems