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> </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>