fix: feat: locally host known script

This commit is contained in:
2025-11-08 21:31:51 +01:00
parent 517ceacf79
commit 428dcb8727
2 changed files with 7632 additions and 6 deletions

View File

@@ -1,13 +1,14 @@
{{ $source := index .Params 0 }} {{ $source := index .Params 0 }}
<div class="embedded-html">
{{ with .Page.Resources.GetMatch $source | readFile }} {{ with .Page.Resources.GetMatch $source | readFile }}
{{ .|safeHTML }} {{ replace . "https://viewer.diagrams.net/js/viewer-static.min.js" "/js/viewer-static.min.js"|safeHTML }}
{{ end }} {{ end }}
</div>
<style> <style>
/* Reset the image width that is set in the theme /* Reset the image width that is set in the theme for
If wired styling issues appear, check if the theme is responsible and eventually unset this here If wired styling issues appear, check if the theme is responsible and eventually unset this here
*/ */
img { .geAdaptiveAsset {
width: unset; width: unset;
} }
</style> </style>

7625
static/js/viewer-static.min.js vendored Normal file

File diff suppressed because one or more lines are too long