mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-23 04:40:15 +00:00
37 lines
1.4 KiB
JavaScript
37 lines
1.4 KiB
JavaScript
import Vue from 'vue'
|
|
|
|
import { Registry } from '@baserow/modules/core/registry'
|
|
|
|
import { PasswordSettingsType } from '@baserow/modules/core/settingsTypes'
|
|
import {
|
|
UploadFileUserFileUploadType,
|
|
UploadViaURLUserFileUploadType,
|
|
} from '@baserow/modules/core/userFileUploadTypes'
|
|
|
|
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) => {
|
|
inject('bus', new Vue())
|
|
|
|
const registry = new Registry()
|
|
registry.registerNamespace('plugin')
|
|
registry.registerNamespace('application')
|
|
registry.registerNamespace('view')
|
|
registry.registerNamespace('field')
|
|
registry.registerNamespace('settings')
|
|
registry.registerNamespace('userFileUpload')
|
|
registry.register('settings', new PasswordSettingsType())
|
|
registry.register('userFileUpload', new UploadFileUserFileUploadType())
|
|
registry.register('userFileUpload', new UploadViaURLUserFileUploadType())
|
|
inject('registry', registry)
|
|
|
|
store.registerModule('application', applicationStore)
|
|
store.registerModule('auth', authStore)
|
|
store.registerModule('group', groupStore)
|
|
store.registerModule('notification', notificationStore)
|
|
store.registerModule('sidebar', sidebarStore)
|
|
}
|