mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-25 14:43:15 +00:00
fix eslint warning and code format (#5877)
This commit is contained in:
parent
adc8960fd8
commit
7456cf1fae
@ -12,7 +12,7 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wiki-page-container .sdoc-article-container .article {
|
.wiki-page-container .sdoc-article-container .article {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
@ -30,13 +30,13 @@
|
|||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.wiki-page-container .sdoc-wiki-outline-container{
|
.wiki-page-container .sdoc-wiki-outline-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.wiki-page-container .sdoc-wiki-outline-container{
|
.wiki-page-container .sdoc-wiki-outline-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -404,7 +404,7 @@ class SharedRepoListItem extends React.Component {
|
|||||||
let operations = [];
|
let operations = [];
|
||||||
if (isPro) {
|
if (isPro) {
|
||||||
if (repo.owner_email.indexOf('@seafile_group') != -1) {
|
if (repo.owner_email.indexOf('@seafile_group') != -1) {
|
||||||
// is group admin
|
// is group admin
|
||||||
if (isStaff) {
|
if (isStaff) {
|
||||||
if (repo.owner_email == currentGroup.id + '@seafile_group') {
|
if (repo.owner_email == currentGroup.id + '@seafile_group') {
|
||||||
this.isDeparementOnwerGroupMember = true;
|
this.isDeparementOnwerGroupMember = true;
|
||||||
|
@ -96,7 +96,7 @@ class DeletedRepoTable extends Component {
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{ deletedRepos && deletedRepos.map((item) => {
|
{deletedRepos && deletedRepos.map((item) => {
|
||||||
return (
|
return (
|
||||||
<DeletedRepoItem
|
<DeletedRepoItem
|
||||||
key={item.repo_id}
|
key={item.repo_id}
|
||||||
@ -126,21 +126,17 @@ class DeletedRepoItem extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMouseEnter = () => {
|
onMouseEnter = () => {
|
||||||
if (!this.props.isItemFreezed) {
|
this.setState({
|
||||||
this.setState({
|
hideRestoreMenu: false,
|
||||||
hideRestoreMenu: false,
|
highlight: true,
|
||||||
highlight: true,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onMouseLeave = () => {
|
onMouseLeave = () => {
|
||||||
if (!this.props.isItemFreezed) {
|
this.setState({
|
||||||
this.setState({
|
hideRestoreMenu: true,
|
||||||
hideRestoreMenu: true,
|
highlight: false,
|
||||||
highlight: false,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
restoreDeletedRepo = (e) => {
|
restoreDeletedRepo = (e) => {
|
||||||
@ -187,7 +183,6 @@ class DeletedRepoItem extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DeletedRepoItem.propTypes = {
|
DeletedRepoItem.propTypes = {
|
||||||
isItemFreezed: PropTypes.bool.isRequired,
|
|
||||||
repo: PropTypes.object.isRequired,
|
repo: PropTypes.object.isRequired,
|
||||||
refreshDeletedRepoList: PropTypes.func.isRequired,
|
refreshDeletedRepoList: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ import { siteRoot, gettext } from '../../../utils/constants';
|
|||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
orgID: PropTypes.string,
|
orgID: PropTypes.string,
|
||||||
orgName: PropTypes.string.isRequired,
|
orgName: PropTypes.string,
|
||||||
currentItem: PropTypes.string.isRequired
|
currentItem: PropTypes.string.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -498,7 +498,7 @@ a, a:hover { color: #ec8000; }
|
|||||||
padding: 0 0.75rem;
|
padding: 0 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.department-usage .department-quota-bar {
|
.department-usage .department-quota-bar {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-right: 0.5rem !important;
|
margin-right: 0.5rem !important;
|
||||||
height: 0.75rem !important;
|
height: 0.75rem !important;
|
||||||
|
Loading…
Reference in New Issue
Block a user