mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-04-27 06:06:20 +02:00
feat(lib): update mermaid version from v9.1.3 to v11.5.0
This commit is contained in:
parent
be2f07fa53
commit
53ae739d6d
10 changed files with 2591 additions and 21 deletions
|
@ -34,8 +34,8 @@ libFiles:
|
|||
katexAutoRenderJS: KaTeX/0.16.9/contrib/auto-render.min.js
|
||||
katexCopyTexJS: KaTeX/0.16.9/contrib/copy-tex.min.js
|
||||
katexMhchemJS: KaTeX/0.16.9/contrib/mhchem.min.js
|
||||
# mermaid@9.1.3https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid/9.1.3/mermaid.min.js
|
||||
# mermaid@11.4.0 https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid/11.4.0/mermaid.min.js
|
||||
# echarts@5.6.0 https://echarts.apache.org/
|
||||
echartsJS: echarts/5.6.0/echarts.min.js
|
||||
# mapbox-gl@2.9.1 https://docs.mapbox.com/mapbox-gl-js
|
||||
|
|
|
@ -36,8 +36,8 @@ libFiles:
|
|||
katexAutoRenderJS: katex@0.16.21/dist/contrib/auto-render.min.js
|
||||
katexCopyTexJS: katex@0.16.21/dist/contrib/copy-tex.min.js
|
||||
katexMhchemJS: katex@0.16.21/dist/contrib/mhchem.min.js
|
||||
# mermaid@9.1.3https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@9.1.3/dist/mermaid.min.js
|
||||
# mermaid@11.5.0https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@11.5.0/dist/mermaid.min.js
|
||||
# echarts@5.6.0 https://echarts.apache.org/
|
||||
echartsJS: echarts@5.6.0/dist/echarts.min.js
|
||||
# mapbox-gl@2.9.1 https://docs.mapbox.com/mapbox-gl-js
|
||||
|
|
|
@ -36,8 +36,8 @@ libFiles:
|
|||
katexAutoRenderJS: katex@0.16.21/dist/contrib/auto-render.min.js
|
||||
katexCopyTexJS: katex@0.16.21/dist/contrib/copy-tex.min.js
|
||||
katexMhchemJS: katex@0.16.21/dist/contrib/mhchem.min.js
|
||||
# mermaid@9.1.3https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@9.1.3/dist/mermaid.min.js
|
||||
# mermaid@11.5.0https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@11.5.0/dist/mermaid.min.js
|
||||
# echarts@5.6.0 https://echarts.apache.org/
|
||||
echartsJS: echarts@5.6.0/dist/echarts.min.js
|
||||
# mapbox-gl@2.9.1 https://docs.mapbox.com/mapbox-gl-js
|
||||
|
|
|
@ -36,8 +36,8 @@ libFiles:
|
|||
katexAutoRenderJS: katex@0.16.21/dist/contrib/auto-render.min.js
|
||||
katexCopyTexJS: katex@0.16.21/dist/contrib/copy-tex.min.js
|
||||
katexMhchemJS: katex@0.16.21/dist/contrib/mhchem.min.js
|
||||
# mermaid@9.1.3https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@9.1.3/dist/mermaid.min.js
|
||||
# mermaid@11.5.0https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@11.5.0/dist/mermaid.min.js
|
||||
# echarts@5.6.0 https://echarts.apache.org/
|
||||
echartsJS: echarts@5.6.0/dist/echarts.min.js
|
||||
# mapbox-gl@2.9.1 https://docs.mapbox.com/mapbox-gl-js
|
||||
|
|
|
@ -36,8 +36,8 @@ libFiles:
|
|||
katexAutoRenderJS: katex@0.16.21/dist/contrib/auto-render.min.js
|
||||
katexCopyTexJS: katex@0.16.21/dist/contrib/copy-tex.min.js
|
||||
katexMhchemJS: katex@0.16.21/dist/contrib/mhchem.min.js
|
||||
# mermaid@9.1.3https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@9.1.3/dist/mermaid.min.js
|
||||
# mermaid@11.5.0https://github.com/mermaid-js/mermaid
|
||||
mermaidJS: mermaid@11.5.0/dist/mermaid.min.js
|
||||
# echarts@5.6.0 https://echarts.apache.org/
|
||||
echartsJS: echarts@5.6.0/dist/echarts.min.js
|
||||
# mapbox-gl@2.9.1 https://docs.mapbox.com/mapbox-gl-js
|
||||
|
|
|
@ -559,9 +559,10 @@ var Theme = /*#__PURE__*/function () {
|
|||
securityLevel: 'loose'
|
||||
});
|
||||
Util.forEach($mermaidElements, function ($mermaid) {
|
||||
mermaid.render('svg-' + $mermaid.id, _this6.data[$mermaid.id], function (svgCode) {
|
||||
$mermaid.innerHTML = svgCode;
|
||||
}, $mermaid);
|
||||
mermaid.render('mermaid-svg-' + $mermaid.id, _this6.data[$mermaid.id]).then(function (_ref9) {
|
||||
var svg = _ref9.svg;
|
||||
$mermaid.innerHTML = svg;
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
| [lightGallery](https://github.com/sachinchoolur/lightgallery) | lightgallery | 2.5.0 |
|
||||
| [Lunr.js](https://github.com/olivernn/lunr.js) | lunr | 2.3.9 |
|
||||
| [Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) | mapbox-gl | 2.9.1 |
|
||||
| [Mermaid](https://github.com/mermaid-js/mermaid) | mermaid | 9.1.3 |
|
||||
| [Mermaid](https://github.com/mermaid-js/mermaid) | mermaid | 11.5.0 |
|
||||
| [MetingJS](https://github.com/metowolf/MetingJS) | meting | 2.0.1 |
|
||||
| [modern-normalize](https://github.com/sindresorhus/modern-normalize) | modern-normalize | 3.0.1 |
|
||||
| [object-fit-images](https://github.com/fregante/object-fit-images) | object-fit-images | 3.2.4 |
|
||||
|
|
2568
assets/lib/mermaid/mermaid.min.js
vendored
2568
assets/lib/mermaid/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -465,9 +465,10 @@ class Theme {
|
|||
if ($mermaidElements.length) {
|
||||
mermaid.initialize({startOnLoad: false, theme: this.isDark ? 'dark' : 'neutral', securityLevel: 'loose'});
|
||||
Util.forEach($mermaidElements, $mermaid => {
|
||||
mermaid.render('svg-' + $mermaid.id, this.data[$mermaid.id], svgCode => {
|
||||
$mermaid.innerHTML = svgCode;
|
||||
}, $mermaid);
|
||||
mermaid.render('mermaid-svg-' + $mermaid.id, this.data[$mermaid.id])
|
||||
.then(({ svg }) => {
|
||||
$mermaid.innerHTML = svg;
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue