diff --git a/frontend/src/pages/data-grid/app-main.js b/frontend/src/pages/data-grid/app-main.js
index 18c02a54e4..1510ddedf5 100644
--- a/frontend/src/pages/data-grid/app-main.js
+++ b/frontend/src/pages/data-grid/app-main.js
@@ -23,7 +23,7 @@ const DEFAULT_DATA = {
}
],
rows: [{name: 'name_' + 0}]
-}
+};
class AppMain extends React.Component {
diff --git a/frontend/src/pages/groups/group-view.js b/frontend/src/pages/groups/group-view.js
index 28a293a584..d7c2e3359e 100644
--- a/frontend/src/pages/groups/group-view.js
+++ b/frontend/src/pages/groups/group-view.js
@@ -222,11 +222,11 @@ class GroupView extends React.Component {
});
this.setState({repoList: repoList});
let name = repo.repo_name;
- var msg = gettext("Successfully deleted {name}.").replace('{name}', name);
+ var msg = gettext('Successfully deleted {name}.').replace('{name}', name);
toaster.success(msg);
}).catch(() => {
let name = repo.repo_name;
- var msg = gettext("Failed to delete {name}.").replace('{name}', name);
+ var msg = gettext('Failed to delete {name}.').replace('{name}', name);
toaster.danger(msg);
});
}
diff --git a/frontend/src/pages/my-libs/mylib-repo-list-item.js b/frontend/src/pages/my-libs/mylib-repo-list-item.js
index 7f0b5032de..d26ecc26ca 100644
--- a/frontend/src/pages/my-libs/mylib-repo-list-item.js
+++ b/frontend/src/pages/my-libs/mylib-repo-list-item.js
@@ -196,11 +196,11 @@ class MylibRepoListItem extends React.Component {
seafileAPI.deleteRepo(repo.repo_id).then((res) => {
this.props.onDeleteRepo(repo);
let name = repo.repo_name;
- var msg = gettext("Successfully deleted {name}.").replace('{name}', name);
+ var msg = gettext('Successfully deleted {name}.').replace('{name}', name);
toaster.success(msg);
}).catch(() => {
let name = repo.repo_name;
- var msg = gettext("Failed to delete {name}.").replace('{name}', name);
+ var msg = gettext('Failed to delete {name}.').replace('{name}', name);
toaster.danger(msg);
});
}
diff --git a/frontend/src/pages/share-admin/share-links.js b/frontend/src/pages/share-admin/share-links.js
index 56ea38a54d..c8c0e1a49e 100644
--- a/frontend/src/pages/share-admin/share-links.js
+++ b/frontend/src/pages/share-admin/share-links.js
@@ -27,7 +27,7 @@ class Content extends Component {
this.props.sortItems(sortBy, sortOrder);
}
- constructor(props) {
+ constructor(props) {
super(props);
this.state = {
modalOpen: false,
@@ -121,7 +121,7 @@ class Item extends Component {
constructor(props) {
super(props);
- let item = this.props.item
+ let item = this.props.item;
this.state = {
currentPermission: item.permissions.can_download ? 'Preview and download' : 'Preview only',
showOpIcon: false,
@@ -210,7 +210,7 @@ class Item extends Component {
let deleteIconClassName = 'sf2-icon-delete action-icon' + iconVisibility;
return (
-  |
+  |
{item.is_dir ?
{item.obj_name} :
diff --git a/frontend/src/pages/shared-libs/shared-libs.js b/frontend/src/pages/shared-libs/shared-libs.js
index 3af004ca42..43faadba6e 100644
--- a/frontend/src/pages/shared-libs/shared-libs.js
+++ b/frontend/src/pages/shared-libs/shared-libs.js
@@ -180,7 +180,7 @@ class Item extends Component {
});
// TODO: show feedback msg
}).catch((error) => {
- // TODO: show feedback msg
+ // TODO: show feedback msg
});
}
@@ -196,7 +196,7 @@ class Item extends Component {
} else {
seafileAPI.starItem(this.props.data.repo_id, '/').then(() => {
this.setState({isStarred: !this.state.isStarred});
- })
+ });
}
}
@@ -266,7 +266,7 @@ class Item extends Component {
{(isPro && data.is_admin) &&
}
-
+
|
{this.state.isShowSharedDialog && (
diff --git a/frontend/src/pages/sys-admin/index.js b/frontend/src/pages/sys-admin/index.js
index 5b0263de7e..49bfe21a91 100644
--- a/frontend/src/pages/sys-admin/index.js
+++ b/frontend/src/pages/sys-admin/index.js
@@ -1,11 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from '@reach/router';
-import { siteRoot, gettext } from '../../utils/constants';
+import { siteRoot } from '../../utils/constants';
import SidePanel from './side-panel';
import MainPanel from './main-panel';
import FileScanRecords from './file-scan-records';
-import WorkWeixinDepartments from './work-weixin-departments'
+import WorkWeixinDepartments from './work-weixin-departments';
import '../../assets/css/fa-solid.css';
import '../../assets/css/fa-regular.css';
diff --git a/frontend/src/pages/sys-admin/work-weixin-departments.js b/frontend/src/pages/sys-admin/work-weixin-departments.js
index b313a96108..d7383023b9 100644
--- a/frontend/src/pages/sys-admin/work-weixin-departments.js
+++ b/frontend/src/pages/sys-admin/work-weixin-departments.js
@@ -231,8 +231,8 @@ class WorkWeixinDepartments extends Component {
-
-
+
+
diff --git a/frontend/src/pages/sys-admin/work-weixin/work-weixin-department-members-list.js b/frontend/src/pages/sys-admin/work-weixin/work-weixin-department-members-list.js
index 9999583a22..afefbdc030 100644
--- a/frontend/src/pages/sys-admin/work-weixin/work-weixin-department-members-list.js
+++ b/frontend/src/pages/sys-admin/work-weixin/work-weixin-department-members-list.js
@@ -70,7 +70,7 @@ class WorkWeixinDepartmentMembersList extends Component {
}
{!isMembersListLoading && this.props.membersList.length === 0 &&
-

+
{'成员列表为空'}
}
diff --git a/frontend/src/pages/sys-admin/work-weixin/work-weixin-departments-tree-node.js b/frontend/src/pages/sys-admin/work-weixin/work-weixin-departments-tree-node.js
index 5ebeecb2a7..1d54a8c3b4 100644
--- a/frontend/src/pages/sys-admin/work-weixin/work-weixin-departments-tree-node.js
+++ b/frontend/src/pages/sys-admin/work-weixin/work-weixin-departments-tree-node.js
@@ -55,7 +55,7 @@ class WorkWeixinDepartmentsTreeNode extends Component {
let toggleClass = classNames({
'folder-toggle-icon fa fa-caret-down': department.children && this.state.isChildrenShow,
'folder-toggle-icon fa fa-caret-right': department.children && !this.state.isChildrenShow,
- })
+ });
let nodeInnerClass = classNames({
'tree-node-inner': true,
'tree-node-hight-light': checkedDepartmentId === department.id