@seafile/sdoc-editor 1.0.206-test0.1.9 → 1.0.206-test0.2.0

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.
@@ -55,6 +55,11 @@ class SeafileAPI {
55
55
  const url = '/api/v2.1/seadoc/download-image/' + docUuid + '/' + encodeURIComponent(imageName);
56
56
  return this.req.get(url);
57
57
  }
58
+ getSdocDownloadVideoUrl(docUuid, imageName) {
59
+ console.log(docUuid, imageName);
60
+ const url = '/api/v2.1/seadoc/download-video/' + docUuid + '/' + encodeURIComponent(imageName);
61
+ return this.req.get(url);
62
+ }
58
63
  getVideoFileNameWithUuid(file) {
59
64
  return 'video-' + _slugid.default.nice() + file.name.slice(file.name.lastIndexOf('.'));
60
65
  }
package/dist/context.js CHANGED
@@ -53,7 +53,7 @@ class Context {
53
53
  });
54
54
  (0, _defineProperty2.default)(this, "getSeafileVideo", videoName => {
55
55
  const docUuid = this.getSetting('docUuid');
56
- return this.api.getSdocDownloadImageUrl(docUuid, videoName).then(res => {
56
+ return this.api.getSdocDownloadVideoUrl(docUuid, videoName).then(res => {
57
57
  console.log(3, docUuid, videoName, res);
58
58
  const {
59
59
  relative_path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.206-test0.1.9",
3
+ "version": "1.0.206-test0.2.0",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",