Sha256: c497ca50b283a7c486cc5cae14aaba5cd9db54f8fa071554efe51afc5c8a5e46

Contents?: true

Size: 921 Bytes

Versions: 4

Compression:

Stored size: 921 Bytes

Contents

/* eslint import/no-unresolved: [2, { ignore: [foremanReact/*] }] */
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable import/extensions */
import componentRegistry from 'foremanReact/components/componentRegistry';
import { registerReducer } from 'foremanReact/common/MountingService';
import reducers from './ForemanTasks/ForemanTasksReducers';
import ForemanTasks from './ForemanTasks';
import TasksDashboard from './ForemanTasks/Components/TasksDashboard';
import TaskDetails from './ForemanTasks/Components/TaskDetails';

// register reducers
Object.entries(reducers).forEach(([key, reducer]) =>
  registerReducer(key, reducer)
);

// register components
componentRegistry.register({
  name: 'ForemanTasks',
  type: ForemanTasks,
});
componentRegistry.register({
  name: 'TasksDashboard',
  type: TasksDashboard,
});
componentRegistry.register({
  name: 'TaskDetails',
  type: TaskDetails,
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman-tasks-0.16.3 webpack/index.js
foreman-tasks-0.16.2 webpack/index.js
foreman-tasks-0.16.1 webpack/index.js
foreman-tasks-0.17.0 webpack/index.js