2021-12-06 10:07:08 +00:00
|
|
|
//
|
|
|
|
// Copyright © 2020 Anticrm Platform Contributors.
|
2022-01-14 09:20:31 +00:00
|
|
|
//
|
2021-09-27 08:06:05 +00:00
|
|
|
// 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
|
2022-01-14 09:20:31 +00:00
|
|
|
//
|
2021-09-27 08:06:05 +00:00
|
|
|
// 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.
|
2022-01-14 09:20:31 +00:00
|
|
|
//
|
2021-09-27 08:06:05 +00:00
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2021-12-06 10:07:08 +00:00
|
|
|
//
|
2021-09-27 08:06:05 +00:00
|
|
|
|
2021-12-06 10:07:08 +00:00
|
|
|
import AttachmentsPresenter from './components/AttachmentsPresenter.svelte'
|
|
|
|
import AttachmentPresenter from './components/AttachmentPresenter.svelte'
|
|
|
|
import TxAttachmentCreate from './components/activity/TxAttachmentCreate.svelte'
|
|
|
|
import Attachments from './components/Attachments.svelte'
|
2022-01-14 09:20:31 +00:00
|
|
|
import Photos from './components/Photos.svelte'
|
|
|
|
import { Resources } from '@anticrm/platform'
|
2022-01-14 09:09:01 +00:00
|
|
|
import { uploadFile, deleteFile } from './utils'
|
2021-10-23 16:48:22 +00:00
|
|
|
|
2021-12-07 09:05:52 +00:00
|
|
|
export { Attachments, AttachmentsPresenter }
|
2021-09-27 08:06:05 +00:00
|
|
|
|
2022-01-14 09:20:31 +00:00
|
|
|
export default async (): Promise<Resources> => ({
|
2021-12-06 10:07:08 +00:00
|
|
|
component: {
|
|
|
|
AttachmentsPresenter,
|
|
|
|
AttachmentPresenter,
|
2022-01-14 09:20:31 +00:00
|
|
|
Attachments,
|
|
|
|
Photos
|
2021-12-06 10:07:08 +00:00
|
|
|
},
|
|
|
|
activity: {
|
|
|
|
TxAttachmentCreate
|
2022-01-12 09:52:22 +00:00
|
|
|
},
|
|
|
|
helper: {
|
2022-01-14 09:09:01 +00:00
|
|
|
UploadFile: uploadFile,
|
|
|
|
DeleteFile: deleteFile
|
2021-12-06 10:07:08 +00:00
|
|
|
}
|
|
|
|
})
|