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
pull/3/merge
jmoenig 2013-11-07 13:40:28 +01:00
rodzic 8a60ec998e
commit cc7a1558f1
3 zmienionych plików z 15 dodań i 5 usunięć

Wyświetl plik

@ -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

4
gui.js
Wyświetl plik

@ -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'
}

Wyświetl plik

@ -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