Обновлены локализации для дней недели и месяцев, добавлены новые строки для выбора даты и существующих уроков. В компоненте формы уроков реализован календарь для выбора даты с учетом существующих лекций.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-03-26 23:41:05 +03:00
parent 32aad802b9
commit 8a66b96599
7 changed files with 271 additions and 55 deletions

View File

@@ -35,7 +35,7 @@ function readAndModifyJson(filePath) {
jsonContent.body.forEach((lesson) => {
// Случайная дата в пределах последних 3 месяцев
const randomDate = new Date();
randomDate.setMonth(randomDate.getMonth() - Math.random() * 3);
randomDate.setDate(randomDate.getDate() - Math.random() * 30);
lesson.date = randomDate.toISOString();
lesson.created = new Date(randomDate.getTime() - 86400000).toISOString(); // Создан за день до даты
});