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} - @@ -52,7 +50,7 @@ {exam.examTypeFull} {exam.groups} - diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 83e5488..23e3923 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -8,13 +8,11 @@ if (data.workflow && data.workflow.length > 0) { for (let i = 0; i < data.workflow.length; i++) { - console.log(data.workflow[i]); const step = data.workflow[i]; if (highestDone == step.number - 1 && step.done) { highestDone = step.number; } } - console.log(`Highest Done = ${highestDone}`); } diff --git a/src/routes/api/addConstraints/+server.js b/src/routes/api/addConstraints/+server.js index 11f4cdc..ac97ac7 100644 --- a/src/routes/api/addConstraints/+server.js +++ b/src/routes/api/addConstraints/+server.js @@ -18,7 +18,6 @@ export async function POST({ request }) { ancode, constraints: constraints }; - console.log('adding constraints', variables); const data = await gqlrequest(env.PLEXAMS_SERVER, mutation, variables); diff --git a/src/routes/calendar/+page.svelte b/src/routes/calendar/+page.svelte index a03bd7d..9e76210 100644 --- a/src/routes/calendar/+page.svelte +++ b/src/routes/calendar/+page.svelte @@ -1,5 +1,4 @@
diff --git a/src/routes/exam/kdp/+page.svelte b/src/routes/exam/kdp/+page.svelte index b953f29..96b77d8 100644 --- a/src/routes/exam/kdp/+page.svelte +++ b/src/routes/exam/kdp/+page.svelte @@ -7,7 +7,6 @@ exam.constraints.roomConstraints && (exam.constraints.roomConstraints.exahm || exam.constraints.roomConstraints.seb) ); - console.log('exams', exams);
diff --git a/src/routes/nta/[mtknr=string]/+page.svelte b/src/routes/nta/[mtknr=string]/+page.svelte index dafd0c0..c7217cb 100644 --- a/src/routes/nta/[mtknr=string]/+page.svelte +++ b/src/routes/nta/[mtknr=string]/+page.svelte @@ -1,6 +1,5 @@ diff --git a/src/routes/nta/ntaWithRegs/+page.server.js b/src/routes/nta/ntaWithRegs/+page.server.js index 10e9bc7..8f66662 100644 --- a/src/routes/nta/ntaWithRegs/+page.server.js +++ b/src/routes/nta/ntaWithRegs/+page.server.js @@ -66,9 +66,7 @@ export async function load({ params }) { } `; - const roomData = await request(env.PLEXAMS_SERVER, roomQuery).catch((e) => { - (e) => console.log(e); - }); + const roomData = await request(env.PLEXAMS_SERVER, roomQuery); if ( roomData != null && diff --git a/src/routes/plan/exams/+page.server.js b/src/routes/plan/exams/+page.server.js index f0ba9d8..bacc68b 100644 --- a/src/routes/plan/exams/+page.server.js +++ b/src/routes/plan/exams/+page.server.js @@ -140,15 +140,12 @@ export async function load({ params }) { } if (semesterConfig.forbiddenSlots) { - console.log('forbiddenSlots', semesterConfig.forbiddenSlots); for (let slot of semesterConfig.forbiddenSlots) { const key = `${slot.dayNumber},${slot.slotNumber}`; globalSlotStatus.set(key, 'forbidden'); } } - console.log('globalSlotStatus', globalSlotStatus); - return { semesterConfig: semesterData.semesterConfig, examsWithoutSlot: data.examsWithoutSlot, diff --git a/src/routes/plan/exams/+page.svelte b/src/routes/plan/exams/+page.svelte index 5152257..6aeff97 100644 --- a/src/routes/plan/exams/+page.svelte +++ b/src/routes/plan/exams/+page.svelte @@ -238,9 +238,6 @@ function globalForbiddenSlot(day, time) { const key = `${day},${time}`; - console.log('globalForbiddenSlot', day, time, key); - console.log('globalForbiddenSlot Zugriff', data.globalSlotStatus.get(key)); - console.log('globalForbiddenSlot all', data.globalSlotStatus); if (data.globalSlotStatus.get(key) === 'forbidden') { return 'bg-gray-400'; }