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