remove jquery all together

This commit is contained in:
Aaron Qian 2023-01-04 18:12:39 -08:00
parent b0f5b0b059
commit 8580a1f463
No known key found for this signature in database
GPG key ID: BF1A987C395B5B0E
61 changed files with 4113 additions and 684 deletions

View file

@ -1,3 +1,3 @@
if (process.env.FEATURE_FLOWCHART_MERMAID === '1') {
import('./mermaid');
if (process.env.FEATURE_FLOWCHART_MERMAID === '1') {
import('./mermaid')
}

View file

@ -1,7 +1,7 @@
import mermaid from 'mermaid';
import * as params from '@params';
import mermaid from 'mermaid'
import * as params from '@params'
const mermaidOptions = params.flowchart?.mermaid || {};
const options = Object.assign({}, mermaidOptions, { startOnLoad: true });
const mermaidOptions = params.flowchart?.mermaid || {}
const options = Object.assign({}, mermaidOptions, { startOnLoad: true })
mermaid.initialize(options);
mermaid.initialize(options)