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:
@@ -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 />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user