mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 06:28:29 +01:00
update office
This commit is contained in:
parent
aaacbab371
commit
40785f86bf
@ -10,6 +10,7 @@ way to work with multiple documents at the same time.
|
||||
![https://github.com/lxsang/antosdk-apps/blob/master/OnlyOffice/screenshot.png?raw=true](https://github.com/lxsang/antosdk-apps/blob/master/OnlyOffice/screenshot.png?raw=true)
|
||||
|
||||
## Change log
|
||||
- v 0.1.6a: Update backend api
|
||||
- v 0.1.5a: Add document versionning support
|
||||
- v 0.1.4a: If the iframe has the same origin with the parent, enable the focus event
|
||||
- v 0.1.3a: Let backend generates document key, compatible with doc.iohub.dev/office
|
||||
|
@ -95,7 +95,7 @@ end
|
||||
handle.duplicate = function(data)
|
||||
local file = vfs.ospath(data.as)
|
||||
local tmpfile = "/tmp/"..std.sha1(file)
|
||||
local cmd = "curl -o "..tmpfile..' "'..data.remote..'"'
|
||||
local cmd = "wget -O "..tmpfile..' "'..data.remote..'"'
|
||||
os.execute(cmd)
|
||||
-- move file to correct position
|
||||
if ulib.exists(tmpfile) then
|
||||
@ -123,7 +123,7 @@ handle.save = function()
|
||||
local file = vfs.ospath(REQUEST.file)
|
||||
if data.status == 2 then
|
||||
local tmpfile = "/tmp/"..std.sha1(file)
|
||||
local cmd = "curl -o "..tmpfile..' "'..data.url..'"'
|
||||
local cmd = "wget -O "..tmpfile..' "'..data.url..'"'
|
||||
os.execute(cmd)
|
||||
-- move file to correct position
|
||||
if ulib.exists(tmpfile) then
|
||||
@ -145,7 +145,7 @@ handle.save = function()
|
||||
local new_key = std.sha1(file..":"..stat.mtime)
|
||||
-- save changes
|
||||
if(data.changesurl) then
|
||||
cmd = "curl -o "..history_dir.."/"..new_key..'.zip "'..data.changesurl..'"'
|
||||
cmd = "wget -O "..history_dir.."/"..new_key..'.zip "'..data.changesurl..'"'
|
||||
os.execute(cmd)
|
||||
end
|
||||
-- now save version object
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version":"0.1.5-a",
|
||||
"version":"0.1.6-a",
|
||||
"category":"Office",
|
||||
"icon":"icon.png",
|
||||
"mimes":[
|
||||
|
@ -195,7 +195,7 @@
|
||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/OnlyOffice/README.md",
|
||||
"category": "Office",
|
||||
"author": "Xuan Sang LE",
|
||||
"version": "0.1.5-a",
|
||||
"version": "0.1.6-a",
|
||||
"dependencies": [],
|
||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/OnlyOffice/build/release/OnlyOffice.zip"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user