add DotEditor package

This commit is contained in:
Xuan Sang LE
2018-03-13 18:05:33 +01:00
parent f1616d0240
commit a0008663ab
11 changed files with 2377 additions and 2 deletions

View File

@ -158,6 +158,7 @@ class RemoteFileHandler extends self.OS.API.VFS.BaseFileHandler
return f { error: __("{0} is not a directory", @path) } if @info.type is "file"
_API.handler.mkdir "#{@path}/#{p}", f
when "write"
return _API.handler.write me.path, me.cache, f if p is "base64"
@sendB64 p, (data) ->
_API.handler.write me.path, data, f
when "upload"

View File

@ -122,7 +122,7 @@ class GoogleDriveHandler extends this.OS.API.VFS.BaseFileHandler
error xhr, xhr.status
xhr.onerror = () ->
error xhr, xhr.status
return xhr.send me.cache.replace /^data:[^;]+;base64,/g, "" if m is "base64"
@sendB64 m, (data) ->
xhr.send data.replace /^data:[^;]+;base64,/g, ""