mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 03:38:21 +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)
|
![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
|
## Change log
|
||||||
|
- v 0.1.6a: Update backend api
|
||||||
- v 0.1.5a: Add document versionning support
|
- 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.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
|
- v 0.1.3a: Let backend generates document key, compatible with doc.iohub.dev/office
|
||||||
|
@ -95,7 +95,7 @@ end
|
|||||||
handle.duplicate = function(data)
|
handle.duplicate = function(data)
|
||||||
local file = vfs.ospath(data.as)
|
local file = vfs.ospath(data.as)
|
||||||
local tmpfile = "/tmp/"..std.sha1(file)
|
local tmpfile = "/tmp/"..std.sha1(file)
|
||||||
local cmd = "curl -o "..tmpfile..' "'..data.remote..'"'
|
local cmd = "wget -O "..tmpfile..' "'..data.remote..'"'
|
||||||
os.execute(cmd)
|
os.execute(cmd)
|
||||||
-- move file to correct position
|
-- move file to correct position
|
||||||
if ulib.exists(tmpfile) then
|
if ulib.exists(tmpfile) then
|
||||||
@ -123,7 +123,7 @@ handle.save = function()
|
|||||||
local file = vfs.ospath(REQUEST.file)
|
local file = vfs.ospath(REQUEST.file)
|
||||||
if data.status == 2 then
|
if data.status == 2 then
|
||||||
local tmpfile = "/tmp/"..std.sha1(file)
|
local tmpfile = "/tmp/"..std.sha1(file)
|
||||||
local cmd = "curl -o "..tmpfile..' "'..data.url..'"'
|
local cmd = "wget -O "..tmpfile..' "'..data.url..'"'
|
||||||
os.execute(cmd)
|
os.execute(cmd)
|
||||||
-- move file to correct position
|
-- move file to correct position
|
||||||
if ulib.exists(tmpfile) then
|
if ulib.exists(tmpfile) then
|
||||||
@ -145,7 +145,7 @@ handle.save = function()
|
|||||||
local new_key = std.sha1(file..":"..stat.mtime)
|
local new_key = std.sha1(file..":"..stat.mtime)
|
||||||
-- save changes
|
-- save changes
|
||||||
if(data.changesurl) then
|
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)
|
os.execute(cmd)
|
||||||
end
|
end
|
||||||
-- now save version object
|
-- now save version object
|
||||||
|
Binary file not shown.
@ -7,7 +7,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "mrsang@iohub.dev"
|
"email": "mrsang@iohub.dev"
|
||||||
},
|
},
|
||||||
"version":"0.1.5-a",
|
"version":"0.1.6-a",
|
||||||
"category":"Office",
|
"category":"Office",
|
||||||
"icon":"icon.png",
|
"icon":"icon.png",
|
||||||
"mimes":[
|
"mimes":[
|
||||||
|
@ -195,7 +195,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/OnlyOffice/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/OnlyOffice/README.md",
|
||||||
"category": "Office",
|
"category": "Office",
|
||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"version": "0.1.5-a",
|
"version": "0.1.6-a",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/OnlyOffice/build/release/OnlyOffice.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/OnlyOffice/build/release/OnlyOffice.zip"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user