1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

change format

This commit is contained in:
Michael An
2025-04-02 18:32:39 +08:00
committed by 孙永强
parent 6d32b4409b
commit 247a5b06ae
2 changed files with 2 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ import SelectedDirentsToolbar from '../../components/toolbar/selected-dirents-to
import MetadataPathToolbar from '../../components/toolbar/metadata-path-toolbar'; import MetadataPathToolbar from '../../components/toolbar/metadata-path-toolbar';
import { eventBus } from '../../components/common/event-bus'; import { eventBus } from '../../components/common/event-bus';
import WebSocketClient from '../../utils/websocket-service'; import WebSocketClient from '../../utils/websocket-service';
import '../../css/lib-content-view.css'; import '../../css/lib-content-view.css';
dayjs.extend(relativeTime); dayjs.extend(relativeTime);
@@ -190,8 +191,7 @@ class LibContentView extends React.Component {
this.updateDirent(dirent, 'lock_owner_name', ''); this.updateDirent(dirent, 'lock_owner_name', '');
} }
} }
} } else if (data.type === 'repo-update') {
else if (data.type === 'repo-update') {
seafileAPI.listDir(this.props.repoID, this.state.path, { 'with_thumbnail': true }).then(res => { seafileAPI.listDir(this.props.repoID, this.state.path, { 'with_thumbnail': true }).then(res => {
const { dirent_list, user_perm: userPerm, dir_id: dirID } = res.data; const { dirent_list, user_perm: userPerm, dir_id: dirID } = res.data;
const direntList = Utils.sortDirents(dirent_list.map(item => new Dirent(item)), this.state.sortBy, this.state.sortOrder); const direntList = Utils.sortDirents(dirent_list.map(item => new Dirent(item)), this.state.sortBy, this.state.sortOrder);
@@ -454,7 +454,6 @@ class LibContentView extends React.Component {
// load data // load data
loadDirData = (path) => { loadDirData = (path) => {
// list used FileTags // list used FileTags
this.updateUsedRepoTags(); this.updateUsedRepoTags();

View File

@@ -4,7 +4,6 @@ import { notificationServerUrl } from './constants';
class WebSocketClient { class WebSocketClient {
constructor(onMessageCallback, repoId) { constructor(onMessageCallback, repoId) {
this.url = notificationServerUrl; // WebSocket address; this.url = notificationServerUrl; // WebSocket address;
this.repoId = repoId; this.repoId = repoId;
this.socket = null; this.socket = null;