Cloud collaborator refactoring (#6424)

This commit is contained in:
Alexander Onnikov
2024-08-29 15:10:37 +07:00
committed by GitHub
parent 42b19c39c7
commit 4ff8a4559f
52 changed files with 762 additions and 998 deletions
@@ -16,7 +16,7 @@
-->
<script lang="ts">
import { Document } from '@hcengineering/document'
import { Card, getClient, takeSnapshot } from '@hcengineering/presentation'
import { Card, getClient } from '@hcengineering/presentation'
import { EditBox } from '@hcengineering/ui'
import document from '../plugin'
@@ -27,19 +27,19 @@
let name = ''
async function create (): Promise<void> {
const snapshot = await takeSnapshot(doc.content, name)
await client.addCollection(
document.class.DocumentSnapshot,
doc.space,
doc._id,
document.class.Document,
'snapshots',
{
name,
content: snapshot
}
)
// TODO implement me
// const snapshot = await takeSnapshot(doc.content, name)
// await client.addCollection(
// document.class.DocumentSnapshot,
// doc.space,
// doc._id,
// document.class.Document,
// 'snapshots',
// {
// name,
// content: snapshot
// }
// )
}
</script>