feat: erweitere Bisaya-Kursdidaktik um Unterstützung für Phase 5 und füge neue Übungen für Lektionen 44 und 45 hinzu
All checks were successful
Deploy to production / deploy (push) Successful in 32s
All checks were successful
Deploy to production / deploy (push) Successful in 32s
This commit is contained in:
@@ -6061,6 +6061,12 @@ function getExercisesForLesson(lesson) {
|
|||||||
return BISAYA_EXERCISES['Gefühlswortschatz & Reaktionen'];
|
return BISAYA_EXERCISES['Gefühlswortschatz & Reaktionen'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ([44, 45].includes(Number(lesson.lessonNumber))) {
|
||||||
|
return [
|
||||||
|
...(BISAYA_EXERCISES['Zahlen 1–20'] || []),
|
||||||
|
...(BISAYA_EXERCISES['Zahlen: Zehner'] || []).slice(1, 3)
|
||||||
|
];
|
||||||
|
}
|
||||||
const plannedTitle = BISAYA_LESSONS_24_43_BY_NUMBER[Number(lesson.lessonNumber)]?.title;
|
const plannedTitle = BISAYA_LESSONS_24_43_BY_NUMBER[Number(lesson.lessonNumber)]?.title;
|
||||||
if (plannedTitle && BISAYA_EXERCISES[plannedTitle]) {
|
if (plannedTitle && BISAYA_EXERCISES[plannedTitle]) {
|
||||||
return BISAYA_EXERCISES[plannedTitle];
|
return BISAYA_EXERCISES[plannedTitle];
|
||||||
@@ -6130,6 +6136,7 @@ async function createBisayaCourseContent() {
|
|||||||
|
|
||||||
for (const lesson of lessons) {
|
for (const lesson of lessons) {
|
||||||
const plannedLesson = BISAYA_LESSONS_24_43_BY_NUMBER[Number(lesson.lessonNumber)];
|
const plannedLesson = BISAYA_LESSONS_24_43_BY_NUMBER[Number(lesson.lessonNumber)];
|
||||||
|
const repairsReassignedNumbersLesson = [44, 45].includes(Number(lesson.lessonNumber));
|
||||||
if (plannedLesson) {
|
if (plannedLesson) {
|
||||||
await lesson.update({
|
await lesson.update({
|
||||||
title: plannedLesson.title,
|
title: plannedLesson.title,
|
||||||
@@ -6176,7 +6183,11 @@ async function createBisayaCourseContent() {
|
|||||||
if (
|
if (
|
||||||
existingCount > 0
|
existingCount > 0
|
||||||
&& !forceRebuildAll
|
&& !forceRebuildAll
|
||||||
&& (replacePlaceholders || SAFE_EXERCISE_UPDATE_TITLES.has(lesson.title))
|
&& (
|
||||||
|
replacePlaceholders
|
||||||
|
|| repairsReassignedNumbersLesson
|
||||||
|
|| SAFE_EXERCISE_UPDATE_TITLES.has(lesson.title)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
const lessonDidactics = getLessonDidactics(lesson);
|
const lessonDidactics = getLessonDidactics(lesson);
|
||||||
const mergedGrammarFocus = mergeGrammarFocusForLesson(
|
const mergedGrammarFocus = mergeGrammarFocusForLesson(
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
} from './bisaya-course-plan-24-43.js';
|
} from './bisaya-course-plan-24-43.js';
|
||||||
import { BISAYA_PHASE3_DIDACTICS } from './bisaya-course-phase3-extension.js';
|
import { BISAYA_PHASE3_DIDACTICS } from './bisaya-course-phase3-extension.js';
|
||||||
import { BISAYA_PHASE4_DIDACTICS } from './bisaya-course-phase4-extension.js';
|
import { BISAYA_PHASE4_DIDACTICS } from './bisaya-course-phase4-extension.js';
|
||||||
|
import { BISAYA_PHASE5_DIDACTICS } from './bisaya-course-phase5-extension.js';
|
||||||
|
|
||||||
/** Alte Kurstitel → aktueller Schlüssel in LESSON_DIDACTICS (bestehende Datenbanken). */
|
/** Alte Kurstitel → aktueller Schlüssel in LESSON_DIDACTICS (bestehende Datenbanken). */
|
||||||
export const LEGACY_DIDACTICS_TITLE_MAP = {
|
export const LEGACY_DIDACTICS_TITLE_MAP = {
|
||||||
@@ -499,7 +500,8 @@ export const LESSON_DIDACTICS = {
|
|||||||
...BISAYA_RELATIONSHIP_ANCHOR_DIDACTICS,
|
...BISAYA_RELATIONSHIP_ANCHOR_DIDACTICS,
|
||||||
...BISAYA_DIDACTICS_24_43,
|
...BISAYA_DIDACTICS_24_43,
|
||||||
...BISAYA_PHASE3_DIDACTICS,
|
...BISAYA_PHASE3_DIDACTICS,
|
||||||
...BISAYA_PHASE4_DIDACTICS
|
...BISAYA_PHASE4_DIDACTICS,
|
||||||
|
...BISAYA_PHASE5_DIDACTICS
|
||||||
};
|
};
|
||||||
|
|
||||||
function resolveDidacticsForLesson(lesson) {
|
function resolveDidacticsForLesson(lesson) {
|
||||||
|
|||||||
Reference in New Issue
Block a user