10.4.7 release
This commit is contained in:
parent
ab021d6bbc
commit
0546ab063c
4 changed files with 9 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
CACHE MANIFEST
|
||||
|
||||
# THIS FILE WAS GENERATED. DO NOT MODIFY!
|
||||
# 03/15/2019 10:34 AM
|
||||
# 03/15/2019 10:51 AM
|
||||
|
||||
app.html
|
||||
index.html?offline=1
|
||||
|
|
8
src/main/webapp/js/app.min.js
vendored
8
src/main/webapp/js/app.min.js
vendored
|
@ -8733,9 +8733,9 @@ DriveClient.prototype.decodeJsonViewState=function(a,c){var b=null!=a.pageFormat
|
|||
DriveClient.prototype.createJsonCell=function(a,c){if(null!=a&&null!=a.id){var b=a.value,d=this.jsonToCell(b,c);c.putObject(a.id,d);d.source=null!=b.source?this.createJsonCell(b.source,c):null;d.target=null!=b.target?this.createJsonCell(b.target,c):null;this.createJsonCell(b.parent,c);for(var g=0;g<b.children.value.length;g++){var e=this.createJsonCell(b.children.value[g],c);if(null!=e)d.insert(e);else throw Error("Invalid JSON: no child "+g+" for cell "+a.id);}return d}return null!=a&&null!=a.ref?
|
||||
c.objects[a.ref]:null};
|
||||
DriveClient.prototype.jsonToCell=function(a,c){var b=new mxCell;b.id=a.cellId.json;b.vertex="vertex"==a.type.json;b.edge="edge"==a.type.json;b.connectable="0"!=a.connectable.json;b.collapsed="1"==a.collapsed.json;b.visible="0"!=a.visible.json;b.style=null!=a.style?a.style.json:null;b.value=null!=a.xmlValue?mxUtils.parseXml(a.xmlValue.json).documentElement:null!=a.value?a.value.json:null;b.geometry=null!=a.geometry?c.decode(mxUtils.parseXml(a.geometry.json).documentElement):null;return b};
|
||||
DriveClient.prototype.checkRealtimeFiles=function(a){var c=null!=this.user.email?this.user.email:null;this.executeRequest(gapi.client.drive.files.list({maxResults:1,q:"mimeType='application/vnd.jgraph.mxfile.realtime'"+(null!=c?" and '"+c+"' in writers":""),includeTeamDriveItems:!0,supportsTeamDrives:!0}),mxUtils.bind(this,function(b){null!=b&&(null!=b.nextPageToken||null!=b.items&&0<b.items.length)&&a()}))};
|
||||
DriveClient.prototype.checkRealtimeFiles=function(a){var c=null!=this.user&&null!=this.user.email?this.user.email:null;this.executeRequest(gapi.client.drive.files.list({maxResults:1,q:"mimeType='application/vnd.jgraph.mxfile.realtime'"+(null!=c?" and '"+c+"' in writers":""),includeTeamDriveItems:!0,supportsTeamDrives:!0}),mxUtils.bind(this,function(b){null!=b&&(null!=b.nextPageToken||null!=b.items&&0<b.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=Date.now(),b=mxUtils.bind(this,function(b,c){a.innerHTML+=b+(c?"":"<br>");a.scrollTop=a.scrollHeight});b("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={},g=0,e=0,l=0,m=0,n=0,q=0,f=0,k=0,p=0,t=null!=this.user.email?this.user.email:null,u="mimeType='application/vnd.jgraph.mxfile.realtime'"+(null!=t?" and '"+t+"' in writers":""),y=mxUtils.bind(this,function(){this.ui.spinner.stop();b("<br>Conversion complete. Successfully converted "+g+" file(s).",!0);0<f?b(" Failed to convert "+f+' 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>'):
|
||||
"Searching files...")?this.checkToken(mxUtils.bind(this,function(){var a={},g=0,e=0,l=0,m=0,n=0,q=0,f=0,k=0,p=0,t=null!=this.user&&null!=this.user.email?this.user.email:null,u="mimeType='application/vnd.jgraph.mxfile.realtime'"+(null!=t?" and '"+t+"' in writers":""),y=mxUtils.bind(this,function(){this.ui.spinner.stop();b("<br>Conversion complete. Successfully converted "+g+" file(s).",!0);0<f?b(" Failed to convert "+f+' 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>'):
|
||||
b("<br><br>This window can now be closed.");try{var a=Date.now()-c;EditorUi.logEvent({category:"AUTO-CONVERT",action:"total-"+k+"-xml-"+l+"-json-"+e+"-done-"+g+"-fail-"+f+"-load-"+m+"-save-"+q+"-invalid-"+n+"-dt-"+Math.round(a/1E3),label:null!=this.user?this.user.id:"unknown-user"})}catch(H){}}),z=function(a){return null==a?"":null!=a.message?a.message:null!=a.error&&null!=a.error.message?a.error.message:""},v=mxUtils.bind(this,function(){if(this.ui.spinner.spin(document.body,"Converting "+k+" file(s)")){b("Found "+
|
||||
k+" file(s). This will take up to "+Math.ceil(5E3*k/6E4)+" minute(s). <b>Please do not close this window!</b><br>");var c=0,d=mxUtils.bind(this,function(v,x){var t={maxResults:1,q:u,includeTeamDriveItems:!0,supportsTeamDrives:!0};null!=v&&(t.pageToken=v);var A=!0,J=window.setTimeout(mxUtils.bind(this,function(){A=!1;d(v,x)}),this.ui.timeout);this.executeRequest(gapi.client.drive.files.list(t),mxUtils.bind(this,function(u){window.clearTimeout(J);if(A){var t=mxUtils.bind(this,function(){null!=u.nextPageToken?
|
||||
d(u.nextPageToken):y()});if(null!=u&&null!=u.error)p++,4>p?d(v,x):(this.ui.spinner.stop(),b("Query for next file failed multiple times. Exiting.<br><br>This window can now be closed."));else if(null==u||null!=u.items&&0!=u.items.length||null==u.nextPageToken)if(null!=u&&null!=u.items&&0<u.items.length){var C=u.items[0].id;this.ui.spinner.stop();c++;this.ui.spinner.spin(document.body,"Converting file "+c+" of "+k)&&(b("Converting "+c+" of "+k+': "'+mxUtils.htmlEntities(u.items[0].title)+'" (<a href="https://drive.google.com/open?id='+
|
||||
|
@ -8912,8 +8912,8 @@ App.prototype.init=function(){EditorUi.prototype.init.apply(this,arguments);this
|
|||
if("1"!=urlParams.embed||"1"==urlParams.od){var a=mxUtils.bind(this,function(){"undefined"!==typeof OneDrive?(this.oneDrive=new OneDriveClient(this),this.oneDrive.addListener("userChanged",mxUtils.bind(this,function(){this.updateUserElement();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.oneDrive))):null==window.DrawOneDriveClientCallback&&(window.DrawOneDriveClientCallback=a)});a()}if("1"!=urlParams.embed||"1"==urlParams.tr){var c=mxUtils.bind(this,function(){"undefined"!==
|
||||
typeof window.Trello?(this.trello=new TrelloClient(this),this.trello.addListener("userChanged",mxUtils.bind(this,function(){this.updateUserElement();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.trello))):null==window.DrawTrelloClientCallback&&(window.DrawTrelloClientCallback=c)});c()}if("1"!=urlParams.embed||"1"==urlParams.gapi){var b=mxUtils.bind(this,function(){if("undefined"!==typeof gapi){var a=mxUtils.bind(this,function(){this.drive=new DriveClient(this);
|
||||
"420247213240"==this.drive.appId&&this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){var a=this.getCurrentFile();null!=a&&a.constructor==DriveFile&&(a=document.getElementById("geFooterItem2"),null!=a&&(a.innerHTML='<a href="https://support.draw.io/display/DO/2014/11/27/Switching+application+in+Google+Drive" target="_blank" title="IMPORTANT NOTICE">IMPORTANT NOTICE</a>'))}));this.drive.addListener("userChanged",mxUtils.bind(this,function(){this.updateUserElement();this.restoreLibraries();
|
||||
this.checkLicense();isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings.closeRealtimeWarning||this.drive.checkRealtimeFiles(mxUtils.bind(this,function(){var a=document.createElement("div");a.style.cssText="position:absolute;bottom:0px;max-width:90%;padding:10px;padding-right:26px;white-space:nowrap;left:50%;bottom:2px;";a.className="geStatusAlert";mxUtils.setPrefixedStyle(a.style,"transform","translate(-50%,110%)");mxUtils.setPrefixedStyle(a.style,"transition","all 1s ease");a.style.whiteSpace=
|
||||
"nowrap";a.innerHTML='<a href="https://desk.draw.io/support/solutions/articles/16000092210" target="_blank" style="display:inline;text-decoration:none;font-weight:700;font-size:13px;opacity:1;"><img src="'+this.editor.graph.warningImage.src+'" border="0" style="margin-top:-4px;margin-right:2px;" valign="middle"/> You need to take action to convert legacy files. Click here. <img src="'+this.editor.graph.warningImage.src+'" border="0" style="margin-top:-4px;margin-left:2px;" valign="middle"/></a>';
|
||||
this.checkLicense();null==this.drive.user||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings.closeRealtimeWarning||this.drive.checkRealtimeFiles(mxUtils.bind(this,function(){var a=document.createElement("div");a.style.cssText="position:absolute;bottom:0px;max-width:90%;padding:10px;padding-right:26px;white-space:nowrap;left:50%;bottom:2px;";a.className="geStatusAlert";mxUtils.setPrefixedStyle(a.style,"transform","translate(-50%,110%)");mxUtils.setPrefixedStyle(a.style,"transition",
|
||||
"all 1s ease");a.style.whiteSpace="nowrap";a.innerHTML='<a href="https://desk.draw.io/support/solutions/articles/16000092210" target="_blank" style="display:inline;text-decoration:none;font-weight:700;font-size:13px;opacity:1;"><img src="'+this.editor.graph.warningImage.src+'" border="0" style="margin-top:-4px;margin-right:2px;" valign="middle"/> You need to take action to convert legacy files. Click here. <img src="'+this.editor.graph.warningImage.src+'" border="0" style="margin-top:-4px;margin-left:2px;" valign="middle"/></a>';
|
||||
var b=document.createElement("img");b.setAttribute("src",Dialog.prototype.closeImage);b.setAttribute("title",mxResources.get("close"));b.style.position="absolute";b.style.cursor="pointer";b.style.right="10px";b.style.top="12px";a.appendChild(b);mxEvent.addListener(b,"click",mxUtils.bind(this,function(){a.parentNode.removeChild(a);this.hideFooter();isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeRealtimeWarning=Date.now(),mxSettings.save())}));document.body.appendChild(a);window.setTimeout(mxUtils.bind(this,
|
||||
function(){mxUtils.setPrefixedStyle(a.style,"transform","translate(-50%,0%)")}),1500)}))}));this.fireEvent(new mxEventObject("clientLoaded","client",this.drive))});null!=window.DrawGapiClientCallback?(gapi.load(("0"!=urlParams.picker?"picker,":"")+"auth:"+App.GOOGLE_APIS,mxUtils.bind(this,function(b){null!=gapi.client&&gapi.client.load("drive","v2",mxUtils.bind(this,function(){gapi.auth.init(mxUtils.bind(this,function(){null!=gapi.client.drive&&a()}))}))})),window.DrawGapiClientCallback=null):a()}else null==
|
||||
window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=b)});b()}if("1"!=urlParams.embed||"1"==urlParams.db){var d=mxUtils.bind(this,function(){"function"===typeof Dropbox&&"undefined"!==typeof Dropbox.choose?(window.DrawDropboxClientCallback=null,this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateUserElement();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))):null==window.DrawDropboxClientCallback&&
|
||||
|
|
|
@ -1041,7 +1041,8 @@ App.prototype.init = function()
|
|||
this.restoreLibraries();
|
||||
this.checkLicense();
|
||||
|
||||
if (!isLocalStorage || mxSettings.settings == null || mxSettings.settings.closeRealtimeWarning == null)
|
||||
if (this.drive.user != null && (!isLocalStorage || mxSettings.settings == null ||
|
||||
mxSettings.settings.closeRealtimeWarning == null))
|
||||
{
|
||||
this.drive.checkRealtimeFiles(mxUtils.bind(this, function()
|
||||
{
|
||||
|
|
|
@ -2441,7 +2441,7 @@ DriveClient.prototype.jsonToCell = function(val, codec)
|
|||
*/
|
||||
DriveClient.prototype.checkRealtimeFiles = function(fn)
|
||||
{
|
||||
var email = (this.user.email != null) ? this.user.email : null;
|
||||
var email = (this.user != null && this.user.email != null) ? this.user.email : null;
|
||||
|
||||
this.executeRequest(gapi.client.drive.files.list({'maxResults': 1, 'q':
|
||||
'mimeType=\'application/vnd.jgraph.mxfile.realtime\'' +
|
||||
|
@ -2491,7 +2491,7 @@ DriveClient.prototype.convertRealtimeFiles = function()
|
|||
var total = 0;
|
||||
var queryFail = 0;
|
||||
|
||||
var email = (this.user.email != null) ? this.user.email : null;
|
||||
var email = (this.user != null && this.user.email != null) ? this.user.email : null;
|
||||
var q = 'mimeType=\'application/vnd.jgraph.mxfile.realtime\'' +
|
||||
((email != null) ? ' and \'' + email + '\' in writers' : '');
|
||||
|
||||
|
|
Loading…
Reference in a new issue