mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
feat(mindmap): enable node-menu (closes #723)
This commit is contained in:
parent
12c97c10a1
commit
fdcc69591b
9
package-lock.json
generated
9
package-lock.json
generated
@ -14,6 +14,7 @@
|
||||
"@excalidraw/excalidraw": "0.17.6",
|
||||
"@highlightjs/cdn-assets": "11.10.0",
|
||||
"@mermaid-js/layout-elk": "0.1.7",
|
||||
"@mind-elixir/node-menu": "1.0.3",
|
||||
"archiver": "7.0.1",
|
||||
"async-mutex": "0.5.0",
|
||||
"autocomplete.js": "0.38.1",
|
||||
@ -3224,6 +3225,14 @@
|
||||
"langium": "3.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@mind-elixir/node-menu": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@mind-elixir/node-menu/-/node-menu-1.0.3.tgz",
|
||||
"integrity": "sha512-iRGl280bja8CDevceHaxlpagIJnGS7oNrzfYdzwWgq4AMUq+pTEZWWHmEma1d/VG+UOB0jT3XrLLWZT9Tz+y0g==",
|
||||
"peerDependencies": {
|
||||
"mind-elixir": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@mixmark-io/domino": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@mixmark-io/domino/-/domino-2.2.0.tgz",
|
||||
|
@ -56,6 +56,7 @@
|
||||
"@excalidraw/excalidraw": "0.17.6",
|
||||
"@highlightjs/cdn-assets": "11.10.0",
|
||||
"@mermaid-js/layout-elk": "0.1.7",
|
||||
"@mind-elixir/node-menu": "1.0.3",
|
||||
"archiver": "7.0.1",
|
||||
"async-mutex": "0.5.0",
|
||||
"autocomplete.js": "0.38.1",
|
||||
|
@ -96,7 +96,11 @@ const I18NEXT = {
|
||||
|
||||
const MIND_ELIXIR = {
|
||||
js: [
|
||||
"node_modules/mind-elixir/dist/MindElixir.iife.js"
|
||||
"node_modules/mind-elixir/dist/MindElixir.iife.js",
|
||||
"node_modules/@mind-elixir/node-menu/dist/node-menu.umd.cjs"
|
||||
],
|
||||
css: [
|
||||
"node_modules/@mind-elixir/node-menu/dist/style.css"
|
||||
]
|
||||
};
|
||||
|
||||
|
@ -76,6 +76,7 @@ export default class MindMapWidget extends TypeWidget {
|
||||
el: this.$content[0],
|
||||
direction: MindElixir.LEFT
|
||||
});
|
||||
mind.install(window["@mind-elixir/node-menu"]);
|
||||
|
||||
this.mind = mind;
|
||||
mind.init(MindElixir.new());
|
||||
|
@ -102,6 +102,7 @@ function register(app: express.Application) {
|
||||
app.use(`/${assetPath}/node_modules/codemirror/keymap/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/codemirror/keymap/')));
|
||||
|
||||
app.use(`/${assetPath}/node_modules/mind-elixir/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/mind-elixir/dist/")));
|
||||
app.use(`/${assetPath}/node_modules/@mind-elixir/node-menu/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/@mind-elixir/node-menu/dist/")));
|
||||
app.use(`/${assetPath}/node_modules/@highlightjs/cdn-assets/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/@highlightjs/cdn-assets/")));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user