diff --git a/package-lock.json b/package-lock.json index be256cb..2d0bfef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,10 +28,11 @@ "postcss": "^8.5.3", "prettier-plugin-svelte": "^3.3.3", "svelte": "^5.28.2", - "svelte-check": "^4.1.6", + "svelte-check": "^4.2.1", "svelte-preprocess": "^6.0.3", "tailwindcss": "^4.1.4", "theme-change": "^2.5.0", + "tslib": "^2.8.1", "typescript": "^5.8.3", "vite": "^5.4.18" } @@ -2635,9 +2636,9 @@ } }, "node_modules/svelte-check": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.6.tgz", - "integrity": "sha512-P7w/6tdSfk3zEVvfsgrp3h3DFC75jCdZjTQvgGJtjPORs1n7/v2VMPIoty3PWv7jnfEm3x0G/p9wH4pecTb0Wg==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.2.1.tgz", + "integrity": "sha512-e49SU1RStvQhoipkQ/aonDhHnG3qxHSBtNfBRb9pxVXoa+N7qybAo32KgA9wEb2PCYFNaDg7bZCdhLD1vHpdYA==", "dev": true, "license": "MIT", "dependencies": { @@ -2787,6 +2788,13 @@ "node": ">=6" } }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" + }, "node_modules/typescript": { "version": "5.8.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", diff --git a/package.json b/package.json index 2d262fd..921350b 100644 --- a/package.json +++ b/package.json @@ -24,17 +24,18 @@ "@sveltejs/adapter-node": "^5.2.12", "@sveltejs/kit": "^2.20.7", "@sveltejs/vite-plugin-svelte": "^4.0.4", - "@tailwindcss/typography": "^0.5.16", "@tailwindcss/postcss": "^4.1.4", + "@tailwindcss/typography": "^0.5.16", "autoprefixer": "^10.4.21", "daisyui": "^5.0.28", "postcss": "^8.5.3", "prettier-plugin-svelte": "^3.3.3", "svelte": "^5.28.2", - "svelte-check": "^4.1.6", + "svelte-check": "^4.2.1", "svelte-preprocess": "^6.0.3", "tailwindcss": "^4.1.4", "theme-change": "^2.5.0", + "tslib": "^2.8.1", "typescript": "^5.8.3", "vite": "^5.4.18" }, diff --git a/src/lib/exam/ExamWithNTAsForRoomPlanning.svelte b/src/lib/exam/ExamWithNTAsForRoomPlanning.svelte index 1ccd551..9e0c74a 100644 --- a/src/lib/exam/ExamWithNTAsForRoomPlanning.svelte +++ b/src/lib/exam/ExamWithNTAsForRoomPlanning.svelte @@ -67,7 +67,6 @@ // } // }); // let data = await response.json(); - // // console.log(data.plannedExamsInSlot); // allowedRoomsUnfiltered = data.roomsForSlot; // } @@ -94,9 +93,7 @@ // async function addRoom(nta) { // if (nta) { - // console.log(`für NTA ${nta} einplanen`); // } else { - // console.log('als normalen Prüfungsraum einplanen'); // const response = await fetch('/api/rooms/addRoomToExam', { // method: 'POST', diff --git a/src/lib/examGroups/SlotExamGroup.svelte b/src/lib/examGroups/SlotExamGroup.svelte index a2d4c43..f93a811 100644 --- a/src/lib/examGroups/SlotExamGroup.svelte +++ b/src/lib/examGroups/SlotExamGroup.svelte @@ -77,7 +77,6 @@ (exam.constraints && exam.constraints.roomConstraints && exam.constraints.roomConstraints.seb); - // console.log(exam.constraints); } $: { diff --git a/src/lib/invigilator/InvigilationSlotPlanning.svelte b/src/lib/invigilator/InvigilationSlotPlanning.svelte index eb93570..2bef14c 100644 --- a/src/lib/invigilator/InvigilationSlotPlanning.svelte +++ b/src/lib/invigilator/InvigilationSlotPlanning.svelte @@ -12,8 +12,6 @@ let loading = true; async function fetchSlot(day, time) { - // console.log(`...fetching Slot (${day}, ${time})`); - const response = await fetch('/api/plan/roomsWithInvigilationsForSlot', { method: 'POST', body: JSON.stringify({ day, time }), @@ -22,7 +20,6 @@ } }); let data = await response.json(); - // console.log(data.roomsWithInvigilationsForSlot); slot = data.roomsWithInvigilationsForSlot; noRooms = !slot || !slot.roomsWithInvigilators || slot.roomsWithInvigilators.length == 0; loading = false; diff --git a/src/lib/invigilator/InvigilatorsForDay.svelte b/src/lib/invigilator/InvigilatorsForDay.svelte index 8e8c848..1652985 100644 --- a/src/lib/invigilator/InvigilatorsForDay.svelte +++ b/src/lib/invigilator/InvigilatorsForDay.svelte @@ -18,7 +18,6 @@ } }); let data = await response.json(); - // console.log(data); want = data.invigilatorsForDay.want; can = data.invigilatorsForDay.can.sort(function (invig1, invig2) { return ( diff --git a/src/lib/slot/ExamsForRoomPlanning.svelte b/src/lib/slot/ExamsForRoomPlanning.svelte index 8f1737c..8d7c236 100644 --- a/src/lib/slot/ExamsForRoomPlanning.svelte +++ b/src/lib/slot/ExamsForRoomPlanning.svelte @@ -18,7 +18,6 @@ } }); let data = await response.json(); - // console.log(data.plannedExamsInSlot); examsInSlot = data.examsInSlot; } diff --git a/src/lib/slot/ExamsWithNTAs.svelte b/src/lib/slot/ExamsWithNTAs.svelte index 4f62f89..a031b1b 100644 --- a/src/lib/slot/ExamsWithNTAs.svelte +++ b/src/lib/slot/ExamsWithNTAs.svelte @@ -17,7 +17,6 @@ } }); let data = await response.json(); - // console.log(data.plannedExamsInSlot); examsWithNTAs = data.plannedExamsInSlot; } diff --git a/src/lib/slot/PreSlot.svelte b/src/lib/slot/PreSlot.svelte index 805f89d..3dc79d9 100644 --- a/src/lib/slot/PreSlot.svelte +++ b/src/lib/slot/PreSlot.svelte @@ -32,7 +32,6 @@ }); let data = await response.json(); exams = data.preExamsInSlot; - console.log('exams', exams); } let exahm = []; diff --git a/src/lib/zpa/ExamsZpaTable.svelte b/src/lib/zpa/ExamsZpaTable.svelte index 0ce73ee..2a39c9e 100644 --- a/src/lib/zpa/ExamsZpaTable.svelte +++ b/src/lib/zpa/ExamsZpaTable.svelte @@ -39,7 +39,6 @@ } async function addExam(ancode) { - console.log(`${ancode} wird hinzugefügt.`); await fetch('/api/zpaexams/addToPlan', { method: 'POST', body: JSON.stringify({ ancode }), @@ -50,7 +49,6 @@ location.reload(); } async function rmExam(ancode) { - console.log(`${ancode} wird entfernt.`); await fetch('/api/zpaexams/rmFromPlan', { method: 'POST', body: JSON.stringify({ ancode }), diff --git a/src/lib/zpa/ExamsZpaTableUnknown.svelte b/src/lib/zpa/ExamsZpaTableUnknown.svelte index caa2268..8119d21 100644 --- a/src/lib/zpa/ExamsZpaTableUnknown.svelte +++ b/src/lib/zpa/ExamsZpaTableUnknown.svelte @@ -2,7 +2,6 @@ export let exams; async function addExam(ancode) { - console.log(`${ancode} wird hinzugefügt.`); await fetch('/api/zpaexams/addToPlan', { method: 'POST', body: JSON.stringify({ ancode, unknown: true }), @@ -13,7 +12,6 @@ location.reload(); } async function rmExam(ancode) { - console.log(`${ancode} wird entfernt.`); await fetch('/api/zpaexams/rmFromPlan', { method: 'POST', body: JSON.stringify({ ancode, unknown: true }), @@ -42,7 +40,7 @@ {#each exams as exam}