mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 21:30:39 +00:00
update import seafileAPI
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import SeafileEditor from '@seafile/seafile-editor';
|
import SeafileEditor from '@seafile/seafile-editor';
|
||||||
import 'whatwg-fetch';
|
import 'whatwg-fetch';
|
||||||
import { SeafileAPI } from 'seafile-js';
|
import { SeafileAPI } from './utils/seafile-api';
|
||||||
import { Utils } from './utils/utils';
|
import { Utils } from './utils/utils';
|
||||||
import cookie from 'react-cookies';
|
import cookie from 'react-cookies';
|
||||||
import ModalPortal from './components/modal-portal';
|
import ModalPortal from './components/modal-portal';
|
||||||
@@ -32,10 +32,6 @@ let dirPath = '/';
|
|||||||
const serviceUrl = window.app.config.serviceUrl;
|
const serviceUrl = window.app.config.serviceUrl;
|
||||||
const seafileCollabServer = window.app.config.seafileCollabServer;
|
const seafileCollabServer = window.app.config.seafileCollabServer;
|
||||||
const userInfo = window.app.userInfo;
|
const userInfo = window.app.userInfo;
|
||||||
// init seafileAPI
|
|
||||||
let seafileAPI = new SeafileAPI();
|
|
||||||
let xcsrfHeaders = cookie.load('sfcsrftoken');
|
|
||||||
seafileAPI.initForSeahubUsage({ siteRoot, xcsrfHeaders });
|
|
||||||
|
|
||||||
function getImageFileNameWithTimestamp() {
|
function getImageFileNameWithTimestamp() {
|
||||||
var d = Date.now();
|
var d = Date.now();
|
||||||
|
Reference in New Issue
Block a user