Files
baserow/web-frontend/modules/core/plugin.js
T

23 lines
902 B
JavaScript

import { Registry } from '@baserow/modules/core/registry'
import applicationStore from '@baserow/modules/core/store/application'
import authStore from '@baserow/modules/core/store/auth'
import groupStore from '@baserow/modules/core/store/group'
import notificationStore from '@baserow/modules/core/store/notification'
import sidebarStore from '@baserow/modules/core/store/sidebar'
export default ({ store, app }, inject) => {
const registry = new Registry()
registry.registerNamespace('plugin')
registry.registerNamespace('application')
registry.registerNamespace('view')
registry.registerNamespace('field')
inject('registry', registry)
store.registerModule('application', applicationStore)
store.registerModule('auth', authStore)
store.registerModule('group', groupStore)
store.registerModule('notification', notificationStore)
store.registerModule('sidebar', sidebarStore)
}