chore: Remove aws icons from demo

This commit is contained in:
Sidharth Vinod 2024-08-28 21:37:54 +05:30
parent 0ecdbf4374
commit dccd6121b1
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -226,7 +226,7 @@
</pre>
<hr />
<h2>AWS Icon Demo</h2>
<!-- <h2>AWS Icon Demo</h2>
<pre class="mermaid">
architecture-beta
service s3(aws:s3)[Cloud Store]
@ -234,76 +234,19 @@
service wave(aws:wavelength)[Wave]
service droplet(do:droplet)[Droplet]
service repo(gh:github)[Repository]
</pre
>
</pre> -->
<script type="module">
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({
theme: 'base',
startOnLoad: true,
logLevel: 0,
flowchart: {
useMaxWidth: false,
htmlLabels: true,
},
gantt: {
useMaxWidth: false,
},
architecture: {
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>
</body>
</html>