@seafile/sdoc-editor 1.0.163-alpha.1 → 1.0.163-alpha.2
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.
|
@@ -42,6 +42,7 @@ const LocalFiles = _ref => {
|
|
|
42
42
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
43
43
|
}, []);
|
|
44
44
|
const getTreeData = (0, _react.useCallback)((p, indexId, treeData) => {
|
|
45
|
+
console.log(p);
|
|
45
46
|
// return context.getSdocLocalFiles(p, fileType).then(res => {
|
|
46
47
|
return _context.default.getSearchFilesByFilename('10', '1', '10', 'sdoc').then(res => {
|
|
47
48
|
res.data.forEach(item => {
|
package/dist/context.js
CHANGED
|
@@ -203,9 +203,10 @@ class Context {
|
|
|
203
203
|
const repoID = this.getSetting('repoID');
|
|
204
204
|
return this.api.getSdocFiles(docUuid, p, type, this.server);
|
|
205
205
|
}
|
|
206
|
-
getSearchFilesByFilename(query, page, per_page
|
|
206
|
+
getSearchFilesByFilename(query, page, per_page) {
|
|
207
207
|
const docUuid = this.getSetting('docUuid');
|
|
208
|
-
return this.api.
|
|
208
|
+
return this.api.searchSdocFiles(docUuid, query, page, per_page);
|
|
209
|
+
// return this.api.getSearchByFilename(docUuid, query, page, per_page, search_type);
|
|
209
210
|
}
|
|
210
211
|
listRepos(options) {
|
|
211
212
|
/*
|