2023-10-24 11:00:54 +02:00
|
|
|
import { defineAsyncComponent } from 'vue'
|
|
|
|
|
import { registerComponents as registerCommonComponents } from './common'
|
|
|
|
|
import { registerComponents as registerFormComponents } from './forms'
|
2022-09-20 21:59:52 +02:00
|
|
|
|
2023-01-21 12:57:37 +01:00
|
|
|
import Child from './Child.vue'
|
|
|
|
|
import Modal from './Modal.vue'
|
|
|
|
|
import Loader from './common/Loader.vue'
|
2022-09-20 21:59:52 +02:00
|
|
|
|
2023-10-24 11:00:54 +02:00
|
|
|
export function registerComponents (app) {
|
|
|
|
|
[Child, Modal, Loader].forEach(Component => {
|
|
|
|
|
app.component(Component.name, Component)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
registerCommonComponents(app)
|
|
|
|
|
registerFormComponents(app)
|
2022-12-14 10:27:21 +01:00
|
|
|
|
2023-10-24 11:00:54 +02:00
|
|
|
// Register async components
|
|
|
|
|
app.component('FormEditor', defineAsyncComponent(() =>
|
|
|
|
|
import('./open/forms/components/FormEditor.vue')
|
|
|
|
|
))
|
|
|
|
|
app.component('NotionPage', defineAsyncComponent(() =>
|
|
|
|
|
import('./open/NotionPage.vue')
|
|
|
|
|
))
|
2023-12-08 19:21:04 +01:00
|
|
|
app.component('FormBlockLogicEditor', defineAsyncComponent(() =>
|
|
|
|
|
import('./open/forms/components/form-logic-components/FormBlockLogicEditor.vue')
|
|
|
|
|
))
|
2023-10-24 11:00:54 +02:00
|
|
|
}
|