Browse Source

6.8.2 release

Former-commit-id: 78d6d6908e2f5317b3ea682875c106b37ddcfeea
Gaudenz Alder 8 years ago
parent
commit
e0eee2961c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+15-JUN-2017: 6.8.2
+
+- Fixes VSDX export to cloud
+
 15-JUN-2017: 6.8.1
 
 - Adds page formats, uses inch units

+ 1 - 1
VERSION

@@ -1 +1 @@
-6.8.1
+6.8.2

+ 1 - 1
war/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 06/15/2017 04:46 PM
+# 06/15/2017 08:40 PM
 
 app.html
 index.html?offline=1

File diff suppressed because it is too large
+ 9 - 9
war/js/app.min.js


File diff suppressed because it is too large
+ 4 - 4
war/js/atlas-viewer.min.js


File diff suppressed because it is too large
+ 6 - 6
war/js/atlas.min.js


+ 1 - 1
war/js/diagramly/EditorUi.js

@@ -2702,7 +2702,7 @@
 	EditorUi.prototype.saveLocalFile = function(data, filename, mimeType, base64Encoded, format, allowBrowser)
 	{
 		allowBrowser = (allowBrowser != null) ? allowBrowser : false;
-		var allowTab = !mxClient.IS_IOS || !navigator.standalone;
+		var allowTab = (format != 'vsdx') && (!mxClient.IS_IOS || !navigator.standalone);
 		
 		var dlg = new CreateDialog(this, filename, mxUtils.bind(this, function(newTitle, mode)
 		{

+ 3 - 3
war/js/diagramly/GitHubClient.js

@@ -334,7 +334,7 @@ GitHubClient.prototype.getLibrary = function(path, success, error)
 /**
  * Checks if the client is authorized and calls the next step.
  */
-GitHubClient.prototype.getFile = function(path, success, error, asLibrary)
+GitHubClient.prototype.getFile = function(path, success, error, asLibrary, checkExists)
 {
 	asLibrary = (asLibrary != null) ? asLibrary : false;
 	
@@ -345,7 +345,7 @@ GitHubClient.prototype.getFile = function(path, success, error, asLibrary)
 	var path = tokens.slice(3, tokens.length).join('/');
 	
 	// Handles .vsdx, Gliffy and PNG+XML files by creating a temporary file
-	if (/\.vsdx$/i.test(path) || /\.gliffy$/i.test(path) || /\.png$/i.test(path))
+	if (!checkExists && (/\.vsdx$/i.test(path) || /\.gliffy$/i.test(path) || /\.png$/i.test(path)))
 	{
 		// Should never be null
 		if (this.token != null)
@@ -580,7 +580,7 @@ GitHubClient.prototype.checkExists = function(path, askReplace, fn)
 	}), mxUtils.bind(this, function(err)
 	{
 		fn(true);
-	}));
+	}), null, true);
 };
 
 /**

+ 1 - 1
war/js/diagramly/Menus.js

@@ -1291,7 +1291,7 @@
 
 			if (!editorUi.isOfflineApp() && (typeof(VsdxExport) !== 'undefined' || !editorUi.isOffline()))
 			{
-				menu.addItem(mxResources.get('formatVsdx') + '...', null, mxUtils.bind(this, function()
+				menu.addItem(mxResources.get('formatVsdx') + ' (beta)...', null, mxUtils.bind(this, function()
 				{
 					var delayed = mxUtils.bind(this, function()
 					{

+ 3 - 5
war/js/diagramly/vsdx/VsdxExport.js

@@ -795,13 +795,11 @@ function VsdxExport(editorUi, resDir)
 					}
 					else 
 					{
-						zip.generateAsync({type:"blob"}).then(
+						zip.generateAsync({type:"base64"}).then(
 							function(content) 
 							{
-								var file = editorUi.getCurrentFile();
-								
-								var filename = (file != null && file.getTitle() != null) ? file.getTitle() : editorUi.defaultFilename;
-							    editorUi.saveData(filename+".vsdx", 'vsdx', content, 'application/vnd.visio2013');
+							    var basename = editorUi.getBaseFilename();
+							    editorUi.saveData(basename+".vsdx", 'vsdx', content, 'application/vnd.visio2013', true);
 							}
 						);
 					}

File diff suppressed because it is too large
+ 1 - 1
war/js/embed-static.min.js


File diff suppressed because it is too large
+ 1 - 1
war/js/reader.min.js


File diff suppressed because it is too large
+ 4 - 4
war/js/viewer.min.js


File diff suppressed because it is too large
+ 138 - 138
war/js/vsdx.min.js