mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
load mermaid from node_modules
This commit is contained in:
parent
0e4c49ea5b
commit
edf2dfe8f9
1641
libraries/mermaid.min.js
vendored
1641
libraries/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
1670
package-lock.json
generated
1670
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -77,6 +77,7 @@
|
||||
"jsdom": "22.1.0",
|
||||
"katex": "0.16.9",
|
||||
"marked": "9.1.6",
|
||||
"mermaid": "^10.6.1",
|
||||
"mime-types": "2.1.35",
|
||||
"multer": "1.4.5-lts.1",
|
||||
"node-abi": "3.51.0",
|
||||
|
@ -55,7 +55,7 @@ const FORCE_GRAPH = {
|
||||
};
|
||||
|
||||
const MERMAID = {
|
||||
js: [ "libraries/mermaid.min.js" ]
|
||||
js: [ "node_modules/mermaid/dist/mermaid.min.js" ]
|
||||
}
|
||||
|
||||
const EXCALIDRAW = {
|
||||
|
@ -54,6 +54,8 @@ function register(app) {
|
||||
|
||||
app.use(`/${assetPath}/node_modules/boxicons/css/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/boxicons/css/')));
|
||||
app.use(`/${assetPath}/node_modules/boxicons/fonts/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/boxicons/fonts/')));
|
||||
|
||||
app.use(`/${assetPath}/node_modules/mermaid/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/mermaid/dist/')));
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user