summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-11-07 13:40:28 +0100
committerjmoenig <jens@moenig.org>2013-11-07 13:40:28 +0100
commitcc7a1558f1aeb3fa0e75378f8688cdfa40c8fb8e (patch)
tree751c9c71f5521f41d5511f013b48cfe1ff8cbdd9
parent8a60ec998e303c34ed6e1f58f4ec2b33ff3f4be5 (diff)
downloadsnap-cc7a1558f1aeb3fa0e75378f8688cdfa40c8fb8e.tar.gz
snap-cc7a1558f1aeb3fa0e75378f8688cdfa40c8fb8e.zip
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
-rw-r--r--cloud.js12
-rw-r--r--gui.js4
-rwxr-xr-xhistory.txt4
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