@seafile/sdoc-editor 0.1.159-beta15 → 0.1.159-beta16
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.
package/dist/api/seafile-api.js
CHANGED
|
@@ -97,8 +97,8 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
97
97
|
return this.req.put(url, formData);
|
|
98
98
|
}
|
|
99
99
|
}, {
|
|
100
|
-
key: "
|
|
101
|
-
value: function
|
|
100
|
+
key: "getRevisionBaseVersionContent",
|
|
101
|
+
value: function getRevisionBaseVersionContent(docUuid) {
|
|
102
102
|
var url = 'api/v2.1/seadoc/revision/base-version-content/' + docUuid + '/';
|
|
103
103
|
return this.req.get(url);
|
|
104
104
|
}
|
package/dist/context.js
CHANGED
|
@@ -205,10 +205,10 @@ var Context = /*#__PURE__*/function () {
|
|
|
205
205
|
return this.api.deleteSdocRevision(docUuid);
|
|
206
206
|
}
|
|
207
207
|
}, {
|
|
208
|
-
key: "
|
|
209
|
-
value: function
|
|
208
|
+
key: "getRevisionBaseVersionContent",
|
|
209
|
+
value: function getRevisionBaseVersionContent() {
|
|
210
210
|
var docUuid = this.getSetting('docUuid');
|
|
211
|
-
return this.api.
|
|
211
|
+
return this.api.getRevisionBaseVersionContent(docUuid);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
// local files
|
|
@@ -204,7 +204,7 @@ var SimpleEditor = function SimpleEditor(_ref) {
|
|
|
204
204
|
}
|
|
205
205
|
var baseContent;
|
|
206
206
|
var masterContent;
|
|
207
|
-
context.
|
|
207
|
+
context.getRevisionBaseVersionContent().then(function (res) {
|
|
208
208
|
var baseVersionContentString = res.data.content; // commit content
|
|
209
209
|
baseContent = JSON.parse(baseVersionContentString);
|
|
210
210
|
return context.getSeadocOriginFileContent();
|