mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-28 14:32:26 +00:00
66 lines
2.4 KiB
JavaScript
66 lines
2.4 KiB
JavaScript
import en from '@baserow/modules/automation/locales/en.json'
|
|
import fr from '@baserow/modules/automation/locales/fr.json'
|
|
import nl from '@baserow/modules/automation/locales/nl.json'
|
|
import de from '@baserow/modules/automation/locales/de.json'
|
|
import es from '@baserow/modules/automation/locales/es.json'
|
|
import it from '@baserow/modules/automation/locales/it.json'
|
|
import pl from '@baserow/modules/automation/locales/pl.json'
|
|
import ko from '@baserow/modules/automation/locales/ko.json'
|
|
import {
|
|
GeneralAutomationSettingsType,
|
|
IntegrationsAutomationSettingsType,
|
|
} from '@baserow/modules/automation/automationSettingTypes'
|
|
|
|
import { registerRealtimeEvents } from '@baserow/modules/automation/realtime'
|
|
import { AutomationApplicationType } from '@baserow/modules/automation/applicationTypes'
|
|
import automationApplicationStore from '@baserow/modules/automation/store/automationApplication'
|
|
import automationWorkflowStore from '@baserow/modules/automation/store/automationWorkflow'
|
|
import { DuplicateAutomationWorkflowJobType } from '@baserow/modules/automation/jobTypes'
|
|
import { FF_AUTOMATION } from '@baserow/modules/core/plugins/featureFlags'
|
|
|
|
export default (context) => {
|
|
const { app, isDev, store } = context
|
|
|
|
// Allow locale file hot reloading in dev
|
|
if (isDev && app.i18n) {
|
|
const { i18n } = app
|
|
i18n.mergeLocaleMessage('en', en)
|
|
i18n.mergeLocaleMessage('fr', fr)
|
|
i18n.mergeLocaleMessage('nl', nl)
|
|
i18n.mergeLocaleMessage('de', de)
|
|
i18n.mergeLocaleMessage('es', es)
|
|
i18n.mergeLocaleMessage('it', it)
|
|
i18n.mergeLocaleMessage('pl', pl)
|
|
i18n.mergeLocaleMessage('ko', ko)
|
|
}
|
|
|
|
registerRealtimeEvents(app.$realtime)
|
|
|
|
store.registerModule('automationApplication', automationApplicationStore)
|
|
store.registerModule('automationWorkflow', automationWorkflowStore)
|
|
store.registerModule(
|
|
'template/automationApplication',
|
|
automationApplicationStore
|
|
)
|
|
|
|
if (app.$featureFlagIsEnabled(FF_AUTOMATION)) {
|
|
app.$registry.register(
|
|
'application',
|
|
new AutomationApplicationType(context)
|
|
)
|
|
app.$registry.register(
|
|
'job',
|
|
new DuplicateAutomationWorkflowJobType(context)
|
|
)
|
|
|
|
app.$registry.registerNamespace('automationSettings')
|
|
app.$registry.register(
|
|
'automationSettings',
|
|
new GeneralAutomationSettingsType(context)
|
|
)
|
|
app.$registry.register(
|
|
'automationSettings',
|
|
new IntegrationsAutomationSettingsType(context)
|
|
)
|
|
}
|
|
}
|