mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
add more packages to compile workbench
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
<script lang="ts">
|
||||
|
||||
import { getResource } from '@anticrm/platform'
|
||||
import type { Connection } from '@anticrm/client'
|
||||
import type { Client } from '@anticrm/core'
|
||||
import client from '@anticrm/client'
|
||||
|
||||
import Workbench from './Workbench.svelte'
|
||||
|
||||
async function connect(): Promise<Connection> {
|
||||
async function connect(): Promise<Client> {
|
||||
const getClient = await getResource(client.function.GetClient)
|
||||
return getClient()
|
||||
}
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
import type { Ref, Obj, Class, WithLookup } from '@anticrm/core'
|
||||
import type { Asset, IntlString } from '@anticrm/platform'
|
||||
import type { Connection } from '@anticrm/client'
|
||||
import type { Client } from '@anticrm/core'
|
||||
|
||||
export function classIcon(client: Connection, _class: Ref<Class<Obj>>): Asset | undefined {
|
||||
export function classIcon(client: Client, _class: Ref<Class<Obj>>): Asset | undefined {
|
||||
return client.getHierarchy().getClass(_class).icon
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user