feat(cefr): dual mistake ingestion, 1-tap options breakdown, and 260 curated questions

This commit is contained in:
2026-10-06 15:57:07 +03:00
parent a00b330f74
commit a2eb26ced5
7 changed files with 1277 additions and 95 deletions
+13
View File
@@ -247,6 +247,19 @@ export const api = {
});
if (resp.ok) return await resp.json();
throw new Error(`Failed to reset level: ${resp.status}`);
},
async addWord(level, term, contextSentence = '') {
const resp = await fetch('/api/cefr/add-word', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
level: level,
term: term,
context_sentence: contextSentence
})
});
if (resp.ok) return await resp.json();
throw new Error(`Failed to add word: ${resp.status}`);
}
},