mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-13 02:41:11 +00:00
24 lines
658 B
TypeScript
24 lines
658 B
TypeScript
//
|
|
// Copyright © 2024 Hardcore Engineering Inc.
|
|
//
|
|
//
|
|
|
|
import type { Plugin } from '@hcengineering/platform'
|
|
import products from '@hcengineering/products'
|
|
|
|
import core from '@hcengineering/core'
|
|
import { type Builder } from '@hcengineering/model'
|
|
import serverCore from '@hcengineering/server-core'
|
|
|
|
export const serverProductsId = 'server-products' as Plugin
|
|
|
|
export function createModel (builder: Builder): void {
|
|
builder.mixin(products.class.Product, core.class.Class, serverCore.mixin.SearchPresenter, {
|
|
iconConfig: {
|
|
component: products.component.ProductSearchIcon,
|
|
fields: [['icon'], ['color']]
|
|
},
|
|
title: [['name']]
|
|
})
|
|
}
|