feature (search): search feature

This commit is contained in:
Mickael
2019-04-02 19:48:50 +11:00
committed by GitHub
parent e729feb43c
commit 0127fa2c02
19 changed files with 633 additions and 64 deletions

View File

@ -368,6 +368,13 @@ class FileSystem{
});
}
search(keyword, path = "/"){
const url = appendShareToUrl("/api/files/search?path="+prepare(path)+"&q="+encodeURIComponent(keyword))
return http_get(url).then((res) => {
return res.results
});
}
frequents(){
let data = [];
return cache.fetchAll((value) => {