Gaudenz Alder 7 rokov pred
rodič
commit
18d03b966c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+20-JUN-2018: 8.8.4
+
+- Fixes plugins for minimal UI
+- Fixes relative links in Confluence Cloud
+
 19-JUN-2018: 8.8.3
 
 - Fixes typo for Allied Telesis

+ 1 - 1
VERSION

@@ -1 +1 @@
-8.8.3
+8.8.4

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

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 06/19/2018 09:50 AM
+# 06/20/2018 01:56 PM
 
 app.html
 index.html?offline=1

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 32 - 31
src/main/webapp/js/app.min.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 28 - 27
src/main/webapp/js/atlas-viewer.min.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 27 - 26
src/main/webapp/js/atlas.min.js


+ 2 - 2
src/main/webapp/js/diagramly/Menus.js

@@ -1916,12 +1916,12 @@
 
 		editorUi.actions.put('offline', new Action(mxResources.get('offline') + '...', function()
 		{
-			editorUi.openLink('https://www.draw.io/app')
+			editorUi.openLink('https://app.draw.io/')
 		}));
 		
 		editorUi.actions.put('download', new Action(mxResources.get('download') + '...', function()
 		{
-			editorUi.openLink('https://download.draw.io')
+			editorUi.openLink('https://get.draw.io/')
 		}));
 
 		this.editorUi.actions.addAction('share...', mxUtils.bind(this, function()

+ 11 - 8
src/main/webapp/js/diagramly/Minimal.js

@@ -311,7 +311,8 @@ EditorUi.initMinimalTheme = function()
     HoverIcons.prototype.inactiveOpacity = 25;
     Format.prototype.showCloseButton = false;
 	EditorUi.prototype.closableScratchpad = false;
-    EditorUi.prototype.footerHeight = 0;
+    EditorUi.prototype.toolbarHeight = 46;
+	EditorUi.prototype.footerHeight = 0;
 	Graph.prototype.editAfterInsert = true;
 
     /**
@@ -336,7 +337,6 @@ EditorUi.initMinimalTheme = function()
     EditorUi.prototype.refresh = function(sizeDidChange)
     {
         editorUiRefresh.apply(this, arguments);
-        this.diagramContainer.style.top = '47px';
     	
         if (this.tabContainer != null)
         {
@@ -529,11 +529,12 @@ EditorUi.initMinimalTheme = function()
         else if (graph.isSelectionEmpty() && graph.isEnabled())
         {
             menu.addSeparator();
+            this.addMenuItems(menu, ['editData'], null, evt);
+        	menu.addSeparator();
             this.addSubmenu('insert', menu);
             this.addSubmenu('layout', menu);
             menu.addSeparator();
-            this.addSubmenu('options', menu);
-
+            this.addSubmenu('view', menu, null, mxResources.get('options'));
             this.addMenuItems(menu, ['-', 'exitGroup'], null, evt);
         }
         else if (graph.isEnabled())
@@ -707,7 +708,7 @@ EditorUi.initMinimalTheme = function()
 
         this.put('diagram', new Menu(mxUtils.bind(this, function(menu, parent)
         {
-        	ui.menus.addSubmenu('preferences', menu, parent);
+        	ui.menus.addSubmenu('extras', menu, parent, mxResources.get('preferences'));
 			menu.addSeparator(parent);
 
 			if (mxClient.IS_CHROMEAPP || EditorUi.isElectronApp)
@@ -819,7 +820,8 @@ EditorUi.initMinimalTheme = function()
 
         var langMenu = this.get('language');
 
-        this.put('preferences', new Menu(mxUtils.bind(this, function(menu, parent)
+        // Overrides extras for plugins but label it preferences
+        this.put('extras', new Menu(mxUtils.bind(this, function(menu, parent)
         {
 			if (urlParams['embed'] != '1')
 			{
@@ -892,8 +894,9 @@ EditorUi.initMinimalTheme = function()
                 }
             }
         })));
-        
-        this.put('options', new Menu(mxUtils.bind(this, function(menu, parent)
+
+        // Overrides view for plugins but label it options
+        this.put('view', new Menu(mxUtils.bind(this, function(menu, parent)
         {
             ui.menus.addMenuItems(menu, ['grid', 'guides', '-', 'connectionArrows', 'connectionPoints', '-',
             	'copyConnect', 'collapseExpand', '-', 'mathematicalTypesetting'], parent);

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 3 - 2
src/main/webapp/js/embed-static.min.js


+ 4 - 1
src/main/webapp/js/mxgraph/Graph.js

@@ -1036,7 +1036,10 @@ Graph.prototype.defaultThemes = {};
 /**
  * Base URL for relative links.
  */
-Graph.prototype.baseUrl = ((window != window.top) ? document.referrer : document.location.toString()).split('#')[0];
+Graph.prototype.baseUrl = (urlParams['base'] != null) ?
+	decodeURIComponent(urlParams['base']) :
+	(((window != window.top) ? document.referrer :
+	document.location.toString()).split('#')[0]);
 
 /**
  * Specifies if the label should be edited after an insert.

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 3 - 2
src/main/webapp/js/reader.min.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 28 - 27
src/main/webapp/js/viewer.min.js


+ 1 - 1
src/main/webapp/plugins/animation.js

@@ -515,7 +515,7 @@ Draw.loadPlugin(function(editorUi)
 	};
 	
 	// Autostart in chromeless mode
-	if (editorUi.editor.chromeless)
+	if (editorUi.editor.isChromelessView())
 	{
 		function startAnimation()
 		{

+ 1 - 1
src/main/webapp/plugins/explore.js

@@ -353,7 +353,7 @@ Draw.loadPlugin(function(ui)
 	});
 	
 	// Click handler for chromeless mode
-	if (ui.editor.chromeless)
+	if (ui.editor.isChromelessView())
 	{
 		ui.editor.graph.click = function(me)
 		{

+ 1 - 1
src/main/webapp/plugins/props.js

@@ -18,7 +18,7 @@ Draw.loadPlugin(function(ui) {
 	var graph = ui.editor.graph;
 	
 	// Made for chromeless mode
-	if (!ui.editor.chromeless)
+	if (!ui.editor.isChromelessView())
 	{
 		div.style.top = '100px';
 		div.style.right = '260px';

+ 1 - 1
src/main/webapp/plugins/replay.js

@@ -14,7 +14,7 @@ Draw.loadPlugin(function(ui) {
 		return model.getCell(id);
 	};
 	
-	if (ui.editor.chromeless)
+	if (ui.editor.isChromelessView())
 	{
 		function decodeChanges(delta)
 		{

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 67 - 37
src/main/webapp/plugins/voice.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1 - 1
src/main/webapp/shortcuts.svg