1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00

Fix eslint warnings (#5635)

* 01 fix eslint warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings
This commit is contained in:
Michael An
2023-09-13 08:40:50 +08:00
committed by GitHub
parent d829ba5b23
commit 14ce391007
520 changed files with 4774 additions and 3438 deletions

View File

@@ -85,7 +85,7 @@ class WikiMarkdownViewer extends React.Component {
titlesInfo.push(headingList[i].offsetTop);
}
this.titlesInfo = titlesInfo;
}
};
onLinkClick = (event) => {
event.preventDefault();
@@ -101,7 +101,7 @@ class WikiMarkdownViewer extends React.Component {
link = event.target.href;
}
this.props.onLinkClick(link);
}
};
onScrollHandler = () => {
const contentScrollTop = this.markdownContainer.current.scrollTop + 180;
@@ -126,7 +126,7 @@ class WikiMarkdownViewer extends React.Component {
}
}
this.setState({activeTitleIndex: activeTitleIndex});
}
};
changeInlineNode = (item) => {
let url, imagePath;
@@ -168,12 +168,12 @@ class WikiMarkdownViewer extends React.Component {
}
return item;
}
};
modifyValueBeforeRender = (value) => {
let newNodes = Utils.changeMarkdownNodes(value, this.changeInlineNode);
return newNodes;
}
};
renderMarkdown = () => {
let isTOCShow = true;
@@ -200,7 +200,7 @@ class WikiMarkdownViewer extends React.Component {
activeTitleIndex={this.state.activeTitleIndex}
/>
);
}
};
render() {
if (this.props.isFileLoading) {