You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion, all features of WebProfilerBundle should work even if you don't have an active Internet connection. This is both for security reasons (to not make connections to third-party services from your work environment) and for practical reasons (those external connections could be restricted in your company or your Internet connection could be weak or failing).
That's why we embed things like SVG icons and serve custom web fonts via the ProfilerController.
I downloaded mermaid.min.js from jsDelivr, but it's a 3.3 MB file 😰
I tried to only get the files related to "flowChart", which is the only feature needed here, but I can't.
So, is there some JavaScript expert who can tell us how to get all these files in a single JS file (e.g. mermaid-flowchart.min.js) so we can include that from the Profiler?
Thanks!
The text was updated successfully, but these errors were encountered:
…n (MatTheCat)
This PR was merged into the 7.1 branch.
Discussion
----------
[WebProfilerBundle] Inline flowchart-only Mermaid version
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | Fix#54416
| License | MIT
From mermaid-js/mermaid#2920 (comment) there is no official way to generate a diagram-specific script, but it is possible by patching the `packages/mermaid/src/diagram-api/diagram-orchestration.ts` file before building.
This PR comes with a Makefile whose default recipe does so, and the `mermaid-flowchart-v2.min.js` file it generated from v10.9.0.
Bumping the script’s version will require to update the Makefile’s `tag` variable to the corresponding `mermaid-js/mermaid`’s (from https://github.com/mermaid-js/mermaid/tags) and running `make`. The recipe depends on cURL, GNU tar, and pnpm.
Commits
-------
32612e7 [WebProfilerBundle] Inline flowchart-only Mermaid version
In my opinion, all features of WebProfilerBundle should work even if you don't have an active Internet connection. This is both for security reasons (to not make connections to third-party services from your work environment) and for practical reasons (those external connections could be restricted in your company or your Internet connection could be weak or failing).
That's why we embed things like SVG icons and serve custom web fonts via the
ProfilerController
.However, the
workflow.html.twig
has this:I tried to fix this but I can't:
mermaid.min.js
from jsDelivr, but it's a 3.3 MB file 😰So, is there some JavaScript expert who can tell us how to get all these files in a single JS file (e.g.
mermaid-flowchart.min.js
) so we can include that from the Profiler?Thanks!
The text was updated successfully, but these errors were encountered: