feat(exam-prep F10): план по дате экзамена — виджет на дашборде + модалка + GET/PUT/DELETE /plan

This commit is contained in:
Maxim Dolgolyov
2026-05-29 11:17:28 +03:00
parent a4be2ecba0
commit c590c32b41
4 changed files with 388 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@
getDashboard: (examKey) => LS.api(`${base(examKey)}/dashboard`),
getPlan: (examKey) => LS.api(`${base(examKey)}/plan`),
savePlan: (examKey, body) => LS.api(`${base(examKey)}/plan`, { method: 'PUT', body }),
deletePlan: (examKey) => LS.api(`${base(examKey)}/plan`, { method: 'DELETE' }),
saveAttempt: (body) => LS.api(`/api/exam-prep/attempts`, { method: 'POST', body }),
startMock: (examKey, body) => LS.api(`${base(examKey)}/mock/start`, { method: 'POST', body }),
mockAnswer: (mockId, body) => LS.api(`/api/exam-prep/mock/${mockId}/answer`, { method: 'POST', body }),