Newer
Older
import CommentBubbleComponent from './components/ui/comments/CommentBubbleComponent';
import RightArea from './components/RightArea';
import { CommentDecorationPlugin } from './plugins/CommentDecorationPlugin';
const commentsConfig = this.app.config.get('config.CommentsService');
if (commentsConfig.setComments().length > 0) {
commentsConfig.setComments().forEach(value => {
map.set(value.id, value);
});
}
this.allCommentsFromStates = this.allCommentsFromStates.filter(
comm =>
(items.find(item => item.id === comm.id) || {}).id !== comm.id,
);
this.allCommentsFromStates = this.allCommentsFromStates.concat([
...items,
]);
if (this.app.context.options.resolvedComment) {
this.allCommentsFromStates = this.allCommentsFromStates.filter(
comm => {
return comm.id !== this.app.context.options.resolvedComment;
},
);
}
commentsConfig.getComments(this.allCommentsFromStates);
'CommentDecorationPlugin',
CommentDecorationPlugin('commentDecorationPlugin', options),
this.app.PmPlugins.add(
'commentPlugin',
CommentPlugin('commentPlugin', this.app.context),
);
const createOverlay = this.container.get('CreateOverlay');
const layout = this.container.get('Layout');
const commentConfig = this.config.get('config.CommentsService');
comment: commentMark(commentConfig?.showTitle || false),