refactor(server): remove dependency on codemirror

This commit is contained in:
Elian Doran 2025-05-12 18:07:50 +03:00
parent 17194806db
commit 36009307d1
No known key found for this signature in database
2 changed files with 0 additions and 7 deletions

View File

@ -44,7 +44,6 @@
"@types/xml2js": "0.4.14", "@types/xml2js": "0.4.14",
"autocomplete.js": "0.38.1", "autocomplete.js": "0.38.1",
"boxicons": "2.1.4", "boxicons": "2.1.4",
"codemirror": "5.65.19",
"express-http-proxy": "2.1.1", "express-http-proxy": "2.1.1",
"jquery": "3.7.1", "jquery": "3.7.1",
"katex": "0.16.22", "katex": "0.16.22",

View File

@ -91,12 +91,6 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery.fancytree/dist/"))); app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery.fancytree/dist/")));
// CodeMirror
app.use(`/${assetPath}/node_modules/codemirror/lib/`, persistentCacheStatic(path.join(nodeModulesDir, "codemirror/lib/")));
app.use(`/${assetPath}/node_modules/codemirror/addon/`, persistentCacheStatic(path.join(nodeModulesDir, "codemirror/addon/")));
app.use(`/${assetPath}/node_modules/codemirror/mode/`, persistentCacheStatic(path.join(nodeModulesDir, "codemirror/mode/")));
app.use(`/${assetPath}/node_modules/codemirror/keymap/`, persistentCacheStatic(path.join(nodeModulesDir, "codemirror/keymap/")));
app.use(`/${assetPath}/node_modules/@highlightjs/cdn-assets/`, persistentCacheStatic(path.join(nodeModulesDir, "@highlightjs/cdn-assets/"))); app.use(`/${assetPath}/node_modules/@highlightjs/cdn-assets/`, persistentCacheStatic(path.join(nodeModulesDir, "@highlightjs/cdn-assets/")));
} }