1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

update parmas (#3904)

* update parmas

* optimized code

* optimized code

* repair upload image bug

* update dtable version

* update config params
This commit is contained in:
杨顺强
2019-07-24 16:05:11 +08:00
committed by Daniel Pan
parent f286250a3c
commit a591b8b3e8
4 changed files with 35 additions and 18 deletions

View File

@@ -4,11 +4,28 @@ import { seafileAPI } from './utils/seafile-api';
import ViewFileDtable from '@seafile/dtable/es';
import './css/view-file-dtable.css';
const { server, workspaceID, username, userNickName, contactEmail, fileName, filePath, dtableUuid } = window.app.pageOptions;
window.dtable = {};
window.dtable = {
workspaceID: workspaceID,
username: username,
name: userNickName,
contactEmail: contactEmail,
server: server,
dtableServer: "http://dev.seafile.com/dtable-server/",
filePath: filePath,
fileName: fileName,
dtableUuid: dtableUuid,
accessToken: '12345678'
};
window.seafileAPI = seafileAPI;
class ViewFileSDB extends React.Component {
render() {
return (
<ViewFileDtable seafileAPI={seafileAPI} pageOptions={window.app.pageOptions} />
<ViewFileDtable />
);
}
}