فهرست منبع

10.4.2 release

Gaudenz Alder 6 سال پیش
والد
کامیت
85b2f77ce3

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+11-MAR-2019: 10.4.2
+
+- Adds logging
+
 09-MAR-2019: 10.4.1
 
 - Uses mxGraph 3.9.13 beta 18

+ 1 - 1
VERSION

@@ -1 +1 @@
-10.4.1
+10.4.2

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

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 03/10/2019 10:43 AM
+# 03/11/2019 09:44 AM
 
 app.html
 index.html?offline=1

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 124 - 123
src/main/webapp/js/app.min.js


+ 29 - 5
src/main/webapp/js/diagramly/DriveClient.js

@@ -1068,7 +1068,7 @@ DriveClient.prototype.saveFile = function(file, revision, success, error, noChec
 	
 	try
 	{
-		if (file.isEditable())
+		if (file.isEditable() && file.desc != null)
 		{
 			var t0 = new Date().getTime();
 			var mod0 = file.desc.modifiedDate;
@@ -1215,11 +1215,31 @@ DriveClient.prototype.saveFile = function(file, revision, success, error, noChec
 									})));
 									
 									// Logs conversion
-									EditorUi.logEvent({category: 'RT-CONVERT-' + file.convertedFrom,
-										action: 'from-' + prevDesc.id + '.' + prevDesc.headRevisionId +
-										'-to-' + file.desc.id + '.' + file.desc.headRevisionId + '-',
+									try
+									{
+										EditorUi.logEvent({category: 'RT-CONVERT-' + file.convertedFrom,
+											action: 'from-' + prevDesc.id + '.' + prevDesc.headRevisionId +
+											'-to-' + file.desc.id + '.' + file.desc.headRevisionId,
+											label: (this.user != null) ? this.user.id : 'unknown-user'});
+									}
+									catch (e)
+									{
+										// ignore
+									}
+								}
+						    	
+								// Logs successful save
+								try
+								{
+									EditorUi.logEvent({category: 'SAVE-GOOGLE-' + file.desc.id,
+										action: 'from-' + head0 + '.' + mod0 +
+										'-to-' + resp.headRevisionId + '.' + resp.modifiedDate,
 										label: (this.user != null) ? this.user.id : 'unknown-user'});
 								}
+								catch (e)
+								{
+									// ignore
+								}
 							}
 						}
 						catch (e)
@@ -2414,6 +2434,7 @@ DriveClient.prototype.convertRealtimeFiles = function()
 	output.style.cssText = 'position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:8px;' +
 		'background:#ffffff;z-index:2;overflow:auto;white-space:nowrap;line-height:1.5em;';
 	document.body.appendChild(output);
+	var t0 = Date.now();
 	
 	var print = mxUtils.bind(this, function(msg, noBr)
 	{
@@ -2460,6 +2481,8 @@ DriveClient.prototype.convertRealtimeFiles = function()
 				
 				try
 				{
+					var dt = Date.now() - t0;
+					
 					EditorUi.sendReport('Convert Realtime Report ' +
 						new Date().toISOString() + ':' +
 						'\n\nBrowser=' + navigator.userAgent +
@@ -2467,7 +2490,8 @@ DriveClient.prototype.convertRealtimeFiles = function()
 						'\nFound=' + total  + ' (Backup: ' + fromXml + ', Realtime: ' + fromJson + ')' +
 						'\nConverted=' + converted +
 						'\nFailed=' + failed  + ' (Load: ' + loadFail + ', Save: ' +
-							saveFail + ', Invalid: ' + invalid + ')');
+							saveFail + ', Invalid: ' + invalid + ')' +
+						'\ndt=' + Math.round(dt / 1000) + ' sec(s)');
 				}
 				catch (e)
 				{

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

@@ -144,7 +144,7 @@
 	{
 		try
 		{
-			if (window.console != null && urlParams['test'] == '1')
+			if (window.console != null && urlParams['dev'] == '1')
 			{
 				var args = [new Date().toISOString()];
 				

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

@@ -888,8 +888,7 @@
 
 				this.addMenuItems(menu, ['support', '-'], parent);
 				
-				if (!editorUi.isOffline() && !EditorUi.isElectronApp &&
-					!navigator.standalone && urlParams['embed'] != '1')
+				if (!EditorUi.isElectronApp && !navigator.standalone && urlParams['embed'] != '1')
 				{
 					this.addMenuItems(menu, ['downloadDesktop'], parent);
 				}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
src/main/webapp/js/viewer.min.js