Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* This will register all containers in the CMF registry
*/
registerAllContainers();
/**
* Initialize CMF
* This will:
* - Register your components in the CMF registry
* - Register your action creators in CMF registry
* - Setup redux store using reducer
* - Fetch the settings
* - render react-dom in the dom 'app' element
*/
cmf.bootstrap({
components: Object.assign({ ComponentForm }),
settingsURL: '/settings.json',
actionCreators: actions,
middlewares: [createLogger({})],
});
import 'brace/mode/java';
import 'brace/mode/python';
import 'brace/mode/sql';
import 'brace/mode/xml';
import 'brace/snippets/java';
import 'brace/snippets/sql';
import 'brace/snippets/python';
import 'brace/snippets/xml';
import i18n from './i18n';
import components from './components';
import ComponentForm from '@talend/react-containers/lib/ComponentForm';
import reducer from './store/reducers';
cmf.bootstrap({
components: { ComponentForm, ...components },
reducer,
appId: 'component-kit-tools-webapp',
RootComponent: components.App,
});
import 'focus-visible';
import cmf from '@talend/react-cmf';
import modules from './services/modules';
import App from './components/App';
import './index.css';
/**
* Initialize CMF
* This will:
* - Setup redux store using reducer
* - render react-dom in the dom 'app' element
* API: https://github.com/Talend/ui/blob/master/packages/cmf/src/bootstrap.md
*/
cmf.bootstrap({
modules,
RootComponent: App,
});
/**
* Init the router module
*/
const router = getRouter();
/**
* Initialize CMF
* This will:
* - Register your components in the CMF registry
* - Register your action creators in CMF registry
* - Setup redux store using reducer
* - Fetch the settings
* - render react-dom in the dom 'app' element
* API: https://github.com/Talend/ui/blob/master/packages/cmf/src/bootstrap.md
*/
cmf.bootstrap({
actionCreators,
components,
expressions,
reducer,
saga,
sagas,
settingsURL: '/settings.json',
AppLoader: 'AppLoader',
modules: [router.cmfModule],
RootComponent: router.RootComponent,
});