Skip to content

Commit 46682ed

Browse files
committed
[WebProfilerBundle] Inline flowchart-only Mermaid version
1 parent e70dcb1 commit 46682ed

File tree

2 files changed

+485
-2
lines changed

2 files changed

+485
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mermaid-flowchart-v2.min.js

+483
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/workflow.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@
132132
<p>There are no workflows configured.</p>
133133
</div>
134134
{% else %}
135-
<script type="module">
136-
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
135+
<script>
136+
{{ source('@WebProfiler/Collector/mermaid-flowchart-v2.min.js') }}
137137
const isDarkMode = document.querySelector('body').classList.contains('theme-dark');
138138
mermaid.initialize({
139139
flowchart: { useMaxWidth: false },

0 commit comments

Comments
 (0)