1
0
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:
Ranjiwei
2025-01-04 18:03:00 +08:00
committed by GitHub
parent f0ee34399b
commit 2733211cc9
17 changed files with 10 additions and 131 deletions

View File

@@ -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();