Sha256: 866c2d47e4feafdfe76e1db60e30bef6e877cc9fc00cd76e0f91d09a78bcbd4b

Contents?: true

Size: 1.38 KB

Versions: 28

Compression:

Stored size: 1.38 KB

Contents

import React from 'react';
import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';

import FeaturesDropdown from '../components/FeaturesDropdown';
import RexInterface from '../components/RegistrationExtension/RexInterface';
import RexPull from '../components/RegistrationExtension/RexPull';
import RecentJobsCard from '../components/RecentJobsCard';
import KebabItems from '../components/HostKebab/KebabItems';

const fills = [
  {
    slot: 'host-details-kebab',
    name: 'kebab-items',
    component: props => <KebabItems {...props} />,
    weight: 500,
  },
  {
    slot: 'host-overview-cards',
    name: 'latest-jobs',
    component: props => <RecentJobsCard {...props} />,
    weight: 3200,
  },
  {
    slot: 'registrationAdvanced',
    name: 'interface',
    component: props => <RexInterface {...props} />,
    weight: 500,
  },
  {
    slot: 'registrationAdvanced',
    name: 'pull',
    component: props => <RexPull {...props} />,
    weight: 500,
  },
  {
    slot: '_rex-host-features',
    name: '_rex-host-features',
    component: props => <FeaturesDropdown {...props} />,
    weight: 1000,
  },
];

const registerFills = () => {
  fills.forEach(({ slot, name, component: Component, weight, metadata }) =>
    addGlobalFill(
      slot,
      `rex-${name}`,
      <Component key={`rex-${name}`} />,
      weight,
      metadata
    )
  );
};

export default registerFills;

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
foreman_remote_execution-10.1.3 webpack/react_app/extend/Fills.js
foreman_remote_execution-11.1.3 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.1.2 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.1.1 webpack/react_app/extend/Fills.js
foreman_remote_execution-11.1.1 webpack/react_app/extend/Fills.js
foreman_remote_execution-11.1.0 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.1.0 webpack/react_app/extend/Fills.js
foreman_remote_execution-8.3.3 webpack/react_app/extend/Fills.js
foreman_remote_execution-8.3.2 webpack/react_app/extend/Fills.js
foreman_remote_execution-11.0.0 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.7 webpack/react_app/extend/Fills.js
foreman_remote_execution-8.3.1 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.6 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.5 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.4 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.3 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.2 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.1 webpack/react_app/extend/Fills.js
foreman_remote_execution-10.0.0 webpack/react_app/extend/Fills.js
foreman_remote_execution-8.3.0 webpack/react_app/extend/Fills.js