Skip to content
Permalink
Browse files

12.5.4 release

  • Loading branch information
alderg committed Jan 15, 2020
1 parent 83229bf commit 0cfc3b2dcd24c1e180596c1297483360851a4067
Showing with 1,016 additions and 814 deletions.
  1. +4 −0 ChangeLog
  2. +1 −1 VERSION
  3. +1 −1 src/main/webapp/cache.manifest
  4. +6 −3 src/main/webapp/images/manifest.json
  5. +772 −769 src/main/webapp/js/app.min.js
  6. +90 −8 src/main/webapp/js/diagramly/App.js
  7. +1 −1 src/main/webapp/js/viewer.min.js
  8. +5 −5 src/main/webapp/package.json
  9. +2 −0 src/main/webapp/resources/dia.txt
  10. +2 −0 src/main/webapp/resources/dia_bg.txt
  11. +2 −0 src/main/webapp/resources/dia_bn.txt
  12. +2 −0 src/main/webapp/resources/dia_bs.txt
  13. +2 −0 src/main/webapp/resources/dia_ca.txt
  14. +2 −0 src/main/webapp/resources/dia_cs.txt
  15. +2 −0 src/main/webapp/resources/dia_da.txt
  16. +2 −0 src/main/webapp/resources/dia_de.txt
  17. +2 −0 src/main/webapp/resources/dia_el.txt
  18. +2 −0 src/main/webapp/resources/dia_eo.txt
  19. +2 −0 src/main/webapp/resources/dia_es.txt
  20. +2 −0 src/main/webapp/resources/dia_et.txt
  21. +2 −0 src/main/webapp/resources/dia_fa.txt
  22. +2 −0 src/main/webapp/resources/dia_fi.txt
  23. +2 −0 src/main/webapp/resources/dia_fil.txt
  24. +2 −0 src/main/webapp/resources/dia_fr.txt
  25. +2 −0 src/main/webapp/resources/dia_gl.txt
  26. +2 −0 src/main/webapp/resources/dia_gu.txt
  27. +2 −0 src/main/webapp/resources/dia_he.txt
  28. +2 −0 src/main/webapp/resources/dia_hi.txt
  29. +2 −0 src/main/webapp/resources/dia_hr.txt
  30. +2 −0 src/main/webapp/resources/dia_hu.txt
  31. +2 −0 src/main/webapp/resources/dia_i18n.txt
  32. +2 −0 src/main/webapp/resources/dia_id.txt
  33. +2 −0 src/main/webapp/resources/dia_it.txt
  34. +2 −0 src/main/webapp/resources/dia_ja.txt
  35. +2 −0 src/main/webapp/resources/dia_kn.txt
  36. +2 −0 src/main/webapp/resources/dia_ko.txt
  37. +2 −0 src/main/webapp/resources/dia_lt.txt
  38. +2 −0 src/main/webapp/resources/dia_lv.txt
  39. +2 −0 src/main/webapp/resources/dia_ml.txt
  40. +2 −0 src/main/webapp/resources/dia_mr.txt
  41. +2 −0 src/main/webapp/resources/dia_ms.txt
  42. +2 −0 src/main/webapp/resources/dia_my.txt
  43. +2 −0 src/main/webapp/resources/dia_nl.txt
  44. +2 −0 src/main/webapp/resources/dia_no.txt
  45. +2 −0 src/main/webapp/resources/dia_pl.txt
  46. +2 −0 src/main/webapp/resources/dia_pt-br.txt
  47. +2 −0 src/main/webapp/resources/dia_pt.txt
  48. +2 −0 src/main/webapp/resources/dia_ro.txt
  49. +26 −24 src/main/webapp/resources/dia_ru.txt
  50. +2 −0 src/main/webapp/resources/dia_si.txt
  51. +2 −0 src/main/webapp/resources/dia_sk.txt
  52. +2 −0 src/main/webapp/resources/dia_sl.txt
  53. +2 −0 src/main/webapp/resources/dia_sr.txt
  54. +2 −0 src/main/webapp/resources/dia_sv.txt
  55. +2 −0 src/main/webapp/resources/dia_sw.txt
  56. +2 −0 src/main/webapp/resources/dia_ta.txt
  57. +2 −0 src/main/webapp/resources/dia_te.txt
  58. +2 −0 src/main/webapp/resources/dia_th.txt
  59. +2 −0 src/main/webapp/resources/dia_tr.txt
  60. +2 −0 src/main/webapp/resources/dia_uk.txt
  61. +2 −0 src/main/webapp/resources/dia_vi.txt
  62. +2 −0 src/main/webapp/resources/dia_zh-tw.txt
  63. +2 −0 src/main/webapp/resources/dia_zh.txt
  64. +2 −2 src/main/webapp/service-worker.js
@@ -1,3 +1,7 @@
15-JAN-2019: 12.5.4

- Adds PWA install prompt handler

14-JAN-2019: 12.5.3

- Fixes line height in labels
@@ -1 +1 @@
12.5.3
12.5.4
@@ -1,7 +1,7 @@
CACHE MANIFEST

# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 01/14/2020 07:00 PM
# 01/15/2020 01:29 PM

app.html
index.html?offline=1
@@ -1,5 +1,7 @@
{
"name": "draw.io",
"short_name": "drawio",
"description": "Draw.io is a completely free diagram editor.",
"icons": [
{
"src": "/images/android-chrome-192x192.png",
@@ -12,7 +14,8 @@
"type": "image/png"
}
],
"theme_color": "#d89000",
"background_color": "#d89000",
"display": "standalone"
"theme_color": "#DF6C0C",
"background_color": "#DF6C0C",
"display": "fullscreen",
"start_url": "/index.html?offline=1"
}

Large diffs are not rendered by default.

@@ -538,11 +538,13 @@ App.main = function(callback, createUi)
mxscript('js/extensions.min.js');

// Check that service workers are supported
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js');
});
if ('serviceWorker' in navigator)
{
// Use the window load event to keep the page load performant
window.addEventListener('load', function()
{
navigator.serviceWorker.register('/service-worker.js');
});
}
else if (window.applicationCache != null)
{
@@ -553,6 +555,15 @@ App.main = function(callback, createUi)
document.body.appendChild(frame);
}
}
else if ('serviceWorker' in navigator &&
navigator.serviceWorker.controller)
{
// Needed to update cache if PWA was used
window.addEventListener('load', function()
{
navigator.serviceWorker.register('/service-worker.js');
});
}

// Loads Pusher API
if (('ArrayBuffer' in window) && !mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp &&
@@ -1457,7 +1468,71 @@ App.prototype.init = function()
this.mode = App.mode;
}

if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp && (!this.editor.chromeless || this.editor.editable))
// Integrates Add to Home Screen
if (urlParams['offline'] == '1' && 'serviceWorker' in navigator &&
!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp)
{
var deferredPrompt = null;

window.addEventListener('beforeinstallprompt', mxUtils.bind(this, function(e)
{
if (!this.footerShowing && (!isLocalStorage || mxSettings.settings == null ||
mxSettings.settings.closeAddToHomeScreenFooter == null))
{
deferredPrompt = e;

var done = mxUtils.bind(this, function()
{
footer.parentNode.removeChild(footer);
this.footerShowing = false;
deferredPrompt = null;
this.hideFooter();

// Close permanently
if (isLocalStorage && mxSettings.settings != null)
{
mxSettings.settings.closeAddToHomeScreenFooter = Date.now();
mxSettings.save();
}
});

var footer = createFooter('<img border="0" align="absmiddle" style="margin-top:-6px;cursor:pointer;margin-left:8px;margin-right:12px;width:24px;height:24px;" src="' +
IMAGE_PATH + '/logo.png' + '"><font size="3" style="color:#ffffff;">' +
mxUtils.htmlEntities(mxResources.get('installDrawio', null, 'Install draw.io')) + '</font>',
'https://www.draw.io/index.html?offline=1',
'geStatusMessage geBtn gePrimaryBtn', done, null, mxUtils.bind(this, function()
{
// Show the prompt
if (deferredPrompt != null)
{
deferredPrompt.prompt();

// Wait for the user to respond to the prompt
deferredPrompt.userChoice.then(done);
}
}));

// Push to after splash dialog background
footer.style.zIndex = mxPopupMenu.prototype.zIndex;
footer.style.padding = '18px 50px 12px 30px';
footer.getElementsByTagName('img')[1].style.filter = 'invert(1)';
document.body.appendChild(footer);
this.footerShowing = true;

window.setTimeout(mxUtils.bind(this, function()
{
mxUtils.setPrefixedStyle(footer.style, 'transform', 'translate(-50%,0%)');
}), 500);

window.setTimeout(mxUtils.bind(this, function()
{
mxUtils.setPrefixedStyle(footer.style, 'transform', 'translate(-50%,110%)');
this.footerShowing = false;
}), 60000);
}
}));
}
else if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp && (!this.editor.chromeless || this.editor.editable))
{
this.editor.addListener('fileLoaded', mxUtils.bind(this, function()
{
@@ -1467,10 +1542,13 @@ App.prototype.init = function()
mxSettings.settings.closeDesktopFooter == null) && !this.footerShowing && urlParams['open'] == null)
{
var footer = createFooter('<img border="0" align="absmiddle" style="margin-top:-6px;cursor:pointer;margin-left:8px;margin-right:12px;width:24px;height:24px;" src="' +
IMAGE_PATH + '/logo.png' + '"><font size="3">' + mxResources.get('downloadDesktop') + '...</font>', 'https://get.draw.io/', 'geStatusMessage',
IMAGE_PATH + '/logo.png' + '"><font size="3" style="color:#ffffff;">' +
mxUtils.htmlEntities(mxResources.get('downloadDesktop')) + '</font>',
'https://get.draw.io/', 'geStatusMessage geBtn gePrimaryBtn',
mxUtils.bind(this, function()
{
footer.parentNode.removeChild(footer);
this.footerShowing = false;
this.hideFooter();

// Close permanently
@@ -1480,7 +1558,11 @@ App.prototype.init = function()
mxSettings.save();
}
}));


// Push to after splash dialog background
footer.style.zIndex = mxPopupMenu.prototype.zIndex;
footer.style.padding = '18px 50px 12px 30px';
footer.getElementsByTagName('img')[1].style.filter = 'invert(1)';
document.body.appendChild(footer);
this.footerShowing = true;

Large diffs are not rendered by default.

@@ -1,6 +1,6 @@
{
"name": "draw.io",
"version": "11.3.0",
"version": "12.5.3",
"description": "draw.io desktop",
"main": "electron.js",
"scripts": {
@@ -23,15 +23,15 @@
},
"homepage": "https://github.com/jgraph/drawio",
"dependencies": {
"commander": "^2.20.0",
"electron-log": "^3.0.7",
"commander": "^4.1.0",
"electron-log": "^4.0.3",
"electron-updater": "^4.1.2",
"electron-progressbar": "^1.2.0",
"electron-store": "^3.2.0",
"electron-store": "^5.1.0",
"compression": "^1.7.4",
"crc": "^3.8.0"
},
"devDependencies": {
"electron": "^6.0.0"
"electron": "^7.1.9"
}
}
@@ -400,6 +400,7 @@ insertRowBefore=Insert Row Above
insertRowAfter=Insert Row After
insertText=Insert Text
inserting=Inserting
installDrawio=Install draw.io
invalidFilename=Diagram names must not contain the following characters: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Save diagrams to
saveLibrary403=Insufficient permissions to edit this library
saveLibrary500=There was an error while saving the library
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Saving
scratchpad=Scratchpad
scrollbars=Scrollbars
@@ -400,6 +400,7 @@ insertRowBefore=Вмъкване на ред отгоре
insertRowAfter=Вмъкване на ред отдолу
insertText=Вмъкване на текст
inserting=Вмъкване
installDrawio=Install draw.io
invalidFilename=Диаграмата не трябва да съдържа следните символи: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Вашият лиценз не е валиден. Моля вижте тук <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Запазване на диаграми в
saveLibrary403=Недостатъчни разрешения за редактиране на тази библиотека
saveLibrary500=Възникна грешка при запазване на библиотеката
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Запазване
scratchpad=Бележник
scrollbars=Скролиращи ленти
@@ -400,6 +400,7 @@ insertRowBefore=Insert Row Above
insertRowAfter=Insert Row After
insertText=Insert Text
inserting=Inserting
installDrawio=Install draw.io
invalidFilename=Diagram names must not contain the following characters: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Save diagrams to
saveLibrary403=Insufficient permissions to edit this library
saveLibrary500=There was an error while saving the library
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Saving
scratchpad=Scratchpad
scrollbars=Scrollbars
@@ -400,6 +400,7 @@ insertRowBefore=Umetni red iznad
insertRowAfter=Umetni red nakon
insertText=Umetni tekst
inserting=Umetanje
installDrawio=Install draw.io
invalidFilename=Imena dijagrama ne smiju sadržavati sljedeće znakove: \ / | : ; { < & + ? = "
invalidLicenseSeeThisPage=Vaša licenca nije validna, molimo pogledajte ovo <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Prvo sačuvajte dijagram
saveDiagramsTo=Spasi dijagrame u
saveLibrary403=Nedovoljne ovlasti za uređivanje ove biblioteke
saveLibrary500=Pojavila se greška prilikom spašavanja biblioteke
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Spašavanje
scratchpad=Radna memorija
scrollbars=Skrolbarovi
@@ -400,6 +400,7 @@ insertRowBefore=Afegeix una fila amunt
insertRowAfter=Afegeix una fila avall
insertText=Afegeix text
inserting=Afegint
installDrawio=Install draw.io
invalidFilename=Els noms dels diagrames no poden contenir els següents caràcters: \ / | : ; { < & + ? = "
invalidLicenseSeeThisPage=La llicència no és vàlida, consulteu aquesta <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">pàgina</a>.
invalidInput=L'entrada no és vàlida
@@ -634,6 +635,7 @@ saveDiagramFirst=Deseu primer el diagrama
saveDiagramsTo=Desa els diagrames a
saveLibrary403=Permisos insuficients per editar aquesta biblioteca
saveLibrary500=Hi ha hagut un error desant la biblioteca
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Desant
scratchpad=Scratchpad
scrollbars=Barres de desplaçament
@@ -400,6 +400,7 @@ insertRowBefore=Vložit řádek nad
insertRowAfter=Vložit řádek za
insertText=Vložit text
inserting=Vkládání
installDrawio=Install draw.io
invalidFilename=Jména diagramů nesmí obsahovat tyto znaky: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Vaše licence je neplatná, podívejte se prosím na tuto <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">stránku</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Uložit diagramy do
saveLibrary403=K úpravě této knihovny nemáte dostatečné oprávnění.
saveLibrary500=Při ukládání knihovny došlo k chybě.
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Ukládám
scratchpad=Poznámky
scrollbars=Rolovací lišty
@@ -400,6 +400,7 @@ insertRowBefore=Indsæt række ovenover
insertRowAfter=Indsæt række nedenfor
insertText=Indsæt tekst
inserting=Indsætter
installDrawio=Install draw.io
invalidFilename=Diagramnavn må ikke indeholde de følgende tegn: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Din licens er ugyldig, se venligst <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">side</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Gem diagrammer i
saveLibrary403=Utilstrækkelige tilladelse til at ændre på dette bibliotek
saveLibrary500=Der forekom en fejl under gemning af dette bibliotek
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Gemmer
scratchpad=Notesblok
scrollbars=Rullebjælker
@@ -400,6 +400,7 @@ insertRowBefore=Zeile oberhalb einfügen
insertRowAfter=Zeile unterhalb einfügen
insertText=Text einfügen
inserting=Wird eingefügt
installDrawio=draw.io installieren
invalidFilename=Diagramm Namen dürfen keine der folgenden Zeichen enthalten\ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Ihre Lizenz ist ungültig, bitte besuchen Sie diese <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">Seite</a>.
invalidInput=Ungültige Eingabe
@@ -634,6 +635,7 @@ saveDiagramFirst=Bitte speichern Sie zuerst das Diagramm
saveDiagramsTo=Diagramme speichern in
saveLibrary403=Keine Berechtigung zum Bearbeiten der Bibliothek
saveLibrary500=Fehler beim Speichern der Bibliothek
saveLibraryReadOnly=Bibliothek konnte nicht gespeichert werden, während der schreibgeschützte Modus aktiv ist
saving=Wird gespeichert
scratchpad=Notizblock
scrollbars=Scrollbars
@@ -400,6 +400,7 @@ insertRowBefore=Εισαγωγή σειράς από πάνω
insertRowAfter=Εισαγωγή σειράς μετά
insertText=Εισαγωγή κειμένου
inserting=Εισάγοντας
installDrawio=Install draw.io
invalidFilename=Το όνομα του διαγράμματος δεν πρέπει να περιέχει τους παρακάτω χρακτήρες: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Η άδεια χρήσης σας δεν είναι έγκυρη, παρακαλώ δείτε αυτό <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Αποθήκευση διαγραμμάτων σε
saveLibrary403=Ανεπαρκή δικαιώματα για να επεξεργαστείτε αυτή την βιβλιοθήκη
saveLibrary500=Παρουσιάστηκε σφάλμα κατά την διαδικασία αποθήκευσης της βιβλιοθήκης
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Γίνεται αποθήκευση
scratchpad=Σημειωματάριο
scrollbars=Μπάρες κύλισης
@@ -400,6 +400,7 @@ insertRowBefore=Insert Row Above
insertRowAfter=Insert Row After
insertText=Insert Text
inserting=Inserting
installDrawio=Install draw.io
invalidFilename=Diagram names must not contain the following characters: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Save diagrams to
saveLibrary403=Insufficient permissions to edit this library
saveLibrary500=There was an error while saving the library
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Konservante
scratchpad=Scratchpad
scrollbars=Scrollbars
@@ -400,6 +400,7 @@ insertRowBefore=Insertar fila arriba
insertRowAfter=insertar fila abajo
insertText=Insertar texto
inserting=Insertando
installDrawio=Install draw.io
invalidFilename=Los nombres de los diagramas no deben contener los siguientes caracteres: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Su licencia es inválida, por favor vea esta <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">página</a>.
invalidInput=Invalid input
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Guardar diagramas en
saveLibrary403=Permisos insuficientes para editar esta biblioteca
saveLibrary500=Hubo un error mientras se guardaba la biblioteca
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Guardando
scratchpad=Bloc de notas
scrollbars=Barras de desplazamiento
@@ -400,6 +400,7 @@ insertRowBefore=Sisesta rida ülespoole
insertRowAfter=Sisesta rida allapoole
insertText=Sisesta tekst
inserting=Sisestamine
installDrawio=Install draw.io
invalidFilename=Diagrammi nimed ei tohi sisaldada järgnevaid tähemärke: \ / | : ; { } < > & + ? = "
invalidLicenseSeeThisPage=Sinu litsents on kehtetu, palun vaata seda <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">lehte</a>.
invalidInput=Viga sisestamisel
@@ -634,6 +635,7 @@ saveDiagramFirst=Please save the diagram first
saveDiagramsTo=Salvesta diagrammid...
saveLibrary403=Puuduvad õigused selle raamatukogu muutmiseks
saveLibrary500=Viga raamatukogu salvestamisel
saveLibraryReadOnly=Could not save library while read-only mode is active
saving=Salvestan
scratchpad=Märkmik
scrollbars=Kerimisriba

0 comments on commit 0cfc3b2

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