mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 02:01:37 +00:00
NPM Deps: Updated package versions
Fixed SCSS if deprecations Fixed new eslint detected issues
This commit is contained in:
Generated
+887
-1187
File diff suppressed because it is too large
Load Diff
+13
-13
@@ -18,45 +18,45 @@
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@lezer/generator": "^1.8.0",
|
||||
"@types/markdown-it": "^14.1.2",
|
||||
"@types/sortablejs": "^1.15.9",
|
||||
"chokidar-cli": "^3.0",
|
||||
"esbuild": "^0.27.0",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"esbuild": "^0.27.3",
|
||||
"eslint": "^10.0.2",
|
||||
"globals": "^17.4.0",
|
||||
"jest": "^30.2.0",
|
||||
"jest-environment-jsdom": "^30.2.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"sass": "^1.94.2",
|
||||
"ts-jest": "^29.4.5",
|
||||
"sass": "^1.97.3",
|
||||
"ts-jest": "^29.4.6",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "5.9.*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/commands": "^6.10.0",
|
||||
"@codemirror/commands": "^6.10.2",
|
||||
"@codemirror/lang-css": "^6.3.1",
|
||||
"@codemirror/lang-html": "^6.4.11",
|
||||
"@codemirror/lang-javascript": "^6.2.4",
|
||||
"@codemirror/lang-javascript": "^6.2.5",
|
||||
"@codemirror/lang-json": "^6.0.2",
|
||||
"@codemirror/lang-markdown": "^6.5.0",
|
||||
"@codemirror/lang-php": "^6.0.2",
|
||||
"@codemirror/lang-xml": "^6.1.0",
|
||||
"@codemirror/language": "^6.11.3",
|
||||
"@codemirror/language": "^6.12.2",
|
||||
"@codemirror/legacy-modes": "^6.5.2",
|
||||
"@codemirror/state": "^6.5.2",
|
||||
"@codemirror/state": "^6.5.4",
|
||||
"@codemirror/theme-one-dark": "^6.1.3",
|
||||
"@codemirror/view": "^6.38.8",
|
||||
"@codemirror/view": "^6.39.16",
|
||||
"@lezer/highlight": "^1.2.3",
|
||||
"@ssddanbrown/codemirror-lang-smarty": "^1.0.0",
|
||||
"@ssddanbrown/codemirror-lang-twig": "^1.0.0",
|
||||
"@types/jest": "^30.0.0",
|
||||
"codemirror": "^6.0.2",
|
||||
"idb-keyval": "^6.2.2",
|
||||
"markdown-it": "^14.1.0",
|
||||
"markdown-it": "^14.1.1",
|
||||
"markdown-it-task-lists": "^2.1.1",
|
||||
"snabbdom": "^3.6.3",
|
||||
"sortablejs": "^1.15.6"
|
||||
"sortablejs": "^1.15.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ async function updateContent(pngData) {
|
||||
});
|
||||
} catch (err) {
|
||||
handleUploadError(err);
|
||||
throw new Error(`Failed to save image with error: ${err}`);
|
||||
throw new Error(`Failed to save image with error: ${err}`, {cause: err});
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ async function updateContent(pngData) {
|
||||
} catch (err) {
|
||||
pageEditor.dom.remove(wrapId);
|
||||
handleUploadError(err);
|
||||
throw new Error(`Failed to save image with error: ${err}`);
|
||||
throw new Error(`Failed to save image with error: ${err}`, {cause: err});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,9 +35,17 @@
|
||||
|
||||
// Define a property for both light and dark mode
|
||||
@mixin lightDark($prop, $light, $dark, $important: false) {
|
||||
#{$prop}: if($important, $light !important, $light);
|
||||
@if($important) {
|
||||
#{$prop}: $light !important;
|
||||
} @else {
|
||||
#{$prop}: $light;
|
||||
}
|
||||
html.dark-mode & {
|
||||
#{$prop}: if($important, $dark !important, $dark);
|
||||
@if($important) {
|
||||
#{$prop}: $dark !important;
|
||||
} @else {
|
||||
#{$prop}: $dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user