1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-07 15:38:21 +00:00

fix eslint warning and code format ()

This commit is contained in:
Michael An 2024-01-03 21:59:44 +08:00 committed by GitHub
parent adc8960fd8
commit 7456cf1fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 21 deletions
frontend/src
components
sdoc-wiki-page-viewer
shared-repo-list-view
pages
my-libs
sys-admin/orgs
media/css

View File

@ -12,7 +12,7 @@
margin-top: 0;
}
.wiki-page-container .sdoc-article-container .article {
.wiki-page-container .sdoc-article-container .article {
margin: 0;
padding: 0 10px;
max-width: none;
@ -30,13 +30,13 @@
padding: 0 10px;
width: 100%;
}
.wiki-page-container .sdoc-wiki-outline-container{
.wiki-page-container .sdoc-wiki-outline-container {
display: none;
}
}
}
@media (max-width: 767px) {
.wiki-page-container .sdoc-wiki-outline-container{
.wiki-page-container .sdoc-wiki-outline-container {
display: none;
}
}

View File

@ -404,7 +404,7 @@ class SharedRepoListItem extends React.Component {
let operations = [];
if (isPro) {
if (repo.owner_email.indexOf('@seafile_group') != -1) {
// is group admin
// is group admin
if (isStaff) {
if (repo.owner_email == currentGroup.id + '@seafile_group') {
this.isDeparementOnwerGroupMember = true;

View File

@ -96,7 +96,7 @@ class DeletedRepoTable extends Component {
</tr>
</thead>
<tbody>
{ deletedRepos && deletedRepos.map((item) => {
{deletedRepos && deletedRepos.map((item) => {
return (
<DeletedRepoItem
key={item.repo_id}
@ -126,21 +126,17 @@ class DeletedRepoItem extends Component {
}
onMouseEnter = () => {
if (!this.props.isItemFreezed) {
this.setState({
hideRestoreMenu: false,
highlight: true,
});
}
this.setState({
hideRestoreMenu: false,
highlight: true,
});
};
onMouseLeave = () => {
if (!this.props.isItemFreezed) {
this.setState({
hideRestoreMenu: true,
highlight: false,
});
}
this.setState({
hideRestoreMenu: true,
highlight: false,
});
};
restoreDeletedRepo = (e) => {
@ -187,7 +183,6 @@ class DeletedRepoItem extends Component {
}
DeletedRepoItem.propTypes = {
isItemFreezed: PropTypes.bool.isRequired,
repo: PropTypes.object.isRequired,
refreshDeletedRepoList: PropTypes.func.isRequired,
};

View File

@ -5,7 +5,7 @@ import { siteRoot, gettext } from '../../../utils/constants';
const propTypes = {
orgID: PropTypes.string,
orgName: PropTypes.string.isRequired,
orgName: PropTypes.string,
currentItem: PropTypes.string.isRequired
};

View File

@ -498,7 +498,7 @@ a, a:hover { color: #ec8000; }
padding: 0 0.75rem;
}
.department-usage .department-quota-bar {
.department-usage .department-quota-bar {
flex: 1;
margin-right: 0.5rem !important;
height: 0.75rem !important;