add latest

This commit is contained in:
2022-09-30 13:44:43 +01:00
parent ed6b122eb8
commit 7a5a5e0e9d
9 changed files with 91 additions and 18 deletions

16
src/boot/mermaid.ts Normal file
View File

@@ -0,0 +1,16 @@
import { onMounted } from 'vue';
import mermaid from 'mermaid';
function initialiseMermaid() {
onMounted(() => {
mermaid.initialize({
startOnLoad: false,
logLevel: 'fatal',
securityLevel: 'loose',
theme: 'neutral',
flowchart: { htmlLabels: true }
});
});
}
export { mermaid, initialiseMermaid };