瀏覽代碼

8.8.6 release

Gaudenz Alder 7 年之前
父節點
當前提交
bc22c37dbf

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+21-JUN-2018: 8.8.6
+
+- Improves detection of gliffy macro in conf cloud
+- Fixes inconsistent menus
+
 21-JUN-2018: 8.8.5
 
 - Fixes delete property in data dialog

+ 1 - 1
VERSION

@@ -1 +1 @@
-8.8.5
+8.8.6

+ 1 - 1
src/main/webapp/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 06/21/2018 04:02 PM
+# 06/21/2018 06:20 PM
 
 app.html
 index.html?offline=1

File diff suppressed because it is too large
+ 239 - 237
src/main/webapp/js/app.min.js


File diff suppressed because it is too large
+ 260 - 259
src/main/webapp/js/atlas-viewer.min.js


File diff suppressed because it is too large
+ 151 - 149
src/main/webapp/js/atlas.min.js


+ 3 - 3
src/main/webapp/js/diagramly/EditorUi.js

@@ -10687,9 +10687,9 @@
 		this.actions.get('editDiagram').setEnabled(active && (file == null || !file.isRestricted()));
 		this.actions.get('publishLink').setEnabled(file != null && !file.isRestricted());
 		this.actions.get('tags').setEnabled(active && (file == null || !file.isRestricted()));
-		this.actions.get('find').setEnabled(enabled);
-		this.actions.get('layers').setEnabled(enabled);
-		this.actions.get('outline').setEnabled(enabled);
+		this.actions.get('find').setEnabled(this.diagramContainer.style.visibility != 'hidden');
+		this.actions.get('layers').setEnabled(this.diagramContainer.style.visibility != 'hidden');
+		this.actions.get('outline').setEnabled(this.diagramContainer.style.visibility != 'hidden');
 		this.actions.get('rename').setEnabled((file != null && file.isRenamable()) || urlParams['embed'] == '1');
 		this.actions.get('close').setEnabled(file != null);
 		this.menus.get('publish').setEnabled(file != null && !file.isRestricted());

+ 5 - 17
src/main/webapp/js/diagramly/ElectronApp.js

@@ -80,6 +80,11 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
 		menusInit.apply(this, arguments);
 
 		var editorUi = this.editorUi;
+
+		editorUi.actions.put('offline', new Action(mxResources.get('online') + '...', function()
+		{
+			editorUi.openLink('https://www.draw.io/')
+		}));
 		
 		// Replaces file menu to replace openFrom menu with open and rename downloadAs to export
 		this.put('file', new Menu(mxUtils.bind(this, function(menu, parent)
@@ -88,28 +93,11 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
 			this.addSubmenu('exportAs', menu, parent);
 			menu.addSeparator(parent);
 			this.addSubmenu('embed', menu, parent);
-			this.addSubmenu('publish', menu, parent);
 			menu.addSeparator(parent);
 			this.addMenuItems(menu, ['newLibrary', 'openLibrary', '-', 'pageSetup',
 				'print', '-', 'close'], parent);
 			// LATER: Find API for application.quit
 		})));
-		
-		this.put('extras', new Menu(mxUtils.bind(this, function(menu, parent)
-		{
-			this.addSubmenu('theme', menu, parent);
-			menu.addSeparator(parent);
-			this.addMenuItems(menu, ['copyConnect', 'collapseExpand', '-'], parent);
-
-			if (typeof(MathJax) !== 'undefined')
-			{
-				var item = this.addMenuItem(menu, 'mathematicalTypesetting', parent);
-				this.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000032875');
-			}
-			
-			this.addMenuItems(menu, ['autosave', '-', 'createShape', 'editDiagram', '-',
-				'plugins', 'tags', '-', 'online'], parent);
-		})));
 	};
 	
 	var graphCreateLinkForHint = Graph.prototype.createLinkForHint;

+ 18 - 6
src/main/webapp/js/diagramly/Menus.js

@@ -886,12 +886,13 @@
 
 				this.addMenuItems(menu, ['support', '-'], parent);
 				
-				if (!editorUi.isOffline() && !navigator.standalone && urlParams['embed'] != '1')
+				if (!editorUi.isOffline() && !EditorUi.isElectronApp &&
+					!navigator.standalone && urlParams['embed'] != '1')
 				{
 					this.addMenuItems(menu, ['download'], parent);
 				}
 				
-				if (!editorUi.isOfflineApp() && urlParams['embed'] != '1')
+				if (!navigator.standalone && urlParams['embed'] != '1')
 				{
 					this.addMenuItems(menu, ['offline'], parent);
 				}
@@ -2529,18 +2530,29 @@
 
 			menu.addSeparator(parent);
 			
-			if (urlParams['embed'] != '1' && isLocalStorage)
+			if (urlParams['embed'] != '1' && (isLocalStorage || mxClient.IS_CHROMEAPP))
 			{
 				this.addMenuItems(menu, ['showStartScreen'], parent);
 			}
 
-			if (!editorUi.isOfflineApp() && urlParams['embed'] != '1')
+			if (!editorUi.isOfflineApp() && urlParams['embed'] != '1' && isLocalStorage)
 			{
-				this.addMenuItem(menu, 'plugins', parent);
+				var item = this.addMenuItem(menu, 'plugins', parent);
+				
+				if (!editorUi.isOffline())
+				{
+					this.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000056430');
+				}
 			}
 
 			menu.addSeparator(parent);
-			this.addMenuItem(menu, 'tags', parent);
+			
+			var item = this.addMenuItem(menu, 'tags', parent);
+			
+			if (!editorUi.isOffline() || mxClient.IS_CHROMEAPP)
+			{
+				this.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000046966');
+			}
 		})));
 
 		this.put('file', new Menu(mxUtils.bind(this, function(menu, parent)

+ 28 - 10
src/main/webapp/js/diagramly/Minimal.js

@@ -750,7 +750,16 @@ EditorUi.initMinimalTheme = function()
 				menu.addSeparator(parent);
 			}
 			
-			ui.menus.addMenuItems(menu, ['-', 'outline', 'layers', '-', 'find', 'tags', '-'], parent);
+			ui.menus.addMenuItems(menu, ['-', 'outline', 'layers', '-', 'find'], parent);
+			
+			var item = this.addMenuItem(menu, 'tags', parent);
+			
+			if (!ui.isOffline() || mxClient.IS_CHROMEAPP)
+			{
+				ui.menus.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000046966');
+			}
+			
+			menu.addSeparator(parent);
 			
 			// Cannot use print in standalone mode on iOS as we cannot open new windows
 			if (!mxClient.IS_IOS || !navigator.standalone)
@@ -813,9 +822,13 @@ EditorUi.initMinimalTheme = function()
         	exportAsMenu.funct(menu, parent);
             menu.addSeparator(parent);
             ui.menus.addSubmenu('embed', menu, parent);
-            // Publish menu contains only one element by default...
-            //ui.menus.addSubmenu('publish', menu, parent); 
-            ui.menus.addMenuItems(menu, ['publishLink'], parent);
+            
+    		if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp)
+    		{
+	            // Publish menu contains only one element by default...
+	            //ui.menus.addSubmenu('publish', menu, parent); 
+	            ui.menus.addMenuItems(menu, ['publishLink'], parent);
+    		}
         })));
 
         var langMenu = this.get('language');
@@ -834,17 +847,22 @@ EditorUi.initMinimalTheme = function()
 			}
 			
 			menu.addSeparator(parent);
-			
-            ui.menus.addMenuItems(menu, ['scrollbars', 'tooltips', 'pageScale'], parent);
+			ui.menus.addMenuItems(menu, ['scrollbars', 'tooltips', 'pageScale'], parent);
             
-			if (urlParams['embed'] != '1' && isLocalStorage)
+			if (urlParams['embed'] != '1' && (isLocalStorage || mxClient.IS_CHROMEAPP))
 			{
 				ui.menus.addMenuItems(menu, ['-', 'search', 'scratchpad', '-', 'showStartScreen'], parent);
 			}
-
-			if (!ui.isOfflineApp() && urlParams['embed'] != '1')
+			
+			if (!ui.isOfflineApp() && urlParams['embed'] != '1' && isLocalStorage)
 			{
-				ui.menus.addMenuItems(menu, ['-', 'plugins'], parent);
+				menu.addSeparator(parent);
+				var item = ui.menus.addMenuItem(menu, 'plugins', parent);
+				
+				if (!ui.isOffline())
+				{
+					ui.menus.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000056430');
+				}
 			}
         })));
 

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


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


File diff suppressed because it is too large
+ 260 - 259
src/main/webapp/js/viewer.min.js