fix broken build process

This commit is contained in:
Alphons Joseph
2025-02-06 21:17:26 +08:00
parent e4d5f7fd3f
commit 5fde2a3660
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -49,7 +49,13 @@
"url": "^0.11.4" "url": "^0.11.4"
}, },
"dependencies": { "dependencies": {
"@codemirror/autocomplete": "^6.18.4",
"@codemirror/commands": "^6.8.0",
"@codemirror/lang-css": "^6.3.0", "@codemirror/lang-css": "^6.3.0",
"@codemirror/language": "^6.10.8",
"@codemirror/search": "^6.5.8",
"@codemirror/state": "^6.5.2",
"@codemirror/view": "^6.36.2",
"@sveltejs/vite-plugin-svelte": "^4.0.0", "@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/forms": "^0.5.9", "@tailwindcss/forms": "^0.5.9",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.4",
+2
View File
@@ -742,6 +742,7 @@ async function LoadPageElements(): Promise<void> {
className: 'notice', className: 'notice',
}, handleNotices); }, handleNotices);
if (settingsState.assessmentsAverage) { if (settingsState.assessmentsAverage) {
eventManager.register('assessmentsAdded', { eventManager.register('assessmentsAdded', {
elementType: 'div', elementType: 'div',
@@ -752,6 +753,7 @@ async function LoadPageElements(): Promise<void> {
await handleSublink(sublink); await handleSublink(sublink);
} }
async function handleNotices(node: Element): Promise<void> { async function handleNotices(node: Element): Promise<void> {
if (!(node instanceof HTMLElement)) return; if (!(node instanceof HTMLElement)) return;
if (!settingsState.animations) return; if (!settingsState.animations) return;