Browse Source

7.7.5 release

Former-commit-id: aa2632cd99d600348ccbcb28d0d3004304fe910b
Gaudenz Alder 7 years ago
parent
commit
0e9a576677
9 changed files with 124 additions and 60 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      VERSION
  3. 4 5
      war/cache.manifest
  4. 11 11
      war/js/app.min.js
  5. 11 11
      war/js/atlas.min.js
  6. 27 30
      war/js/diagramly/sidebar/Sidebar.js
  7. 1 1
      war/js/embed-static.min.js
  8. 1 1
      war/js/reader.min.js
  9. 63 0
      war/search.xml

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+24-NOV-2017: 7.7.5
+
+- Even faster startup time for offline app
+- Fixes cache manifest for offline app
+
 24-NOV-2017: 7.7.4
 
 - Uses mxGraph 3.7.6

+ 1 - 1
VERSION

@@ -1 +1 @@
-7.7.4
+7.7.5

+ 4 - 5
war/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 11/24/2017 05:56 PM
+# 11/24/2017 08:53 PM
 
 app.html
 index.html?offline=1
@@ -16,7 +16,6 @@ styles/atlas.css
 search.xml
 favicon.ico
 mxgraph/css/common.css
-js/jscolor/jscolor.js
 mxgraph/images/maximize.gif
 mxgraph/images/minimize.gif
 mxgraph/images/close.gif
@@ -53,9 +52,9 @@ images/glyphicons_google.png
 images/glyphicons_facebook.png
 images/glyphicons_twitter.png
 images/glyphicons_github.png
-js/jscolor/arrow.gif
-js/jscolor/hs.png
-js/jscolor/cross.gif
+images/arrow.gif
+images/hs.png
+images/cross.gif
 img/clipart/Battery_0_128x128.png
 img/clipart/Battery_100_128x128.png
 img/clipart/Battery_50_128x128.png

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


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


+ 27 - 30
war/js/diagramly/sidebar/Sidebar.js

@@ -373,8 +373,8 @@
             			          {title: 'Web Icons', id: 'webicons', image: IMAGE_PATH + '/sidebar-webIcons.png'},
             			          {title: mxResources.get('signs'), id: 'signs', image: IMAGE_PATH + '/sidebar-signs.png'}]}];
 
-		// Uses server-side stencil search if online
-		this.addStencilsToIndex = this.editorUi.isOffline();
+		// Uses search.xml index file instead (faster load times)
+		this.addStencilsToIndex = false;
 		
 		// Contains additional tags for shapes
 		this.shapetags = {};
@@ -409,49 +409,46 @@
 		
 		// Loads search index to avoid having to pre-parse the stencil files
 		// before they are used for stencils that are not programmatically added
-		if (!this.editorUi.isOffline())
+		mxUtils.get(this.searchFileUrl, mxUtils.bind(this, function(req)
 		{
-			mxUtils.get(this.searchFileUrl, mxUtils.bind(this, function(req)
+			var node = req.getDocumentElement();
+			
+			if (node != null)
 			{
-				var node = req.getDocumentElement();
+				var shapes = node.getElementsByTagName('shape');
 				
-				if (node != null)
+				for (var i = 0; i < shapes.length; i++)
 				{
-					var shapes = node.getElementsByTagName('shape');
+					var style = shapes[i].getAttribute('style');
+					var shapeStyle = this.extractShapeStyle(style);
 					
-					for (var i = 0; i < shapes.length; i++)
+					if (style != null && shapeStyle != null)
 					{
-						var style = shapes[i].getAttribute('style');
-						var shapeStyle = this.extractShapeStyle(style);
+						var lastDot = shapeStyle.lastIndexOf('.');
 						
-						if (style != null && shapeStyle != null)
+						if (lastDot > 0)
 						{
-							var lastDot = shapeStyle.lastIndexOf('.');
+							var pkg = shapeStyle.substring(0, lastDot);
+							var stc = shapeStyle.substring(lastDot + 1, shapeStyle.length);
+							var tags = this.getTagsForStencil(pkg, stc, shapes[i].getAttribute('tags'));
 							
-							if (lastDot > 0)
+							// TODO: Use shapetags for programmatic stencils
+							if (tags != null)
 							{
-								var pkg = shapeStyle.substring(0, lastDot);
-								var stc = shapeStyle.substring(lastDot + 1, shapeStyle.length);
-								var tags = this.getTagsForStencil(pkg, stc, shapes[i].getAttribute('tags'));
+								// Converts stencil name to lowercase
+								var semi = style.indexOf(';');
+								style = 'shape=' + pkg + '.' + stc.toLowerCase() + ';' +
+									((semi < 0) ? '' : style.substring(semi + 1));
 								
-								// TODO: Use shapetags for programmatic stencils
-								if (tags != null)
-								{
-									// Converts stencil name to lowercase
-									var semi = style.indexOf(';');
-									style = 'shape=' + pkg + '.' + stc.toLowerCase() + ';' +
-										((semi < 0) ? '' : style.substring(semi + 1));
-									
-									this.createVertexTemplateEntry(style, parseInt(shapes[i].getAttribute('w')),
-											parseInt(shapes[i].getAttribute('h')), '', stc.replace(/_/g, ' '),
-											null, null, this.filterTags(tags.join(' ')));
-								}
+								this.createVertexTemplateEntry(style, parseInt(shapes[i].getAttribute('w')),
+										parseInt(shapes[i].getAttribute('h')), '', stc.replace(/_/g, ' '),
+										null, null, this.filterTags(tags.join(' ')));
 							}
 						}
 					}
 				}
-			}));
-		}
+			}
+		}));
 	}
 	
 	/**

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


+ 63 - 0
war/search.xml

@@ -398,6 +398,69 @@
 <shape style="shape=mxgraph.signs.travel.Ticket_Purchase;html=1;fillColor=#000000;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="98" h="95"/>
 <shape style="shape=mxgraph.signs.travel.Tunnel;html=1;fillColor=#000000;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="86" h="98"/>
 <shape style="shape=mxgraph.signs.travel.Upstairs;html=1;fillColor=#000000;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="98" h="85"/>
+<shape style="shape=mxgraph.gcp.big_data.BigQuery;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Cloud_Dataflow;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Cloud_Datalab;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Cloud_Dataprep;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Cloud_Dataproc;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Cloud_PubSub;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Data_Studio;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.big_data.Genomics;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.App_Engine;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.Cloud_Functions;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.Compute_Engine;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.Container_Engine;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.Container_Optimized_OS;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.Container_Registry;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.compute.GPU;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.developer_tools.Cloud_Tools_for_PowerShell;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.developer_tools.Cloud_Tools_for_Visual_Studio;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.developer_tools.Deployment_Manager;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.extras.Blue_Hexagon;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.extras.Generic_GCP;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.extras.Google_Cloud_Platform;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="118" h="104"/>
+<shape style="shape=mxgraph.gcp.extras.Google_Cloud_Platform_lockup;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="230" h="25"/>
+<shape style="shape=mxgraph.gcp.extras.Prediction_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.identity_and_security.BeyondCorp;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="128" h="113"/>
+<shape style="shape=mxgraph.gcp.identity_and_security.Cloud_Data_Loss_Prevention_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.identity_and_security.Cloud_IAM;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.identity_and_security.Cloud_Identity_Aware_Proxy;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.identity_and_security.Cloud_Platform_Security;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.identity_and_security.Security_Key_Enforcement;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Cloud_Machine_Learning;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Cloud_Video_Intelligence_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Jobs_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Natural_Language_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Speech_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Translation_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.machine_learning.Vision_API;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Cloud_APIs;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Cloud_Endpoints;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Debugger;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.management_tools.Deployment_Manager;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Error_Reporting;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.management_tools.Logging;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Monitoring;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Stackdriver;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.management_tools.Trace;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_CDN;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_DNS;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_External_IP_Addresses;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Firewall_Rules;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Interconnect;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Load_Balancing;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Network;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Partner_Interconnect;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Router;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Routes;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_Virtual_Network;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.networking.Cloud_VPN;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="114"/>
+<shape style="shape=mxgraph.gcp.storage_databases.Cloud_Bigtable;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.storage_databases.Cloud_Datastore;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.storage_databases.Cloud_Spanner;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.storage_databases.Cloud_SQL;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.storage_databases.Cloud_Storage;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
+<shape style="shape=mxgraph.gcp.storage_databases.Persistent_Disk;html=1;fillColor=#4387FD;gradientColor=#4683EA;strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;" w="129" h="113"/>
 <shape style="shape=mxgraph.rack.apc.APC_Smart_UPS_1000-3000_VA_2U;html=1;labelPosition=right;align=left;spacingLeft=15;dashed=0;shadow=0;fillColor=#ffffff;" w="160" h="29"/>
 <shape style="shape=mxgraph.rack.apc.APC_Smart_UPS_5000_VA_5U;html=1;labelPosition=right;align=left;spacingLeft=15;dashed=0;shadow=0;fillColor=#ffffff;" w="160" h="73"/>
 <shape style="shape=mxgraph.rack.apc.APC_Smart_UPS_750_VA_1U;html=1;labelPosition=right;align=left;spacingLeft=15;dashed=0;shadow=0;fillColor=#ffffff;" w="160" h="14"/>