Sidebar attachments preview (#6797)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-10-03 22:30:32 +07:00
committed by GitHub
parent e09a24cbc1
commit d3a7759ef7
31 changed files with 376 additions and 83 deletions
+6 -1
View File
@@ -19,6 +19,7 @@ import type { Asset, Plugin } from '@hcengineering/platform'
import { IntlString, plugin, Resource } from '@hcengineering/platform'
import type { Preference } from '@hcengineering/preference'
import { AnyComponent } from '@hcengineering/ui'
import { Widget } from '@hcengineering/workbench'
export * from './analytics'
@@ -87,6 +88,9 @@ export default plugin(attachmentId, {
UploadFile: '' as Resource<(file: File) => Promise<Ref<Blob>>>,
DeleteFile: '' as Resource<(id: string) => Promise<void>>
},
ids: {
PreviewWidget: '' as Ref<Widget>
},
string: {
Files: '' as IntlString,
NoFiles: '' as IntlString,
@@ -106,6 +110,7 @@ export default plugin(attachmentId, {
FileBrowserTypeFilterPDFs: '' as IntlString,
DeleteFile: '' as IntlString,
Attachments: '' as IntlString,
FileBrowser: '' as IntlString
FileBrowser: '' as IntlString,
OpenInWindow: '' as IntlString
}
})