1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Update tmp (#2373)

* fix file history time

* change activities url to dashboard

* remove serverRoot from dashboard

* fix api name

* Repair some components are not display

* fix code style

* rename file

* init seafileAPI

* update search

* update seafile-editor seafile-js

* debug rebase

* fix activities loading

* fix drafts css

* add permission
This commit is contained in:
C_Q
2018-09-18 10:11:37 +08:00
committed by Daniel Pan
parent 180f388af1
commit 3d165ec733
35 changed files with 236 additions and 276 deletions

View File

@@ -1,12 +1,12 @@
import React, { Component } from 'react';
import cookie from 'react-cookies';
import ReactDOM from 'react-dom';
import SidePanel from './pages/repo-wiki-mode/side-panel';
import MainPanel from './pages/repo-wiki-mode/main-panel';
import moment from 'moment';
import { slug, repoID, serviceUrl, initialFilePath } from './components/constance';
import { slug, repoID, serviceUrl, initialFilePath } from './components/constants';
import editorUtilities from './utils/editor-utilties';
import { seafileAPI } from './utils/editor-utilties';
import { seafileAPI } from './utils/seafile-api';
import cookie from 'react-cookies';
import Node from './components/tree-view/node'
import Tree from './components/tree-view/tree'
import 'seafile-ui';
@@ -149,7 +149,8 @@ class Wiki extends Component {
}
}
onSearchedClick = (path) => {
onSearchedClick = (item) => {
let path = item.path;
if (this.state.currentFilePath !== path) {
this.initMainPanelData(path);