mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 21:03:30 +00:00
introduce AttachmentPresenter
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
63a79a88d7
commit
6813bedc55
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -121,9 +121,9 @@ export function createModel (builder: Builder): void {
|
|||||||
members: []
|
members: []
|
||||||
})
|
})
|
||||||
|
|
||||||
// builder.mixin(chunter.class.Attachment, core.class.Class, view.mixin.AttributePresenter, {
|
builder.mixin(chunter.class.Attachment, core.class.Class, view.mixin.AttributePresenter, {
|
||||||
// presenter: chunter.component.AttachmentPresenter
|
presenter: chunter.component.AttachmentPresenter
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default chunter
|
export default chunter
|
||||||
|
@ -23,7 +23,8 @@ import type { AnyComponent } from '@anticrm/ui'
|
|||||||
|
|
||||||
export default mergeIds(chunterId, chunter, {
|
export default mergeIds(chunterId, chunter, {
|
||||||
component: {
|
component: {
|
||||||
AttachmentsPresenter: '' as AnyComponent
|
AttachmentsPresenter: '' as AnyComponent,
|
||||||
|
AttachmentPresenter: '' as AnyComponent
|
||||||
},
|
},
|
||||||
string: {
|
string: {
|
||||||
ApplicationLabelChunter: '' as IntlString
|
ApplicationLabelChunter: '' as IntlString
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
<!--
|
||||||
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
||||||
|
// Copyright © 2021 Hardcore Engineering Inc.
|
||||||
|
//
|
||||||
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License. You may
|
||||||
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
//
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
|
||||||
|
import type { Attachment } from '@anticrm/chunter'
|
||||||
|
|
||||||
|
export let value: Attachment
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{JSON.stringify(value)}
|
@ -17,6 +17,7 @@ import CreateChannel from './components/CreateChannel.svelte'
|
|||||||
import ChannelView from './components/ChannelView.svelte'
|
import ChannelView from './components/ChannelView.svelte'
|
||||||
import Activity from './components/Activity.svelte'
|
import Activity from './components/Activity.svelte'
|
||||||
import AttachmentsPresenter from './components/AttachmentsPresenter.svelte'
|
import AttachmentsPresenter from './components/AttachmentsPresenter.svelte'
|
||||||
|
import AttachmentPresenter from './components/AttachmentPresenter.svelte'
|
||||||
|
|
||||||
export { AttachmentsPresenter }
|
export { AttachmentsPresenter }
|
||||||
|
|
||||||
@ -25,6 +26,7 @@ export default async () => ({
|
|||||||
CreateChannel,
|
CreateChannel,
|
||||||
ChannelView,
|
ChannelView,
|
||||||
Activity,
|
Activity,
|
||||||
AttachmentsPresenter
|
AttachmentsPresenter,
|
||||||
|
AttachmentPresenter
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<Table
|
<Table
|
||||||
_class={chunter.class.Attachment}
|
_class={chunter.class.Attachment}
|
||||||
config={['name', 'file', 'type']}
|
config={['', 'file', 'type']}
|
||||||
options={ {} }
|
options={ {} }
|
||||||
search=""
|
search=""
|
||||||
/>
|
/>
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user