mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-02-22 09:52:47 +01:00
support cache search in google drive api
This commit is contained in:
parent
234131bfa1
commit
9ead6c55ef
@ -51,12 +51,16 @@
|
|||||||
if (v.name.match term) or (v.description and v.description.match term)
|
if (v.name.match term) or (v.description and v.description.match term)
|
||||||
v1 = {}
|
v1 = {}
|
||||||
v1[k1] = e for k1, e of v when k1 isnt "selected"
|
v1[k1] = e for k1, e of v when k1 isnt "selected"
|
||||||
|
v1.detail = [{ text: v1.path }]
|
||||||
|
v1.complex = true
|
||||||
ar.push v1
|
ar.push v1
|
||||||
else if v.mimes
|
else if v.mimes
|
||||||
for m in v.mimes
|
for m in v.mimes
|
||||||
if t.match (new RegExp m, "g")
|
if t.match (new RegExp m, "g")
|
||||||
v1 = {}
|
v1 = {}
|
||||||
v1[k1] = v[k1] for k1, e of v when k1 isnt "selected"
|
v1[k1] = v[k1] for k1, e of v when k1 isnt "selected"
|
||||||
|
v1.detail = [{ text: v1.path }]
|
||||||
|
v1.complex = true
|
||||||
ar.push v1
|
ar.push v1
|
||||||
break
|
break
|
||||||
return ar
|
return ar
|
@ -311,5 +311,9 @@ self.OS.API.onsearch "Google Drive", (t) ->
|
|||||||
file = k.asFileHandler()
|
file = k.asFileHandler()
|
||||||
file.text = file.basename
|
file.text = file.basename
|
||||||
file.mime = v.mime
|
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
|
arr.push file
|
||||||
return arr
|
return arr
|
@ -92,3 +92,9 @@ afx-app-window[data-id = "spotlight-win"] afx-resizer{
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-left: 1px solid #cacaca;
|
border-left: 1px solid #cacaca;
|
||||||
}
|
}
|
||||||
|
afx-app-window[data-id = "spotlight-win"] afx-list-view[data-id="container"] ul.complex-content li{
|
||||||
|
/*padding-left: 20px;*/
|
||||||
|
font-style: italic;
|
||||||
|
color: #b1b1b1;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
@ -129,3 +129,6 @@ afx-list-view ul.complex-content li{
|
|||||||
color:#5e5f59;
|
color:#5e5f59;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
afx-list-view > div.list-container > ul > li.selected ul.complex-content li{
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user