1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

remove comment (#5650)

* remove comment

* remove useless third party lib

* remove comment
This commit is contained in:
Michael An
2023-09-18 18:15:54 +08:00
committed by GitHub
parent f7754fa2e1
commit 2a6aa4b4d4
31 changed files with 34 additions and 2570 deletions

View File

@@ -30,8 +30,6 @@ class RichMarkdownEditor extends React.Component {
this.state = {
isShowSidePanel: false,
isShowHelpPanel: false,
isSupportComment: false,
relistComment: 0,
};
window.richMarkdownEditor = this;
}
@@ -51,14 +49,6 @@ class RichMarkdownEditor extends React.Component {
this.setState({isShowHelpPanel: false});
};
toggleCommentBtn = (isSupport = false) => {
this.setState({isSupportComment: isSupport});
};
onAddComment = () => {
this.setState({relistComment: this.state.relistComment + 1});
};
insertRepoFile = () => {
if (this.props.readOnly) return;
this.props.openDialogs && this.props.openDialogs('insert_file');
@@ -96,8 +86,8 @@ class RichMarkdownEditor extends React.Component {
editorApi={this.props.editorApi}
onChange={this.props.onChange}
resetRichValue={this.props.resetRichValue}
isSupportComment={this.state.isSupportComment}
onAddComment={this.onAddComment}
isSupportComment={false}
onAddComment={() => {}}
/>
</div>
<div className={`markdown-help-wrapper ${isShowHelpWrapper ? 'show' : ''}`} style={helpWrapperStyle}>
@@ -105,12 +95,10 @@ class RichMarkdownEditor extends React.Component {
<SidePanel
document={value}
fileInfo={this.props.fileInfo}
relistComment={this.state.relistComment}
fileTagList={this.props.fileTagList}
onFileTagChanged={this.props.onFileTagChanged}
participants={this.props.participants}
onParticipantsChange={this.props.onParticipantsChange}
toggleCommentBtn={this.toggleCommentBtn}
/>
)}
{isShowHelpPanel && <UserHelp hideHelpDialog={this.hideHelpDialog} />}