Skip to content
Permalink
Browse files

10.3.8 release

  • Loading branch information...
alderg committed Mar 8, 2019
1 parent 392fea5 commit d622fc9cf67a3a8abc8f49598c244eee2e77e702
Showing with 272 additions and 314 deletions.
  1. +6 −0 ChangeLog
  2. +1 −1 VERSION
  3. +13 −13 etc/mxgraph/mxClient.js
  4. +1 −1 src/main/webapp/cache.manifest
  5. +1 −1 src/main/webapp/electron.js
  6. +150 −149 src/main/webapp/js/app.min.js
  7. +57 −52 src/main/webapp/js/diagramly/DriveClient.js
  8. +26 −26 src/main/webapp/js/mxgraph/Graph.js
  9. +15 −15 src/main/webapp/js/viewer.min.js
  10. +0 −1 src/main/webapp/resources/dia.txt
  11. +0 −1 src/main/webapp/resources/dia_am.txt
  12. +0 −1 src/main/webapp/resources/dia_ar.txt
  13. +0 −1 src/main/webapp/resources/dia_bg.txt
  14. +0 −1 src/main/webapp/resources/dia_bn.txt
  15. +0 −1 src/main/webapp/resources/dia_bs.txt
  16. +0 −1 src/main/webapp/resources/dia_ca.txt
  17. +0 −1 src/main/webapp/resources/dia_cs.txt
  18. +0 −1 src/main/webapp/resources/dia_da.txt
  19. +0 −1 src/main/webapp/resources/dia_de.txt
  20. +0 −1 src/main/webapp/resources/dia_el.txt
  21. +0 −1 src/main/webapp/resources/dia_eo.txt
  22. +0 −1 src/main/webapp/resources/dia_es.txt
  23. +0 −1 src/main/webapp/resources/dia_et.txt
  24. +0 −1 src/main/webapp/resources/dia_fa.txt
  25. +0 −1 src/main/webapp/resources/dia_fi.txt
  26. +0 −1 src/main/webapp/resources/dia_fil.txt
  27. +0 −1 src/main/webapp/resources/dia_fr.txt
  28. +0 −1 src/main/webapp/resources/dia_gu.txt
  29. +0 −1 src/main/webapp/resources/dia_he.txt
  30. +0 −1 src/main/webapp/resources/dia_hi.txt
  31. +0 −1 src/main/webapp/resources/dia_hr.txt
  32. +0 −1 src/main/webapp/resources/dia_hu.txt
  33. +0 −1 src/main/webapp/resources/dia_i18n.txt
  34. +0 −1 src/main/webapp/resources/dia_id.txt
  35. +0 −1 src/main/webapp/resources/dia_it.txt
  36. +0 −1 src/main/webapp/resources/dia_ja.txt
  37. +0 −1 src/main/webapp/resources/dia_kn.txt
  38. +0 −1 src/main/webapp/resources/dia_ko.txt
  39. +0 −1 src/main/webapp/resources/dia_lt.txt
  40. +0 −1 src/main/webapp/resources/dia_lv.txt
  41. +0 −1 src/main/webapp/resources/dia_ml.txt
  42. +0 −1 src/main/webapp/resources/dia_mr.txt
  43. +0 −1 src/main/webapp/resources/dia_ms.txt
  44. +0 −1 src/main/webapp/resources/dia_nl.txt
  45. +0 −1 src/main/webapp/resources/dia_no.txt
  46. +0 −1 src/main/webapp/resources/dia_pl.txt
  47. +0 −1 src/main/webapp/resources/dia_pt-br.txt
  48. +0 −1 src/main/webapp/resources/dia_pt.txt
  49. +0 −1 src/main/webapp/resources/dia_ro.txt
  50. +0 −1 src/main/webapp/resources/dia_ru.txt
  51. +0 −1 src/main/webapp/resources/dia_sk.txt
  52. +0 −1 src/main/webapp/resources/dia_sl.txt
  53. +0 −1 src/main/webapp/resources/dia_sr.txt
  54. +0 −1 src/main/webapp/resources/dia_sv.txt
  55. +0 −1 src/main/webapp/resources/dia_sw.txt
  56. +0 −1 src/main/webapp/resources/dia_ta.txt
  57. +0 −1 src/main/webapp/resources/dia_te.txt
  58. +0 −1 src/main/webapp/resources/dia_th.txt
  59. +0 −1 src/main/webapp/resources/dia_tr.txt
  60. +0 −1 src/main/webapp/resources/dia_uk.txt
  61. +0 −1 src/main/webapp/resources/dia_vi.txt
  62. +0 −1 src/main/webapp/resources/dia_zh-tw.txt
  63. +0 −1 src/main/webapp/resources/dia_zh.txt
  64. +1 −1 src/main/webapp/styles/dark.css
  65. +1 −1 src/main/webapp/styles/grapheditor.css
@@ -1,3 +1,9 @@
08-MAR-2019: 10.3.8

- Fixes possible NPEs
- Fixes possible clipping bugs
- Uses mxGraph 3.9.13 beta 17

08-MAR-2019: 10.3.7

- Creates revision for every autosave in Google Drive
@@ -1 +1 @@
10.3.7
10.3.8

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,7 +1,7 @@
CACHE MANIFEST

# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 03/08/2019 04:57 AM
# 03/08/2019 08:44 AM

app.html
index.html?offline=1
@@ -71,7 +71,7 @@ function createWindow (opt = {})

if (contents != null)
{
contents.executeJavaScript('if(global.__emt_isModified!=null){global.__emt_isModified()}', true,
contents.executeJavaScript('if(typeof global.__emt_isModified === \'function\'){global.__emt_isModified()}', true,
isModified =>
{
console.log('__emt_isModified', isModified)

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1073,7 +1073,6 @@ DriveClient.prototype.saveFile = function(file, revision, success, error, noChec
var t0 = new Date().getTime();
var mod0 = file.desc.modifiedDate;
var head0 = file.desc.headRevisionId;
var size0 = file.desc.fileSize;
var saveAsPng = this.ui.useCanvasForExport && /(\.png)$/i.test(file.getTitle());
noCheck = (noCheck != null) ? noCheck : (!this.ui.isLegacyDriveDomain() || urlParams['ignoremime'] == '1');

@@ -1163,59 +1162,65 @@ DriveClient.prototype.saveFile = function(file, revision, success, error, noChec
{
try
{
// Workaround for cases where we get a success back but the file
// was possibly not saved is to check the new modified date and
// compare it to the last known modified date. If it hasn't
// changed or is before the last date something went wrong.
// NOTE: Commented out due to peak in 403 rate limit errors / 5-MAR-2019
// this.executeRequest(gapi.client.drive.files.get({'fileId': file.getId(),
// 'fields': 'modifiedDate,headRevisionId,fileSize', 'supportsTeamDrives': true}),
// mxUtils.bind(this, function(resp2)
// {
// var delta = new Date(resp2.modifiedDate).getTime() - new Date(mod0).getTime();
//
// if (delta <= 0)
// {
// error({message: mxResources.get('saveNotConfirmed')});
//
// EditorUi.logEvent({category: 'UNCONFIRMED-SAVE-GOOGLE',
// action: 'file-' + file.desc.id + '-old-' + head0 + '.' + size0 +
// '-new-' + resp2.headRevisionId + '.' + resp2.fileSize + '-delta-' + delta,
// label: (this.user != null) ? this.user.id : 'unknown-user'});
// }
// else
// {
file.saveDelay = new Date().getTime() - t0;
success(resp, savedData);

if (prevDesc != null)
file.saveDelay = new Date().getTime() - t0;

// Checks if modified time is in the future and head revision has changed
var delta = new Date(resp.modifiedDate).getTime() - new Date(mod0).getTime();

if (delta <= 0 || (revision && head0 == resp.headRevisionId))
{
error({message: mxResources.get('errorSavingFile')});

// Logs failed save
try
{
EditorUi.sendReport('Critical: Error saving to Google Drive ' +
new Date().toISOString() + ':' +
'\n\nBrowser=' + navigator.userAgent +
'\nFile=' + file.desc.id + ' ' + file.desc.mimeType +
'\nUser=' + ((this.user != null) ? this.user.id : 'unknown') +
'\nOld Rev=' + head0 + ' ' + mod0 +
'\nNew Rev=' + resp.headRevisionId + ' ' + resp.modifiedDate);
EditorUi.logError('Critical: Error saving to Google Drive',
null, file.desc.id + '.' + file.desc.headRevisionId,
(this.user != null) ? this.user.id : 'unknown');
}
catch (e)
{
// ignore
}
}
else
{
success(resp, savedData);

if (prevDesc != null)
{
// Pins previous revision
this.executeRequest(gapi.client.drive.revisions.get(
{
// Pins previous revision
this.executeRequest(gapi.client.drive.revisions.get(
{
'fileId': prevDesc.id,
'revisionId': prevDesc.headRevisionId,
'supportsTeamDrives': true
}), mxUtils.bind(this, mxUtils.bind(this, function(resp)
{
resp.pinned = true;

this.executeRequest(gapi.client.drive.revisions.update(
{
'fileId': prevDesc.id,
'revisionId': prevDesc.headRevisionId,
'resource': resp
}));
})));
'fileId': prevDesc.id,
'revisionId': prevDesc.headRevisionId,
'supportsTeamDrives': true
}), mxUtils.bind(this, mxUtils.bind(this, function(resp)
{
resp.pinned = true;

// Logs conversion
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'});
}
// }
// }));
this.executeRequest(gapi.client.drive.revisions.update(
{
'fileId': prevDesc.id,
'revisionId': prevDesc.headRevisionId,
'resource': resp
}));
})));

// Logs conversion
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)
{
@@ -1564,45 +1564,45 @@ Graph.prototype.openLink = function(href, target, allowOpener)
{
var result = window;

// Workaround for blocking in same iframe
if (target == '_self' && window != window.top)
{
window.location.href = href;
}
else
try
{
// Avoids page reload for anchors (workaround for IE but used everywhere)
if (href.substring(0, this.baseUrl.length) == this.baseUrl &&
href.charAt(this.baseUrl.length) == '#' &&
target == '_top' && window == window.top)
// Workaround for blocking in same iframe
if (target == '_self' && window != window.top)
{
var hash = href.split('#')[1];

// Forces navigation if on same hash
if (window.location.hash == '#' + hash)
{
window.location.hash = '';
}

window.location.hash = hash;
window.location.href = href;
}
else
{
result = window.open(href, target);

try
// Avoids page reload for anchors (workaround for IE but used everywhere)
if (href.substring(0, this.baseUrl.length) == this.baseUrl &&
href.charAt(this.baseUrl.length) == '#' &&
target == '_top' && window == window.top)
{
if (result != null && !allowOpener)
var hash = href.split('#')[1];

// Forces navigation if on same hash
if (window.location.hash == '#' + hash)
{
result.opener = null;
window.location.hash = '';
}

window.location.hash = hash;
}
catch (e)
else
{
// ignores permission denied
result = window.open(href, target);

if (result != null && !allowOpener)
{
result.opener = null;
}
}
}
}
catch (e)
{
// ignores permission denied
}

return result;
};
Oops, something went wrong.

0 comments on commit d622fc9

Please sign in to comment.
You can’t perform that action at this time.