mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 17:58:22 +01:00
merged Merge branch 'master' of https://github.com/lxsang/antos
This commit is contained in:
commit
c403a5b8bf
@ -148,6 +148,7 @@ class BaseFileHandler
|
|||||||
|
|
||||||
meta: (f) ->
|
meta: (f) ->
|
||||||
|
|
||||||
|
getlink: () -> @path
|
||||||
# for main action read, write, remove, execute
|
# for main action read, write, remove, execute
|
||||||
# must be implemented by subclasses
|
# must be implemented by subclasses
|
||||||
action: (n, p, f) ->
|
action: (n, p, f) ->
|
||||||
@ -164,6 +165,9 @@ class RemoteFileHandler extends self.OS.API.VFS.BaseFileHandler
|
|||||||
meta: (f) ->
|
meta: (f) ->
|
||||||
_API.handler.fileinfo @path, f
|
_API.handler.fileinfo @path, f
|
||||||
|
|
||||||
|
getlink: () ->
|
||||||
|
_API.handler.get + "/" + @path
|
||||||
|
|
||||||
action: (n, p, f) ->
|
action: (n, p, f) ->
|
||||||
me = @
|
me = @
|
||||||
switch n
|
switch n
|
||||||
|
@ -144,6 +144,10 @@ class GoogleDriveHandler extends this.OS.API.VFS.BaseFileHandler
|
|||||||
@sendB64 m, (data) ->
|
@sendB64 m, (data) ->
|
||||||
xhr.send data.replace /^data:[^;]+;base64,/g, ""
|
xhr.send data.replace /^data:[^;]+;base64,/g, ""
|
||||||
|
|
||||||
|
getlink: () ->
|
||||||
|
return @info.webContentLink if @ready
|
||||||
|
return undefined
|
||||||
|
|
||||||
action: (n, p, f) ->
|
action: (n, p, f) ->
|
||||||
me = @
|
me = @
|
||||||
q = _courrier.getMID()
|
q = _courrier.getMID()
|
||||||
|
Loading…
Reference in New Issue
Block a user