1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 23:56:18 +00:00

fix code format (#6365)

This commit is contained in:
Michael An
2024-07-18 11:58:42 +08:00
committed by GitHub
parent c5d02b33b2
commit 67210c7363
450 changed files with 2425 additions and 2385 deletions

View File

@@ -26,7 +26,7 @@ class AllRepos extends Component {
};
}
componentDidMount () {
componentDidMount() {
let urlParams = (new URL(window.location)).searchParams;
const { currentPage = 1, perPage, sortBy } = this.state;
this.setState({
@@ -39,7 +39,7 @@ class AllRepos extends Component {
}
toggleCreateRepoDialog = () => {
this.setState({isCreateRepoDialogOpen: !this.state.isCreateRepoDialogOpen});
this.setState({ isCreateRepoDialogOpen: !this.state.isCreateRepoDialogOpen });
};
getReposByPage = (page) => {
@@ -128,10 +128,10 @@ class AllRepos extends Component {
};
getValueLength(str) {
let code, len = 0;
let code; let len = 0;
for (let i = 0, length = str.length; i < length; i++) {
code = str.charCodeAt(i);
if (code === 10) { //solve enter problem
if (code === 10) { // solve enter problem
len += 2;
} else if (code < 0x007f) {
len += 1;