@seafile/sdoc-editor 1.0.206-test-5.0.22 → 1.0.206-test-5.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,8 +66,6 @@ const SelectSdocFileDialog = _ref => {
|
|
|
66
66
|
case _constants.ELEMENT_TYPE.VIDEO:
|
|
67
67
|
const repoID = _context.default.getSetting('repoID');
|
|
68
68
|
const fileServerRoot = _context.default.getSetting('fileServerRoot');
|
|
69
|
-
console.log(repoID, fileServerRoot);
|
|
70
|
-
// const { fileServerRoot } = window.app.config;
|
|
71
69
|
// Get seafile's video download url as src
|
|
72
70
|
const url = `${fileServerRoot}repos/${repoID}/files${fileInfo.path}/?op=download`;
|
|
73
71
|
const encodedUrl = encodeURI(url);
|
package/dist/context.js
CHANGED
|
@@ -13,7 +13,6 @@ var _model = require("./model");
|
|
|
13
13
|
class Context {
|
|
14
14
|
constructor() {
|
|
15
15
|
(0, _defineProperty2.default)(this, "initSettings", () => {
|
|
16
|
-
var _window$app, _window$app$config;
|
|
17
16
|
this.settings = window.seafile ? window.seafile : window.seafileConfig;
|
|
18
17
|
const {
|
|
19
18
|
name,
|
|
@@ -33,8 +32,6 @@ class Context {
|
|
|
33
32
|
const originFileURL = `${siteRoot}lib/${repoID}/file${originFilePath}`;
|
|
34
33
|
this.settings['originFileURL'] = originFileURL;
|
|
35
34
|
}
|
|
36
|
-
const fileServerRoot = ((_window$app = window.app) === null || _window$app === void 0 ? void 0 : (_window$app$config = _window$app.config) === null || _window$app$config === void 0 ? void 0 : _window$app$config.fileServerRoot) || '';
|
|
37
|
-
this.settings['fileServerRoot'] = fileServerRoot;
|
|
38
35
|
});
|
|
39
36
|
(0, _defineProperty2.default)(this, "uploadLocalImage", imageFiles => {
|
|
40
37
|
const docUuid = this.getSetting('docUuid');
|