| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | <title>Architecture Mermaid Test Page</title> |
| 7 | <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" /> |
| 8 | <style> |
| 9 | div.mermaid { |
| 10 | /* font-family: 'trebuchet ms', verdana, arial; */ |
| 11 | font-family: 'Courier New', Courier, monospace !important; |
| 12 | } |
| 13 | </style> |
| 14 | </head> |
| 15 | |
| 16 | <body> |
| 17 | <h2>External Icons Demo</h2> |
| 18 | <pre class="mermaid"> |
| 19 | architecture-beta |
| 20 | service s3(logos:aws-s3)[Cloud Store] |
| 21 | service ec2(logos:aws-ec2)[Server] |
| 22 | service api(logos:aws-api-gateway)[Api Gateway] |
| 23 | service fa(fa:image)[Font Awesome Icon] |
| 24 | </pre> |
| 25 | |
| 26 | <script type="module"> |
| 27 | import mermaid from './mermaid.esm.mjs'; |
| 28 | mermaid.initialize({ |
| 29 | startOnLoad: false, |
| 30 | logLevel: 0, |
| 31 | }); |
| 32 | mermaid.registerIconPacks([ |
| 33 | { |
| 34 | name: 'logos', |
| 35 | loader: () => |
| 36 | fetch('https://unpkg.com/@iconify-json/logos/icons.json').then((res) => res.json()), |
| 37 | }, |
| 38 | { |
| 39 | name: 'fa', |
| 40 | loader: () => |
| 41 | fetch('https://unpkg.com/@iconify-json/fa6-regular/icons.json').then((res) => |
| 42 | res.json() |
| 43 | ), |
| 44 | }, |
| 45 | ]); |
| 46 | await mermaid.run(); |
| 47 | if (window.Cypress) { |
| 48 | window.rendered = true; |
| 49 | } |
| 50 | </script> |
| 51 | </body> |
| 52 | </html> |
| 53 | |