mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-21 00:09:45 +02:00
support cache search in google drive api
This commit is contained in:
@ -51,12 +51,16 @@
|
||||
if (v.name.match term) or (v.description and v.description.match term)
|
||||
v1 = {}
|
||||
v1[k1] = e for k1, e of v when k1 isnt "selected"
|
||||
v1.detail = [{ text: v1.path }]
|
||||
v1.complex = true
|
||||
ar.push v1
|
||||
else if v.mimes
|
||||
for m in v.mimes
|
||||
if t.match (new RegExp m, "g")
|
||||
v1 = {}
|
||||
v1[k1] = v[k1] for k1, e of v when k1 isnt "selected"
|
||||
v1.detail = [{ text: v1.path }]
|
||||
v1.complex = true
|
||||
ar.push v1
|
||||
break
|
||||
return ar
|
@ -311,5 +311,9 @@ self.OS.API.onsearch "Google Drive", (t) ->
|
||||
file = k.asFileHandler()
|
||||
file.text = file.basename
|
||||
file.mime = v.mime
|
||||
file.iconclass = "fa fa-file"
|
||||
file.iconclass = "fa fa-folder" if file.mime is "dir"
|
||||
file.complex = true
|
||||
file.detail = [{ text: file.path }]
|
||||
arr.push file
|
||||
return arr
|
Reference in New Issue
Block a user