mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Fix zenuml
This commit is contained in:
@@ -8,16 +8,17 @@ async function createServer() {
|
|||||||
const mermaidCtx = await context(
|
const mermaidCtx = await context(
|
||||||
getBuildConfig({ minify: false, core: false, entryName: 'mermaid' })
|
getBuildConfig({ minify: false, core: false, entryName: 'mermaid' })
|
||||||
);
|
);
|
||||||
mermaidCtx.watch();
|
|
||||||
const externalCtx = await context(
|
const externalCtx = await context(
|
||||||
getBuildConfig({ minify: false, core: false, entryName: 'mermaid-example-diagram' })
|
getBuildConfig({ minify: false, core: false, entryName: 'mermaid-example-diagram' })
|
||||||
);
|
);
|
||||||
externalCtx.watch();
|
|
||||||
const zenuml = await context(
|
const zenuml = await context(
|
||||||
getBuildConfig({ minify: false, core: false, entryName: 'mermaid-zenuml' })
|
getBuildConfig({ minify: false, core: false, entryName: 'mermaid-zenuml' })
|
||||||
);
|
);
|
||||||
// TODO: zenuml
|
|
||||||
|
mermaidCtx.watch();
|
||||||
|
externalCtx.watch();
|
||||||
zenuml.watch();
|
zenuml.watch();
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
app.use(express.static('./packages/mermaid/dist'));
|
app.use(express.static('./packages/mermaid/dist'));
|
||||||
app.use(express.static('./packages/mermaid-zenuml/dist'));
|
app.use(express.static('./packages/mermaid-zenuml/dist'));
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import mermaid from './mermaid.esm.mjs';
|
import mermaid from './mermaid.esm.mjs';
|
||||||
import externalExample from './mermaid-example-diagram.core.mjs';
|
import externalExample from './mermaid-example-diagram.esm.mjs';
|
||||||
import zenUml from './mermaid-zenuml.core.mjs';
|
import zenUml from './mermaid-zenuml.esm.mjs';
|
||||||
|
|
||||||
function b64ToUtf8(str) {
|
function b64ToUtf8(str) {
|
||||||
return decodeURIComponent(escape(window.atob(str)));
|
return decodeURIComponent(escape(window.atob(str)));
|
||||||
|
Reference in New Issue
Block a user