diff --git a/src/main/webapp/cache.manifest b/src/main/webapp/cache.manifest index 3a8e92a911cac0e9786cac1fe3e30bfe5fd6db60..85714891a027ba7e4a68325a2d3b7caab7c548ab 100644 --- a/src/main/webapp/cache.manifest +++ b/src/main/webapp/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 03/09/2019 09:34 AM +# 03/09/2019 09:40 AM app.html index.html?offline=1 diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 0d23447e471336b4e620d7171edbe169e2f9e593..faaa24dfb4431d1864077df85406c354d067c988 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -8730,8 +8730,8 @@ DriveClient.prototype.jsonToCell=function(a,c){var b=new mxCell;b.id=a.cellId.js DriveClient.prototype.checkRealtimeFiles=function(a){this.executeRequest(gapi.client.drive.files.list({maxResults:1,q:"mimeType='application/vnd.jgraph.mxfile.realtime'",includeTeamDriveItems:!0,supportsTeamDrives:!0}),mxUtils.bind(this,function(c){null!=c&&(null!=c.nextPageToken||null!=c.items&&0<c.items.length)&&a()}))}; DriveClient.prototype.convertRealtimeFiles=function(){var a=document.createElement("div");a.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(a);var c=mxUtils.bind(this,function(b,c){a.innerHTML+=b+(c?"":"<br>");a.scrollTop=a.scrollHeight});c("draw.io ("+EditorUi.VERSION+") is searching files to be converted...");this.ui.spinner.spin(document.body,"Searching files...")? this.checkToken(mxUtils.bind(this,function(){var a={},d=0,e=0,g=0,l=0,m=0,n=0,q=0,f=mxUtils.bind(this,function(){this.ui.spinner.stop();c("<br>Conversion complete. Successfully converted "+d+" file(s).",!0);0<n?c(" Failed to convert "+n+' file(s).<br><br><b>ACTION REQUIRED:</b><br><ul><li>Click <a target="_blank" href="https://drive.google.com/drive/u/0/search?q=type:application/vnd.jgraph.mxfile.realtime">here</a> to list all affected files</li><li>Open each file in turn by right-clicking the file and selecting open with draw.io</li><li>Open each file in turn. When loaded, select File->Save</li></ul>'): -c("<br><br>This window can now be closed.");try{EditorUi.sendReport("Convert Realtime Files Report "+(new Date).toISOString()+":\n\nBrowser="+navigator.userAgent+"\nUser="+(null!=this.user?this.user.id:"unknown")+"\nFound="+q+" (Backup: "+g+", Realtime: "+e+")\nConverted="+d+"\nFailed="+n+" (Load: "+l+", Save: "+m+")")}catch(k){}});this.executeRequest(gapi.client.drive.files.list({maxResults:1E4,q:"mimeType='application/vnd.jgraph.mxfile.realtime'",includeTeamDriveItems:!0,supportsTeamDrives:!0}), -mxUtils.bind(this,function(b){this.ui.spinner.stop();q=null!=b&&null!=b.items?b.items.length:0;if(this.ui.spinner.spin(document.body,"Converting "+q+" file(s)")){c("Found "+q+" file(s). This will take up to "+Math.ceil(15E3*q/6E4)+" minute(s). <b>Please do not close this window!</b><br>");var k=0,t=mxUtils.bind(this,function(b,p){var u={maxResults:1,q:"mimeType='application/vnd.jgraph.mxfile.realtime'",includeTeamDriveItems:!0,supportsTeamDrives:!0};null!=b&&(u.pageToken=b);this.executeRequest(gapi.client.drive.files.list(u), +c("<br><br>This window can now be closed.");try{EditorUi.sendReport("Convert Realtime Report "+(new Date).toISOString()+":\n\nBrowser="+navigator.userAgent+"\nUser="+(null!=this.user?this.user.id:"unknown")+"\nFound="+q+" (Backup: "+g+", Realtime: "+e+")\nConverted="+d+"\nFailed="+n+" (Load: "+l+", Save: "+m+")")}catch(k){}});this.executeRequest(gapi.client.drive.files.list({maxResults:1E4,q:"mimeType='application/vnd.jgraph.mxfile.realtime'",includeTeamDriveItems:!0,supportsTeamDrives:!0}),mxUtils.bind(this, +function(b){this.ui.spinner.stop();q=null!=b&&null!=b.items?b.items.length:0;if(this.ui.spinner.spin(document.body,"Converting "+q+" file(s)")){c("Found "+q+" file(s). This will take up to "+Math.ceil(15E3*q/6E4)+" minute(s). <b>Please do not close this window!</b><br>");var k=0,t=mxUtils.bind(this,function(b,p){var u={maxResults:1,q:"mimeType='application/vnd.jgraph.mxfile.realtime'",includeTeamDriveItems:!0,supportsTeamDrives:!0};null!=b&&(u.pageToken=b);this.executeRequest(gapi.client.drive.files.list(u), mxUtils.bind(this,function(b){var v=mxUtils.bind(this,function(){null!=b.nextPageToken?t(b.nextPageToken):null!=b.nextPageToken?t(b.nextPageToken):f()});if(null==b||null!=b.items&&0!=b.items.length||null==b.nextPageToken)if(null!=b&&null!=b.items&&0<b.items.length){var u=b.items[0].id;this.ui.spinner.stop();k++;this.ui.spinner.spin(document.body,"Converting file "+k+" of "+q)&&(c("Converting "+k+" of "+q+': "'+mxUtils.htmlEntities(b.items[0].title)+'" ('+u+")... ",!0),window.setTimeout(mxUtils.bind(this, function(){if(null==a[u]){var b=a[u]=!0,f=window.setTimeout(mxUtils.bind(this,function(){b=!1;n++;l++;c('<img src="'+this.ui.editor.graph.warningImage.src+'" border="0" valign="absmiddle"/> Timeout');v()}),this.ui.timeout);this.getFile(u,mxUtils.bind(this,function(a){window.clearTimeout(f);b&&("json"==a.convertedFrom?e++:g++,b=!0,f=window.setTimeout(mxUtils.bind(this,function(){b=!1;n++;m++;c('<img src="'+this.ui.editor.graph.warningImage.src+'" border="0" valign="absmiddle"/> Timeout');v()}),this.ui.timeout), this.saveFile(a,null,mxUtils.bind(this,function(){window.clearTimeout(f);b&&(d++,c('<img src="'+Editor.checkmarkImage+'" border="0" valign="middle"/>'),v())}),mxUtils.bind(this,function(a){window.clearTimeout(f);b&&(a=null!=a&&null!=a.error&&null!=a.error.message?a.error.message:"",n++,m++,c('<img src="'+this.ui.editor.graph.warningImage.src+'" border="0" valign="absmiddle"/> '+a),v())})))}),mxUtils.bind(this,function(a){window.clearTimeout(f);b&&(a=null!=a&&null!=a.error&&null!=a.error.message?a.error.message: diff --git a/src/main/webapp/js/diagramly/DriveClient.js b/src/main/webapp/js/diagramly/DriveClient.js index cf531ce3d7cc74df5498695e4bf82a5198a71a75..df5a51ba3a2f03af40301866ad4f1f4fac47677f 100644 --- a/src/main/webapp/js/diagramly/DriveClient.js +++ b/src/main/webapp/js/diagramly/DriveClient.js @@ -2457,7 +2457,7 @@ DriveClient.prototype.convertRealtimeFiles = function() try { - EditorUi.sendReport('Convert Realtime Files Report ' + + EditorUi.sendReport('Convert Realtime Report ' + new Date().toISOString() + ':' + '\n\nBrowser=' + navigator.userAgent + '\nUser=' + ((this.user != null) ? this.user.id : 'unknown') +