diff --git a/frontend/src/components/dirent-list-view/dirent-list-item.js b/frontend/src/components/dirent-list-view/dirent-list-item.js
index f8c10ddaa4..5b67448010 100644
--- a/frontend/src/components/dirent-list-view/dirent-list-item.js
+++ b/frontend/src/components/dirent-list-view/dirent-list-item.js
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import MD5 from 'MD5';
import { UncontrolledTooltip } from 'reactstrap';
-import { gettext, siteRoot, mediaUrl, username, canGenerateShareLink } from '../../utils/constants';
+import { gettext, siteRoot, mediaUrl, username } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import { seafileAPI } from '../../utils/seafile-api';
import URLDecorator from '../../utils/url-decorator';
@@ -411,7 +411,7 @@ class DirentListItem extends React.Component {
dragStartItemData = JSON.parse(dragStartItemData);
if (Array.isArray(dragStartItemData)) { //move items
let direntPaths = dragStartItemData.map(draggedItem => {
- return draggedItem.nodeRootPath
+ return draggedItem.nodeRootPath;
});
let selectedPath = Utils.joinPath(this.props.path, this.props.dirent.name);
diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js
index e8a5d8fa5f..a02647890e 100644
--- a/frontend/src/pages/lib-content-view/lib-content-view.js
+++ b/frontend/src/pages/lib-content-view/lib-content-view.js
@@ -550,11 +550,11 @@ class LibContentView extends React.Component {
seafileAPI.listDir(repoID, path).then(res => {
let newDirentList = res.data.dirent_list;
let newAddedDirents = newDirentList.filter(item => {
- return !nodeChildrenNames.includes(item.name)
- })
+ return !nodeChildrenNames.includes(item.name);
+ });
newAddedDirents.map(item => {
this.addNodeToTree(item.name, path, item.type);
- })
+ });
});
}
diff --git a/frontend/src/repo-snapshot.js b/frontend/src/repo-snapshot.js
index b0750bfa55..39ad180dc6 100644
--- a/frontend/src/repo-snapshot.js
+++ b/frontend/src/repo-snapshot.js
@@ -1,7 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { navigate } from '@reach/router';
-import moment from 'moment';
import { Utils } from './utils/utils';
import { gettext, loginUrl, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from './utils/constants';
import { seafileAPI } from './utils/seafile-api';
@@ -233,26 +232,26 @@ class Content extends React.Component {
}
return (
-
-
-
- {this.theadData.map((item, index) => {
- return {item.text} | ;
- })}
-
-
-
- {folderItems.map((item, index) => {
- return ;
- })
- }
-
-
+
+
+
+ {this.theadData.map((item, index) => {
+ return {item.text} | ;
+ })}
+
+
+
+ {folderItems.map((item, index) => {
+ return ;
+ })
+ }
+
+
);
}
}
diff --git a/frontend/src/utils/utils.js b/frontend/src/utils/utils.js
index 04479817e3..e1bc531b7c 100644
--- a/frontend/src/utils/utils.js
+++ b/frontend/src/utils/utils.js
@@ -231,8 +231,8 @@ export const Utils = {
isIEBrower: function() { // is ie <= ie11 not include Edge
var userAgent = navigator.userAgent;
- var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;
- var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
+ var isIE = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1;
+ var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf('rv:11.0') > -1;
return isIE || isIE11;
},