mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 03:54:59 +08:00
feature (search): search feature
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user