mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
//
|
|
// Copyright © 2023 Hardcore Engineering Inc.
|
|
//
|
|
//
|
|
|
|
import { type Builder } from '@hcengineering/model'
|
|
|
|
import core from '@hcengineering/core'
|
|
import document from '@hcengineering/document'
|
|
import serverCore from '@hcengineering/server-core'
|
|
import serverDocument from '@hcengineering/server-document'
|
|
import serverNotification from '@hcengineering/server-notification'
|
|
import serverView from '@hcengineering/server-view'
|
|
|
|
export { serverDocumentId } from '@hcengineering/server-document'
|
|
|
|
export function createModel (builder: Builder): void {
|
|
builder.mixin(document.class.Document, core.class.Class, serverNotification.mixin.HTMLPresenter, {
|
|
presenter: serverDocument.function.DocumentHTMLPresenter
|
|
})
|
|
|
|
builder.mixin(document.class.Document, core.class.Class, serverNotification.mixin.TextPresenter, {
|
|
presenter: serverDocument.function.DocumentTextPresenter
|
|
})
|
|
|
|
builder.mixin(document.class.Document, core.class.Class, serverView.mixin.ServerLinkIdProvider, {
|
|
encode: serverDocument.function.DocumentLinkIdProvider
|
|
})
|
|
|
|
builder.mixin(document.class.Document, core.class.Class, serverCore.mixin.SearchPresenter, {
|
|
searchConfig: {
|
|
iconConfig: {
|
|
component: document.component.DocumentSearchIcon,
|
|
props: ['icon', 'color']
|
|
},
|
|
title: 'name'
|
|
}
|
|
})
|
|
}
|