Skip to content
Permalink
Browse files

12.2.7 release

  • Loading branch information
David Benson [draw.io]
David Benson [draw.io] committed Nov 19, 2019
1 parent 6a2059b commit 88af133d284167e1fb9230fb0e45454474074d67
Showing with 8,825 additions and 3,648 deletions.
  1. +1 −6 CODE_OF_CONDUCT.md
  2. +16 −0 ChangeLog
  3. +3 −7 README.md
  4. +1 −1 VERSION
  5. +1 −0 etc/build/build.xml
  6. +3 −1 src/main/java/com/mxgraph/online/AbsAuthServlet.java
  7. +1 −1 src/main/webapp/cache.manifest
  8. +90 −19 src/main/webapp/export3.html
  9. +65 −88 src/main/webapp/images/draw-search.svg
  10. BIN src/main/webapp/images/sidebar-kubernetes.png
  11. +1 −1 src/main/webapp/index.html
  12. +1,673 −1,626 src/main/webapp/js/app.min.js
  13. +145 −74 src/main/webapp/js/diagramly/App.js
  14. +1 −0 src/main/webapp/js/diagramly/Devel.js
  15. +336 −2 src/main/webapp/js/diagramly/Dialogs.js
  16. +1 −1 src/main/webapp/js/diagramly/DiffSync.js
  17. +1 −1 src/main/webapp/js/diagramly/DrawioFileSync.js
  18. +39 −184 src/main/webapp/js/diagramly/DriveClient.js
  19. +91 −3 src/main/webapp/js/diagramly/Editor.js
  20. +239 −107 src/main/webapp/js/diagramly/EditorUi.js
  21. +310 −17 src/main/webapp/js/diagramly/Menus.js
  22. +5 −3 src/main/webapp/js/diagramly/Minimal.js
  23. +128 −11 src/main/webapp/js/diagramly/Pages.js
  24. +27 −6 src/main/webapp/js/diagramly/Settings.js
  25. +55 −0 src/main/webapp/js/diagramly/sidebar/Sidebar-Kubernetes.js
  26. +3 −1 src/main/webapp/js/diagramly/sidebar/Sidebar.js
  27. +1 −1 src/main/webapp/js/diagramly/vsdx/importer.js
  28. +10 −10 src/main/webapp/js/extensions.min.js
  29. +5 −5 src/main/webapp/js/mxgraph/Actions.js
  30. +18 −1 src/main/webapp/js/mxgraph/Dialogs.js
  31. +6 −1 src/main/webapp/js/shapes.min.js
  32. +1 −0 src/main/webapp/js/stencils.min.js
  33. +1,284 −1,277 src/main/webapp/js/viewer.min.js
  34. +3 −3 src/main/webapp/plugins/tickets.js
  35. +4 −3 src/main/webapp/plugins/webcola/mxWebColaAdaptor.js
  36. +7 −5 src/main/webapp/resources/dia.txt
  37. +7 −5 src/main/webapp/resources/dia_am.txt
  38. +5 −3 src/main/webapp/resources/dia_ar.txt
  39. +5 −3 src/main/webapp/resources/dia_bg.txt
  40. +7 −5 src/main/webapp/resources/dia_bn.txt
  41. +5 −3 src/main/webapp/resources/dia_bs.txt
  42. +5 −3 src/main/webapp/resources/dia_ca.txt
  43. +5 −3 src/main/webapp/resources/dia_cs.txt
  44. +5 −3 src/main/webapp/resources/dia_da.txt
  45. +3 −1 src/main/webapp/resources/dia_de.txt
  46. +5 −3 src/main/webapp/resources/dia_el.txt
  47. +7 −5 src/main/webapp/resources/dia_eo.txt
  48. +4 −2 src/main/webapp/resources/dia_es.txt
  49. +4 −2 src/main/webapp/resources/dia_et.txt
  50. +5 −3 src/main/webapp/resources/dia_fa.txt
  51. +5 −3 src/main/webapp/resources/dia_fi.txt
  52. +5 −3 src/main/webapp/resources/dia_fil.txt
  53. +5 −3 src/main/webapp/resources/dia_fr.txt
  54. +7 −5 src/main/webapp/resources/dia_gu.txt
  55. +5 −3 src/main/webapp/resources/dia_he.txt
  56. +7 −5 src/main/webapp/resources/dia_hi.txt
  57. +7 −5 src/main/webapp/resources/dia_hr.txt
  58. +5 −3 src/main/webapp/resources/dia_hu.txt
  59. +2 −0 src/main/webapp/resources/dia_i18n.txt
  60. +5 −3 src/main/webapp/resources/dia_id.txt
  61. +5 −3 src/main/webapp/resources/dia_it.txt
  62. +5 −3 src/main/webapp/resources/dia_ja.txt
  63. +7 −5 src/main/webapp/resources/dia_kn.txt
  64. +5 −3 src/main/webapp/resources/dia_ko.txt
  65. +7 −5 src/main/webapp/resources/dia_lt.txt
  66. +7 −5 src/main/webapp/resources/dia_lv.txt
  67. +7 −5 src/main/webapp/resources/dia_ml.txt
  68. +7 −5 src/main/webapp/resources/dia_mr.txt
  69. +5 −3 src/main/webapp/resources/dia_ms.txt
  70. +2 −0 src/main/webapp/resources/dia_nl.txt
  71. +5 −3 src/main/webapp/resources/dia_no.txt
  72. +5 −3 src/main/webapp/resources/dia_pl.txt
  73. +5 −3 src/main/webapp/resources/dia_pt-br.txt
  74. +5 −3 src/main/webapp/resources/dia_pt.txt
  75. +5 −3 src/main/webapp/resources/dia_ro.txt
  76. +5 −3 src/main/webapp/resources/dia_ru.txt
  77. +7 −5 src/main/webapp/resources/dia_sk.txt
  78. +7 −5 src/main/webapp/resources/dia_sl.txt
  79. +5 −3 src/main/webapp/resources/dia_sr.txt
  80. +5 −3 src/main/webapp/resources/dia_sv.txt
  81. +7 −5 src/main/webapp/resources/dia_sw.txt
  82. +7 −5 src/main/webapp/resources/dia_ta.txt
  83. +7 −5 src/main/webapp/resources/dia_te.txt
  84. +5 −3 src/main/webapp/resources/dia_th.txt
  85. +5 −3 src/main/webapp/resources/dia_tr.txt
  86. +5 −3 src/main/webapp/resources/dia_uk.txt
  87. +5 −3 src/main/webapp/resources/dia_vi.txt
  88. +5 −3 src/main/webapp/resources/dia_zh-tw.txt
  89. +5 −3 src/main/webapp/resources/dia_zh.txt
  90. +112 −0 src/main/webapp/shapes/mxKubernetes.js
  91. +3,850 −0 src/main/webapp/stencils/kubernetes.xml
  92. +1 −1 src/main/webapp/styles/dark.css
@@ -1,4 +1,4 @@
# Contributor Code of Conduct:
# Contributor Covenant Code of Conduct:

## Our Pledge

@@ -21,11 +21,6 @@ Examples of unacceptable behavior by participants include:
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
* Not respecting other people's time, this is an open source project
* Being impatient or rude
* Pressing developers for prority fixes or ETAs
* Guilting the developers into focusing on your issue(s)
* Repeatedly showing an inappropriate level of entitlement

## Our Responsibilities

@@ -1,3 +1,19 @@
19-NOV-2019: 12.2.7

- Adds #_CONFIG_ hash property for configuration via URL
- Fixes for external font support
- Adds Extras, draw.io Configuration menu
- Adds Link item in page context menu

13-NOV-2019: 12.2.6

- Reverts Google auth change in 12.2.5

13-NOV-2019: 12.2.5

- Add external font support
- Adds configuration option in local storage

12-NOV-2019: 12.2.4

- Updates IBM stencils
@@ -2,13 +2,7 @@

About
-----
[draw.io](https://www.draw.io) is an online diagramming web site that delivers the source in this project. It is a production-grade deployment, with full [security process](https://github.com/jgraph/security-privacy-legal).

draw.io is a client-side, static web application. There is no user authentication or data storage concept in this repo. The online version stores data in mainstream cloud storage options, currently Google Drive, OneDrive, Dropbox, GitHub, Gitlab or Trello.

There are a range of [integrations into other tools](https://about.draw.io/integrations-ecosystem/), some by this core team, some by third-parties.

draw.io has an official [Docker image](https://github.com/jgraph/docker-drawio) for local deployment, as well as [Desktop versions](https://github.com/jgraph/drawio-desktop) for MacOS, Linux and Windows.
[draw.io](https://www.draw.io) is an online diagramming web site that delivers the source in this project.

draw.io uses the [mxGraph library](https://github.com/jgraph/mxgraph) as the base of the stack, with the [GraphEditor example](https://github.com/jgraph/mxgraph/tree/master/javascript/examples/grapheditor) from mxGraph as the base of the application part. The mxGraph library build used is stored under /etc/mxgraph/mxClient.js.

@@ -27,6 +21,8 @@ Running
-------
One way to run draw.io is to fork this project, [publish the master branch to GitHub pages](https://help.github.com/categories/github-pages-basics/) and the [pages sites](https://jgraph.github.io/drawio/src/main/webapp/index.html) will have the full editor functionality (sans the integrations).

Another way is to use [the recommended Docker project](https://github.com/fjudith/docker-draw.io) or to download [draw.io Desktop](https://get.draw.io).

The full packaged .war of the client and servlets is built when the project is tagged and available on the [releases page](https://github.com/jgraph/draw.io/releases).

Supported Browsers
@@ -1 +1 @@
12.2.4
12.2.7
@@ -135,6 +135,7 @@
<file name="Sidebar-Infographic.js" />
<file name="Sidebar-Ios.js" />
<file name="Sidebar-Ios7.js" />
<file name="Sidebar-Kubernetes.js" />
<file name="Sidebar-LeanMapping.js" />
<file name="Sidebar-Mockup.js" />
<file name="Sidebar-MSCAE.js" />
@@ -93,7 +93,9 @@ protected void doGet(HttpServletRequest request,
String secret, client, redirectUri;
String[] secrets, clients;

if ("127.0.0.1".equals(request.getServerName()))
if ("127.0.0.1".equals(request.getServerName()) ||
"devhost.jgraph.com".equals(request.getServerName()) ||
"localhost".equals(request.getServerName()))
{
secrets = CONFIG.DEV_CLIENT_SECRET.split(SEPARATOR);
clients = CONFIG.DEV_CLIENT_ID.split(SEPARATOR);
@@ -1,7 +1,7 @@
CACHE MANIFEST

# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 11/12/2019 08:50 AM
# 11/19/2019 12:46 PM

app.html
index.html?offline=1
@@ -169,28 +169,33 @@
{
if (--waitCounter < 1)
{
var doneDiv = document.createElement("div");
doneDiv.id = 'LoadingComplete';
doneDiv.style.display = 'none';
doneDiv.setAttribute('bounds', JSON.stringify(bounds));
doneDiv.setAttribute('page-id', pageId);
doneDiv.setAttribute('scale', expScale);
document.body.appendChild(doneDiv);
//Electron pdf export
if (mxIsElectron)
//Note: This code targets Chrome as it is the browser used by export server
//Ensure that all fonts has been loaded, this promise is never rejected
document.fonts.ready.then(function()
{
try
{
const { ipcRenderer } = require('electron');
ipcRenderer.send('render-finished', bounds);
}
catch(e)
var doneDiv = document.createElement("div");
doneDiv.id = 'LoadingComplete';
doneDiv.style.display = 'none';
doneDiv.setAttribute('bounds', JSON.stringify(bounds));
doneDiv.setAttribute('page-id', pageId);
doneDiv.setAttribute('scale', expScale);
document.body.appendChild(doneDiv);
//Electron pdf export
if (mxIsElectron)
{
console.log(e);
try
{
const { ipcRenderer } = require('electron');
ipcRenderer.send('render-finished', bounds);
}
catch(e)
{
console.log(e);
}
}
}
});
}
};
@@ -290,6 +295,63 @@
}
};
function loadExtFonts(extFonts)
{
try
{
extFonts = extFonts.split('|').map(function(ef)
{
var parts = ef.split('^');
return {name: parts[0], url: parts[1]};
});
}
catch(e)
{
//ignore and return!
return;
}
waitCounter += extFonts.length;
//Note: This code targets Chrome as it is the browser used by export server
for (var i = 0; i < extFonts.length; i++)
{
if (extFonts[i].url.indexOf(Editor.GOOGLE_FONTS) == 0)
{
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('charset', 'UTF-8');
link.setAttribute('type', 'text/css');
link.onload = decrementWaitCounter;
link.onerror = decrementWaitCounter;
link.setAttribute('href', extFonts[i].url);
var head = document.getElementsByTagName('head')[0];
head.appendChild(link);
}
else
{
//Relative urls doesn't work
if (extFonts[i].url.indexOf(PROXY_URL) == 0 && PROXY_URL.indexOf('http') == -1)
{
var href = window.location.href;
href = href.substring(0, href.lastIndexOf('/') + 1);
extFonts[i].url = href + extFonts[i].url;
}
var font = new FontFace(extFonts[i].name, 'url(' + extFonts[i].url + ')');
font.load().then(function(loadedFont)
{
document.fonts.add(loadedFont);
decrementWaitCounter();
}).catch(decrementWaitCounter);
}
}
};
function renderGrid()
{
if (gridColor == null) return;
@@ -335,6 +397,14 @@
mxClient.NO_FO = true;
}
//Load external fonts
var extFonts = xmlDoc.documentElement.getAttribute('extFonts');
if (extFonts)
{
loadExtFonts(extFonts);
}
// Configure graph
graph.foldingEnabled = false;
graph.setEnabled(false);
@@ -777,4 +847,5 @@
</head>
<body style="margin:0px;">
<div id="graph" style="width:100%;height:100%;"></div>
</body>
</html>

0 comments on commit 88af133

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