Тесты и опросы: критерии оценки, génération ИИ, улучшения конструктора и прохождения

- lib/quizzes.js: система criterial-оценки (quiz_grade_scales/quiz_grade_ranges), подсчёт баллов, попытки, anon-опросы, системные поля, доступ по коду
- lib/quiz-grades.js: CRUD критериев оценки, диапазоны, картинки
- lib/quiz-ai.js: генерация черновика теста через ИИ
- server.js: роуты тестов, критериев, медиа-ассетов, попыток
- db/init.sql + db/migration.sql: таблицы quizzes*, валидация и индексы
- public/: конструктор, прохождение, публичная страница, список, критерии оценки
- quiz.selftest.js, quiz-ai.selftest.js: юнит-проверки
This commit is contained in:
dev
2026-12-02 18:19:18 +03:00
parent cb2621d848
commit 646d352a9e
20 changed files with 822 additions and 151 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
.qp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.qp-brand { font-size: .82rem; color: var(--muted); }
.qp-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.qp-cover { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 14px; }
.qp-cover { width: 100%; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 14px; }
.qp-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.qp-sub { color: var(--muted); font-size: .84rem; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.qp-desc { margin-top: 12px; font-size: .92rem; line-height: 1.65; overflow-wrap: anywhere; }