mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 11:51:27 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -75,7 +75,7 @@ class Content extends Component {
|
||||
<th width="5%">{/*icon*/}</th>
|
||||
<th width="25%">{gettext('Name')}</th>
|
||||
<th width="15%">
|
||||
{sortBy != undefined ?
|
||||
{sortBy != undefined ?
|
||||
<Fragment>
|
||||
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortByFileCount}>{gettext('Files')} {sortBy == 'file_count' ? sortIcon : initialSortIcon}</a>{' / '}
|
||||
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortBySize}>{gettext('Size')} {sortBy == 'size' ? sortIcon : initialSortIcon}</a>
|
||||
@@ -102,7 +102,7 @@ class Content extends Component {
|
||||
})}
|
||||
</tbody>
|
||||
</table>
|
||||
{pageInfo &&
|
||||
{pageInfo &&
|
||||
<Paginator
|
||||
gotoPreviousPage={this.getPreviousPageList}
|
||||
gotoNextPage={this.getNextPageList}
|
||||
@@ -115,7 +115,7 @@ class Content extends Component {
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
return items.length ? table : emptyTip;
|
||||
return items.length ? table : emptyTip;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -239,7 +239,7 @@ class Item extends Component {
|
||||
}
|
||||
|
||||
translateOperations = (item) => {
|
||||
let translateResult = '';
|
||||
let translateResult = '';
|
||||
switch(item) {
|
||||
case 'Share':
|
||||
translateResult = gettext('Share');
|
||||
@@ -255,7 +255,7 @@ class Item extends Component {
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return translateResult;
|
||||
}
|
||||
@@ -272,10 +272,10 @@ class Item extends Component {
|
||||
|
||||
render () {
|
||||
const { repo } = this.props;
|
||||
const {
|
||||
const {
|
||||
isOpIconShown,
|
||||
isShareDialogOpen,
|
||||
isDeleteDialogOpen,
|
||||
isDeleteDialogOpen,
|
||||
isTransferDialogOpen,
|
||||
isHistorySettingDialogOpen
|
||||
} = this.state;
|
||||
|
Reference in New Issue
Block a user