platform/plugins/chunter-resources/src/index.ts

53 lines
1.8 KiB
TypeScript
Raw Normal View History

//
// Copyright © 2020 Anticrm Platform Contributors.
//
// 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.
//
import { Channel } from '@anticrm/chunter'
import { Doc } from '@anticrm/core'
import login from '@anticrm/login'
import { getMetadata, Resources } from '@anticrm/platform'
import { collectBacklinks } from './backlinks'
import TxBacklinkCreate from './components/activity/TxBacklinkCreate.svelte'
import TxBacklinkReference from './components/activity/TxBacklinkReference.svelte'
import TxCommentCreate from './components/activity/TxCommentCreate.svelte'
import ChannelPresenter from './components/ChannelPresenter.svelte'
import ChannelView from './components/ChannelView.svelte'
import CommentInput from './components/CommentInput.svelte'
import CommentPresenter from './components/CommentPresenter.svelte'
import CommentsPresenter from './components/CommentsPresenter.svelte'
import CreateChannel from './components/CreateChannel.svelte'
import chunter from './plugin'
import workbench from '@anticrm/workbench'
export { CommentsPresenter }
export default async (): Promise<Resources> => ({
component: {
CommentInput,
CreateChannel,
ChannelView,
CommentPresenter,
CommentsPresenter,
ChannelPresenter
},
activity: {
TxCommentCreate,
TxBacklinkCreate,
TxBacklinkReference
},
action: {
CommentRemove: collectBacklinks
}
})