mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 16:56:07 +00:00
Comment viewer moved to chunter
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
fe8dbe9bd0
commit
3948111387
@ -22,4 +22,3 @@ export { default as Avatar } from './components/Avatar.svelte'
|
|||||||
export { default as MessageViewer } from './components/MessageViewer.svelte'
|
export { default as MessageViewer } from './components/MessageViewer.svelte'
|
||||||
export { default as AttributeEditor } from './components/AttributeEditor.svelte'
|
export { default as AttributeEditor } from './components/AttributeEditor.svelte'
|
||||||
export { default as Backlink } from './components/Backlink.svelte'
|
export { default as Backlink } from './components/Backlink.svelte'
|
||||||
export { default as CommentViewer } from './components/CommentViewer.svelte'
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
"@anticrm/presentation":"~0.6.1",
|
"@anticrm/presentation":"~0.6.1",
|
||||||
"@anticrm/chunter":"~0.6.0",
|
"@anticrm/chunter":"~0.6.0",
|
||||||
"svelte":"^3.37.0",
|
"svelte":"^3.37.0",
|
||||||
"@anticrm/text-editor":"~0.6.0"
|
"@anticrm/text-editor":"~0.6.0",
|
||||||
|
"@anticrm/contact": "~0.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,11 +19,12 @@
|
|||||||
import type { Doc } from '@anticrm/core'
|
import type { Doc } from '@anticrm/core'
|
||||||
import { Backlink as BacklinkComponent } from '@anticrm/presentation'
|
import { Backlink as BacklinkComponent } from '@anticrm/presentation'
|
||||||
import type { Backlink } from '@anticrm/chunter'
|
import type { Backlink } from '@anticrm/chunter'
|
||||||
import { CommentViewer } from '@anticrm/presentation'
|
|
||||||
import { ReferenceInput } from '@anticrm/text-editor'
|
import { ReferenceInput } from '@anticrm/text-editor'
|
||||||
import { createQuery } from '@anticrm/presentation'
|
import { createQuery } from '@anticrm/presentation'
|
||||||
import { Section, IconComments } from '@anticrm/ui'
|
import { Section, IconComments } from '@anticrm/ui'
|
||||||
|
|
||||||
import Bookmark from './icons/Bookmark.svelte'
|
import Bookmark from './icons/Bookmark.svelte'
|
||||||
|
import CommentViewer from './CommentViewer.svelte'
|
||||||
|
|
||||||
import chunter from '@anticrm/chunter'
|
import chunter from '@anticrm/chunter'
|
||||||
|
|
||||||
|
@ -14,15 +14,8 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Avatar from './Avatar.svelte'
|
import type { Person } from '@anticrm/contact'
|
||||||
|
import { Avatar } from '@anticrm/presentation'
|
||||||
interface Person {
|
|
||||||
firstName: string
|
|
||||||
lastName: string
|
|
||||||
email: string
|
|
||||||
description: string
|
|
||||||
city: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IMessage {
|
interface IMessage {
|
||||||
text: string
|
text: string
|
@ -17,7 +17,7 @@
|
|||||||
import { createEventDispatcher } from 'svelte'
|
import { createEventDispatcher } from 'svelte'
|
||||||
import type { Ref, Space } from '@anticrm/core'
|
import type { Ref, Space } from '@anticrm/core'
|
||||||
import { DatePicker, EditBox, Dialog, Tabs, Section, Grid, Row, TextArea, IconComments } from '@anticrm/ui'
|
import { DatePicker, EditBox, Dialog, Tabs, Section, Grid, Row, TextArea, IconComments } from '@anticrm/ui'
|
||||||
import { UserBox, CommentViewer } from '@anticrm/presentation'
|
import { UserBox } from '@anticrm/presentation'
|
||||||
import { ReferenceInput } from '@anticrm/text-editor'
|
import { ReferenceInput } from '@anticrm/text-editor'
|
||||||
import type { Person } from '@anticrm/contact'
|
import type { Person } from '@anticrm/contact'
|
||||||
import File from './icons/File.svelte'
|
import File from './icons/File.svelte'
|
||||||
@ -57,10 +57,10 @@
|
|||||||
<Row><ReferenceInput /></Row>
|
<Row><ReferenceInput /></Row>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Section>
|
</Section>
|
||||||
<Section icon={IconComments} label={'Comments'}>
|
<!-- <Section icon={IconComments} label={'Comments'}>
|
||||||
<CommentViewer />
|
<CommentViewer />
|
||||||
<div class="reference"><ReferenceInput /></div>
|
<div class="reference"><ReferenceInput /></div>
|
||||||
</Section>
|
</Section> -->
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@ -21,7 +21,7 @@ import { v4 as uuid } from 'uuid'
|
|||||||
|
|
||||||
const BUCKET = 'anticrm-upload-9e4e89c'
|
const BUCKET = 'anticrm-upload-9e4e89c'
|
||||||
|
|
||||||
async function awsUpload(file: UploadedFile) {
|
async function awsUpload (file: UploadedFile): Promise<S3.ManagedUpload.SendData> {
|
||||||
console.log(file)
|
console.log(file)
|
||||||
const s3 = new S3()
|
const s3 = new S3()
|
||||||
const resp = await s3.upload({
|
const resp = await s3.upload({
|
||||||
@ -32,6 +32,7 @@ async function awsUpload(file: UploadedFile) {
|
|||||||
ACL: 'public-read'
|
ACL: 'public-read'
|
||||||
}).promise()
|
}).promise()
|
||||||
console.log(resp)
|
console.log(resp)
|
||||||
|
return resp
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user