2021-08-07 15:23:13 +00:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
2022-01-19 09:04:30 +00:00
|
|
|
import type { TxViewlet } from '@anticrm/activity'
|
2021-12-08 09:07:05 +00:00
|
|
|
import { Channel, chunterId } from '@anticrm/chunter'
|
2021-08-07 15:23:13 +00:00
|
|
|
import chunter from '@anticrm/chunter-resources/src/plugin'
|
2022-05-31 13:01:24 +00:00
|
|
|
import type { Ref, Space } from '@anticrm/core'
|
|
|
|
import type { IntlString, Resource } from '@anticrm/platform'
|
2021-08-07 15:23:13 +00:00
|
|
|
import { mergeIds } from '@anticrm/platform'
|
2021-08-31 14:54:47 +00:00
|
|
|
import type { AnyComponent } from '@anticrm/ui'
|
2022-05-04 08:08:12 +00:00
|
|
|
import type { Action, ActionCategory, ViewAction, ViewletDescriptor } from '@anticrm/view'
|
2021-08-07 15:23:13 +00:00
|
|
|
|
|
|
|
export default mergeIds(chunterId, chunter, {
|
2021-08-31 14:54:47 +00:00
|
|
|
component: {
|
2022-01-19 09:04:30 +00:00
|
|
|
CommentPresenter: '' as AnyComponent,
|
2022-04-02 04:08:37 +00:00
|
|
|
ChannelPresenter: '' as AnyComponent,
|
2022-04-22 03:13:15 +00:00
|
|
|
DmPresenter: '' as AnyComponent,
|
2022-04-14 16:55:56 +00:00
|
|
|
Threads: '' as AnyComponent,
|
2022-04-21 05:39:49 +00:00
|
|
|
ThreadView: '' as AnyComponent,
|
2022-05-31 13:01:24 +00:00
|
|
|
SavedMessages: '' as AnyComponent,
|
2022-06-10 16:10:15 +00:00
|
|
|
ChunterBrowser: '' as AnyComponent
|
2021-08-31 14:54:47 +00:00
|
|
|
},
|
2022-04-05 08:01:03 +00:00
|
|
|
action: {
|
|
|
|
MarkCommentUnread: '' as Ref<Action>,
|
2022-04-18 05:56:25 +00:00
|
|
|
MarkUnread: '' as Ref<Action>,
|
|
|
|
ArchiveChannel: '' as Ref<Action>,
|
2022-05-17 07:11:09 +00:00
|
|
|
UnarchiveChannel: '' as Ref<Action>,
|
|
|
|
ConvertToPrivate: '' as Ref<Action>
|
2022-04-05 08:01:03 +00:00
|
|
|
},
|
|
|
|
actionImpl: {
|
2022-04-19 09:38:31 +00:00
|
|
|
MarkUnread: '' as ViewAction,
|
|
|
|
MarkCommentUnread: '' as ViewAction,
|
|
|
|
ArchiveChannel: '' as ViewAction,
|
2022-05-17 07:11:09 +00:00
|
|
|
UnarchiveChannel: '' as ViewAction,
|
|
|
|
ConvertDmToPrivateChannel: '' as ViewAction
|
2022-04-05 08:01:03 +00:00
|
|
|
},
|
2022-05-04 08:08:12 +00:00
|
|
|
category: {
|
|
|
|
Chunter: '' as Ref<ActionCategory>
|
|
|
|
},
|
2021-08-07 15:23:13 +00:00
|
|
|
string: {
|
2021-11-18 12:48:05 +00:00
|
|
|
ApplicationLabelChunter: '' as IntlString,
|
2022-01-19 09:04:30 +00:00
|
|
|
LeftComment: '' as IntlString,
|
2022-02-23 16:10:11 +00:00
|
|
|
MentionedIn: '' as IntlString,
|
|
|
|
Content: '' as IntlString,
|
|
|
|
Comment: '' as IntlString,
|
|
|
|
Message: '' as IntlString,
|
|
|
|
Reference: '' as IntlString,
|
2022-04-02 04:08:37 +00:00
|
|
|
Chat: '' as IntlString,
|
|
|
|
CreateBy: '' as IntlString,
|
2022-04-05 08:01:03 +00:00
|
|
|
Create: '' as IntlString,
|
2022-04-15 08:53:57 +00:00
|
|
|
Edit: '' as IntlString,
|
2022-04-06 05:35:52 +00:00
|
|
|
MarkUnread: '' as IntlString,
|
2022-04-14 08:53:33 +00:00
|
|
|
LastMessage: '' as IntlString,
|
2022-04-21 05:39:49 +00:00
|
|
|
PinnedMessages: '' as IntlString,
|
2022-05-31 13:01:24 +00:00
|
|
|
SavedMessages: '' as IntlString,
|
2022-06-21 07:55:17 +00:00
|
|
|
ThreadMessage: '' as IntlString,
|
|
|
|
Reactions: '' as IntlString,
|
|
|
|
Emoji: '' as IntlString
|
2021-08-07 15:23:13 +00:00
|
|
|
},
|
|
|
|
viewlet: {
|
|
|
|
Chat: '' as Ref<ViewletDescriptor>
|
2021-11-18 12:48:05 +00:00
|
|
|
},
|
|
|
|
ids: {
|
|
|
|
TxCommentCreate: '' as Ref<TxViewlet>,
|
2022-04-29 16:47:22 +00:00
|
|
|
TxBacklinkCreate: '' as Ref<TxViewlet>,
|
2022-01-19 09:04:30 +00:00
|
|
|
TxCommentRemove: '' as Ref<TxViewlet>,
|
|
|
|
TxBacklinkRemove: '' as Ref<TxViewlet>
|
2021-11-18 12:48:05 +00:00
|
|
|
},
|
|
|
|
activity: {
|
2022-01-19 09:04:30 +00:00
|
|
|
TxCommentCreate: '' as AnyComponent,
|
|
|
|
TxBacklinkCreate: '' as AnyComponent,
|
|
|
|
TxBacklinkReference: '' as AnyComponent
|
2021-12-08 09:07:05 +00:00
|
|
|
},
|
|
|
|
space: {
|
|
|
|
General: '' as Ref<Channel>,
|
|
|
|
Random: '' as Ref<Channel>
|
2022-05-31 13:01:24 +00:00
|
|
|
},
|
|
|
|
function: {
|
2022-06-10 16:10:15 +00:00
|
|
|
ChunterBrowserVisible: '' as Resource<(spaces: Space[]) => boolean>
|
2022-01-19 09:04:30 +00:00
|
|
|
}
|
2021-08-07 15:23:13 +00:00
|
|
|
})
|