1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

add collabServer

This commit is contained in:
wangjianhui
2018-12-18 17:32:00 +08:00
parent 8afd2797d4
commit 5d0386bbad
10 changed files with 60 additions and 42 deletions

View File

@@ -4,6 +4,7 @@ import moment from 'moment';
import { gettext, repoID, siteRoot, initialPath, isDir, serviceUrl } from './utils/constants';
import { seafileAPI } from './utils/seafile-api';
import { Utils } from './utils/utils';
import collabServer from './utils/collab-server';
import SidePanel from './pages/repo-wiki-mode/side-panel';
import MainPanel from './pages/repo-wiki-mode/main-panel';
import Node from './components/tree-view/node';
@@ -281,6 +282,7 @@ class Wiki extends Component {
isDirentListLoading: false,
dirID: res.headers.oid,
});
collabServer.watchRepo(repoID, this.state.path, this.state.dirID);
});
}
@@ -837,7 +839,6 @@ class Wiki extends Component {
onDeleteNode={this.onDeleteTreeNode}
/>
<MainPanel
dirID={this.state.dirID}
path={this.state.path}
isViewFile={this.state.isViewFile}
pathExist={this.state.pathExist}