mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
chore: cleanup
This commit is contained in:
parent
3e3de72093
commit
66bc844cc9
@ -54,9 +54,6 @@ export const addDetector = (
|
|||||||
loader: DiagramLoader | null
|
loader: DiagramLoader | null
|
||||||
) => {
|
) => {
|
||||||
detectors[key] = { detector, loader };
|
detectors[key] = { detector, loader };
|
||||||
// TODO: Remove
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log(detectors);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getDiagramLoader = (key: string) => detectors[key].loader;
|
export const getDiagramLoader = (key: string) => detectors[key].loader;
|
||||||
|
@ -58,9 +58,6 @@ const init = async function (
|
|||||||
if (typeof conf.extraDiagrams !== 'undefined' && conf.extraDiagrams.length > 0) {
|
if (typeof conf.extraDiagrams !== 'undefined' && conf.extraDiagrams.length > 0) {
|
||||||
// config.extraDiagrams.forEach(async (diagram: string) => {
|
// config.extraDiagrams.forEach(async (diagram: string) => {
|
||||||
const { id, detector, loadDiagram } = await import(conf.extraDiagrams[0]);
|
const { id, detector, loadDiagram } = await import(conf.extraDiagrams[0]);
|
||||||
// TODO: Remove
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log(id, detector, loadDiagram);
|
|
||||||
addDetector(id, detector, loadDiagram);
|
addDetector(id, detector, loadDiagram);
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user