]> BookStack Code Mirror - bookstack/commitdiff
Updated draw.io references to diagrams.net
authorDan Brown <redacted>
Mon, 28 Sep 2020 19:45:38 +0000 (20:45 +0100)
committerDan Brown <redacted>
Mon, 28 Sep 2020 19:45:38 +0000 (20:45 +0100)
Related to #2044

.env.example.complete
readme.md
resources/views/pages/form.blade.php
tests/Uploads/DrawioTest.php

index 39e7b43602b9da60820e1ef767640faec5393513..45b1e13215d475daed4e23734a294602a6119b1d 100644 (file)
@@ -238,9 +238,9 @@ DISABLE_EXTERNAL_SERVICES=false
 # Example: AVATAR_URL=https://seccdn.libravatar.org/avatar/${hash}?s=${size}&d=identicon
 AVATAR_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=1
 DRAWIO=true
 
index 0c0626f5b5436ff203c8adca88acaaef7467c352..7c2872a0a4517b086f4f7a07be5402d1ff2cbcda 100644 (file)
--- 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 file
index d153aed99af71e0598ecd4a7aa443a85e619159f..7e8b2fdd64409f18a72378c7e620af5f8a14691a 100644 (file)
@@ -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"
index f940a0a5d9c9ee97c3f3e14808108c6efbe01260..3fc009c8ab11b7fd58a447d349a74f08dbdfd0a4 100644 (file)
@@ -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&amp;proto=json&amp;spin=1"');
+        $resp->assertSee('drawio-url="https://embed.diagrams.net/?embed=1&amp;proto=json&amp;spin=1"');
 
         config()->set('services.drawio', false);
         $resp = $this->actingAs($editor)->get($page->getUrl('/edit'));
Morty Proxy This is a proxified and sanitized view of the page, visit original site.