mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
chore: Remove aws icons from demo
This commit is contained in:
parent
0ecdbf4374
commit
dccd6121b1
@ -226,7 +226,7 @@
|
|||||||
</pre>
|
</pre>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<h2>AWS Icon Demo</h2>
|
<!-- <h2>AWS Icon Demo</h2>
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
architecture-beta
|
architecture-beta
|
||||||
service s3(aws:s3)[Cloud Store]
|
service s3(aws:s3)[Cloud Store]
|
||||||
@ -234,76 +234,19 @@
|
|||||||
service wave(aws:wavelength)[Wave]
|
service wave(aws:wavelength)[Wave]
|
||||||
service droplet(do:droplet)[Droplet]
|
service droplet(do:droplet)[Droplet]
|
||||||
service repo(gh:github)[Repository]
|
service repo(gh:github)[Repository]
|
||||||
</pre
|
</pre> -->
|
||||||
>
|
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from './mermaid.esm.mjs';
|
import mermaid from './mermaid.esm.mjs';
|
||||||
|
|
||||||
const ALLOWED_TAGS = [
|
|
||||||
'a',
|
|
||||||
'b',
|
|
||||||
'blockquote',
|
|
||||||
'br',
|
|
||||||
'dd',
|
|
||||||
'div',
|
|
||||||
'dl',
|
|
||||||
'dt',
|
|
||||||
'em',
|
|
||||||
'foreignObject',
|
|
||||||
'h1',
|
|
||||||
'h2',
|
|
||||||
'h3',
|
|
||||||
'h4',
|
|
||||||
'h5',
|
|
||||||
'h6',
|
|
||||||
'h7',
|
|
||||||
'h8',
|
|
||||||
'hr',
|
|
||||||
'i',
|
|
||||||
'li',
|
|
||||||
'ul',
|
|
||||||
'ol',
|
|
||||||
'p',
|
|
||||||
'pre',
|
|
||||||
'span',
|
|
||||||
'strike',
|
|
||||||
'strong',
|
|
||||||
'table',
|
|
||||||
'tbody',
|
|
||||||
'td',
|
|
||||||
'tfoot',
|
|
||||||
'th',
|
|
||||||
'thead',
|
|
||||||
'tr',
|
|
||||||
];
|
|
||||||
mermaid.parseError = function (err, hash) {
|
|
||||||
// console.error('Mermaid error: ', err);
|
|
||||||
};
|
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
theme: 'base',
|
theme: 'base',
|
||||||
startOnLoad: true,
|
startOnLoad: true,
|
||||||
logLevel: 0,
|
logLevel: 0,
|
||||||
flowchart: {
|
|
||||||
useMaxWidth: false,
|
|
||||||
htmlLabels: true,
|
|
||||||
},
|
|
||||||
gantt: {
|
|
||||||
useMaxWidth: false,
|
|
||||||
},
|
|
||||||
architecture: {
|
architecture: {
|
||||||
iconSize: 80,
|
iconSize: 80,
|
||||||
},
|
},
|
||||||
useMaxWidth: false,
|
// iconLibraries: ['aws:common', 'aws:full', 'github', 'digital-ocean'],
|
||||||
iconLibraries: ['aws:common', 'aws:full', 'github', 'digital-ocean'],
|
|
||||||
});
|
});
|
||||||
function callback() {
|
|
||||||
alert('It worked');
|
|
||||||
}
|
|
||||||
mermaid.parseError = function (err, hash) {
|
|
||||||
console.error('In parse error:');
|
|
||||||
console.error(err);
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user