Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
registerActionCreator('headerbar:search:start', actions.search.start);
registerActionCreator('headerbar:search:select', actions.search.select);
registerActionCreator('headerbar:search:reset', actions.search.reset);
registerActionCreator('dataset:view', actions.dataset.open);
const additionalActionCreators = additionalConfiguration.actionCreators;
if (additionalActionCreators) {
Object.keys(additionalActionCreators).map(k =>
registerActionCreator(k, additionalActionCreators[k]),
);
}
/**
* Fetch the CMF settings and configure the CMF app
*/
store.dispatch(
cmfActions.settingsActions.fetchSettings(`/settings.${settingsService.getLanguage()}.json`),
);
reduxLocalStorage.saveOnReload({
engine,
store,
});
/**
* Register i18next locales per namespace
*/
registerLocales(locales);
const additionalLocales = additionalConfiguration.locales;
if (additionalLocales) {
registerLocales(additionalLocales);
}
registerActionCreator('headerbar:search:start', actions.search.start);
registerActionCreator('headerbar:search:select', actions.search.select);
registerActionCreator('headerbar:search:reset', actions.search.reset);
registerActionCreator('dataset:view', actions.dataset.open);
const additionalActionCreators = additionalConfiguration.actionCreators;
if (additionalActionCreators) {
Object.keys(additionalActionCreators).map(k =>
registerActionCreator(k, additionalActionCreators[k]),
);
}
/**
* Fetch the CMF settings and configure the CMF app
*/
store.dispatch(
cmfActions.settingsActions.fetchSettings(`/settings.${settingsService.getLanguage()}.json`),
);
api.localStorage.getStoreCallback(localStorageKey, KEEP)(store);
/**
* Register i18next locales per namespace
*/
registerLocales(locales);
const additionalLocales = additionalConfiguration.locales;
if (additionalLocales) {
registerLocales(additionalLocales);
}
const additionalCallback = additionalConfiguration.callback;
if (additionalCallback) {
additionalCallback();