NOW MANAGED ON CODEBERG
Updated draw.io references to diagrams.net
Dan Brown8b0f5e700044
diff --git a/.env.example.complete b/.env.example.completeindex 39e7b4360..45b1e1321 100644--- a/.env.example.complete+++ b/.env.example.complete@@ -238,9 +238,9 @@ DISABLE_EXTERNAL_SERVICES=false# Example: AVATAR_URL=https://seccdn.libravatar.org/avatar/${hash}?s=${size}&d=identiconAVATAR_URL=-# Enable draw.io integration+# Enable diagrams.net integration# Can simply be true/false to enable/disable the integration.-# Alternatively, It can be URL to the draw.io instance you want to use.+# Alternatively, It can be URL to the diagrams.net instance you want to use.# For URLs, The following URL parameters should be included: embed=1&proto=json&spin=1DRAWIO=truediff --git a/readme.md b/readme.mdindex 0c0626f5b..7c2872a0a 100644--- a/readme.md+++ b/readme.md@@ -168,6 +168,6 @@ These are the great open-source projects used to help build BookStack:* [Snappy (WKHTML2PDF)](https://github.com/barryvdh/laravel-snappy)* [Laravel IDE helper](https://github.com/barryvdh/laravel-ide-helper)* [WKHTMLtoPDF](http://wkhtmltopdf.org/index.html)-* [Draw.io](https://github.com/jgraph/drawio)+* [diagrams.net](https://github.com/jgraph/drawio)* [Laravel Stats](https://github.com/stefanzweifel/laravel-stats)* [OneLogin's SAML PHP Toolkit](https://github.com/onelogin/php-saml)\ No newline at end of filediff --git a/resources/views/pages/form.blade.php b/resources/views/pages/form.blade.phpindex d153aed99..7e8b2fdd6 100644--- a/resources/views/pages/form.blade.php+++ b/resources/views/pages/form.blade.php@@ -1,7 +1,7 @@<div component="page-editor" class="page-editor flex-fill flex"option:page-editor:drafts-enabled="{{ $draftsEnabled ? 'true' : 'false' }}"@if(config('services.drawio'))- drawio-url="{{ is_string(config('services.drawio')) ? config('services.drawio') : 'https://www.draw.io/?embed=1&proto=json&spin=1' }}"+ drawio-url="{{ is_string(config('services.drawio')) ? config('services.drawio') : 'https://embed.diagrams.net/?embed=1&proto=json&spin=1' }}"@endif@if($model->name === trans('entities.pages_initial_name'))option:page-editor:has-default-title="true"diff --git a/tests/Uploads/DrawioTest.php b/tests/Uploads/DrawioTest.phpindex f940a0a5d..3fc009c8a 100644--- a/tests/Uploads/DrawioTest.php+++ b/tests/Uploads/DrawioTest.php@@ -69,7 +69,7 @@ class DrawioTest extends TestCase$editor = $this->getEditor();$resp = $this->actingAs($editor)->get($page->getUrl('/edit'));- $resp->assertSee('drawio-url="https://www.draw.io/?embed=1&proto=json&spin=1"');+ $resp->assertSee('drawio-url="https://embed.diagrams.net/?embed=1&proto=json&spin=1"');config()->set('services.drawio', false);$resp = $this->actingAs($editor)->get($page->getUrl('/edit'));