From 40785f86bf0aaef68c9e1da2d17c724a74d66f58 Mon Sep 17 00:00:00 2001 From: mrsang Date: Sat, 27 Mar 2021 16:44:29 +0100 Subject: [PATCH] update office --- OnlyOffice/README.md | 1 + OnlyOffice/api/api.lua | 6 +++--- OnlyOffice/build/release/OnlyOffice.zip | Bin 67239 -> 67243 bytes OnlyOffice/package.json | 2 +- packages.json | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/OnlyOffice/README.md b/OnlyOffice/README.md index 5baf38a..853dbe7 100644 --- a/OnlyOffice/README.md +++ b/OnlyOffice/README.md @@ -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 diff --git a/OnlyOffice/api/api.lua b/OnlyOffice/api/api.lua index 4e75f3e..8cbf1c3 100644 --- a/OnlyOffice/api/api.lua +++ b/OnlyOffice/api/api.lua @@ -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 diff --git a/OnlyOffice/build/release/OnlyOffice.zip b/OnlyOffice/build/release/OnlyOffice.zip index 52dcbfdfd69deb2573332e7bd26d05900b6e776e..a458af1c3dcc149f366357a1b31e8aaecb686ebb 100644 GIT binary patch delta 536 zcmZ49%d)zcg*U*PnT3l11S)H*C-Oew1yVsA`+2ADW@cd6z44zXlbBhel|pDiN@7W> zLQ-OKc4}UVLSjMYW;^CGMrNSu&D&WFxH&-D#ML8=H^1i>VPrJh%p$miiMgt_dh%*v zRS>=TvM^IIm~o>mQ3uSh*(@suX2e{4Bo1aczRYCi1u72OnNqgfSe${uc=Gl)%A3Ew z(d1$;PfsmT(DmP}`rV2d&Pn?g@6B9LC%`4#KLHd>YM3FER0%U zxqcQ#Y4ejT3=Emc`FVN;dFcV(j7%a7@PGh&WjZhfK$r&{JTT(V^oKyrAm>j14`eXz zoi5GFC@Bwe_1_=Ub1xS$Fo3WKOg)%>Iz5<`Q5meMk`<`w)%2+_{%#Q8Z~Ao@|1Xel zmUoeXAvZBIPcN$&*<~P0o;-S3;|z2a2y>%Y5aiGe|!g%QXD0KglT_y7O^ delta 558 zcmZ48%d)(eg*U*PnT3l11cFx-Pvm{V3#5W%3pcgRVP;^Mv+muFiW$zy`ZX89;rl1b#td})bTt-6V^m*EPh(-!k_S2bnqUbhFE;}N z2y=ja4I@@fU(doQ4)@*kb1aNv)_3_C7zz@TvlG)(^|Ffd^8&mXnM4>M!38o7rWr&- zL_sV8Af7i}o|RD&6b#d?SsA67jtNg@6p@%-z{ zZ^QVEY>d+N{udb-auYN2fOaF>3<|d=j~>=I17iq;fqp>(CNCKnijy-^b5r#)N^*11 sHNpcN80hRs+87uXykTHSEXdT$DNPLUW@Tewm_D10k&8{3g%PL>0Hbl0Q2+n{ diff --git a/OnlyOffice/package.json b/OnlyOffice/package.json index b5329c2..9a6f59a 100644 --- a/OnlyOffice/package.json +++ b/OnlyOffice/package.json @@ -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":[ diff --git a/packages.json b/packages.json index faf859a..ae87a92 100644 --- a/packages.json +++ b/packages.json @@ -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" },