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

[eslint] updated eslintrc and improved the code (#4702)

This commit is contained in:
llj
2020-11-02 13:56:35 +08:00
committed by GitHub
parent ed3e5fc416
commit 04f29704b3
337 changed files with 1586 additions and 1585 deletions

View File

@@ -35,7 +35,7 @@ class AllRepos extends Component {
currentPage: parseInt(urlParams.get('page') || currentPage)
}, () => {
this.getReposByPage(this.state.currentPage);
});
});
}
toggleCreateRepoDialog = () => {
@@ -61,7 +61,7 @@ class AllRepos extends Component {
sortItems = (sortBy) => {
this.setState({
currentPage: 1,
sortBy: sortBy
sortBy: sortBy
}, () => {
let url = new URL(location.href);
let searchParams = new URLSearchParams(url.search);
@@ -130,7 +130,7 @@ class AllRepos extends Component {
<MainPanelTopbar search={this.getSearch()}>
<Button className="btn btn-secondary operation-item" onClick={this.toggleCreateRepoDialog}>
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext('New Library')}
</Button>
</Button>
</MainPanelTopbar>
<div className="main-panel-center flex-row">
<div className="cur-view-container">