Sha256: 9207c4950112a887f39547f3b68cc421c2db45bb785e93c4481dfd577deeda4b

Contents?: true

Size: 1.05 KB

Versions: 83

Compression:

Stored size: 1.05 KB

Contents

import React from 'react';
import componentRegistry from 'foremanReact/components/componentRegistry';
import { registerRoutes as foremanRegisterRoutes } from 'foremanReact/routes/RoutingService';
import ForemanInventoryUpload from './ForemanInventoryUpload';
import InsightsCloudSync from './InsightsCloudSync';
import InsightsHostDetailsTab from './InsightsHostDetailsTab';

const pages = [
  { name: 'ForemanInventoryUpload', type: ForemanInventoryUpload },
  { name: 'InsightsCloudSync', type: InsightsCloudSync },
  { name: 'InsightsHostDetailsTab', type: InsightsHostDetailsTab },
];

export const registerPages = () => {
  pages.forEach(page => componentRegistry.register(page));
};

export const routes = [
  {
    path: '/foreman_rh_cloud/insights_cloud',
    exact: true,
    render: props => <InsightsCloudSync {...props} />,
  },
  {
    path: '/foreman_rh_cloud/inventory_upload',
    exact: true,
    render: props => <ForemanInventoryUpload {...props} />,
  },
];

export const registerRoutes = () => {
  foremanRegisterRoutes('foreman_rh_cloud', routes);
};

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
foreman_rh_cloud-5.0.38 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-4.0.35 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.37 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.36 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.35 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.34 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.33 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-3.0.32 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-4.0.32 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.32 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-4.0.31 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.31 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.30 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-4.0.30 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-3.0.29 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-4.0.29 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.29 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-3.0.28 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-5.0.28 webpack/ForemanRhCloudPages.js
foreman_rh_cloud-4.0.27 webpack/ForemanRhCloudPages.js