From cc7a1558f1aeb3fa0e75378f8688cdfa40c8fb8e Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 7 Nov 2013 13:40:28 +0100 Subject: cloud project saving transmission integrity check includes the sizes of the sent project components in the transmision, so the cloud backend can check if the whole of them have been transmitted before comitting to the database --- cloud.js | 12 +++++++++--- gui.js | 4 ++-- history.txt | 4 ++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cloud.js b/cloud.js index 9857c67..62dbc3e 100644 --- a/cloud.js +++ b/cloud.js @@ -29,7 +29,7 @@ /*global modules, IDE_Morph, SnapSerializer, hex_sha512, alert, nop*/ -modules.cloud = '2013-October-10'; +modules.cloud = '2013-November-07'; // Global stuff @@ -38,7 +38,7 @@ var Cloud; var SnapCloud = new Cloud( 'https://snapcloud.miosoft.com/miocon/app/login?_app=SnapCloud' //'192.168.2.110:8087/miocon/app/login?_app=SnapCloud' - //'192.168.186.167:8087/miocon/app/login?_app=SnapCloud' + //'192.168.186.146:8087/miocon/app/login?_app=SnapCloud' // 'localhost/miocon/app/login?_app=SnapCloud' ); @@ -384,7 +384,13 @@ Cloud.prototype.saveProject = function (ide, callBack, errorCall) { ide.hasChangedMedia = false; }, errorCall, - [ide.projectName, pdata, media] + [ + ide.projectName, + pdata, + media, + pdata.length, + media ? media.length : 0 + ] ); }, errorCall diff --git a/gui.js b/gui.js index af542de..d7f562e 100644 --- a/gui.js +++ b/gui.js @@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph, BlockLabelPlaceHolderMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-November-04'; +modules.gui = '2013-November-07'; // Declarations @@ -3779,7 +3779,7 @@ IDE_Morph.prototype.setCloudURL = function () { 'local network lab' : '192.168.2.107:8087/miocon/app/login?_app=SnapCloud', 'local network office' : - '192.168.186.167:8087/miocon/app/login?_app=SnapCloud', + '192.168.186.146:8087/miocon/app/login?_app=SnapCloud', 'localhost dev' : 'localhost/miocon/app/login?_app=SnapCloud' } diff --git a/history.txt b/history.txt index 4f39c95..e24e7c3 100755 --- a/history.txt +++ b/history.txt @@ -1982,3 +1982,7 @@ ______ * GUI: filter quotation marks from project names (for backend index) * BYOB: only show symbol menu for label fragments * BYOB: customizable drop-down menus for input slots (experimental, commented out) + +131107 +——— +* GUI, Cloud: transmission integrity check -- cgit v1.3.1