mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
Remove codes (#7309)
* remove-seafile-collab-server * remove-enable-seafle-doc * update
This commit is contained in:
@@ -10,7 +10,6 @@ import { navigate } from '@gatsbyjs/reach-router';
|
||||
import { gettext, siteRoot, username } from '../../utils/constants';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import collabServer from '../../utils/collab-server';
|
||||
import { Dirent, FileTag, RepoTag, RepoInfo } from '../../models';
|
||||
import TreeNode from '../../components/tree-view/tree-node';
|
||||
import treeHelper from '../../components/tree-view/tree-helper';
|
||||
@@ -254,7 +253,6 @@ class LibContentView extends React.Component {
|
||||
|
||||
componentWillUnmount() {
|
||||
window.onpopstate = this.oldonpopstate;
|
||||
collabServer.unwatchRepo(this.props.repoID, this.onRepoUpdateEvent);
|
||||
this.unsubscribeEvent();
|
||||
this.unsubscribeEventBus && this.unsubscribeEventBus();
|
||||
this.props.eventBus.dispatch(EVENT_BUS_TYPE.CURRENT_LIBRARY_CHANGED, {
|
||||
@@ -393,11 +391,6 @@ class LibContentView extends React.Component {
|
||||
|
||||
// load data
|
||||
loadDirData = (path) => {
|
||||
let repoID = this.props.repoID;
|
||||
|
||||
// listen current repo
|
||||
collabServer.watchRepo(repoID, this.onRepoUpdateEvent);
|
||||
|
||||
// list used FileTags
|
||||
this.updateUsedRepoTags();
|
||||
|
||||
|
Reference in New Issue
Block a user