fix: page styling, search page
This commit is contained in:
parent
ee8ac6fd85
commit
2db955bd7b
8 changed files with 54 additions and 34 deletions
|
|
@ -59,17 +59,13 @@ function initExpress() {
|
|||
await Lemma.find({ relations: { word_forms: { lect: true } } })
|
||||
).filter((e) => {
|
||||
for (const wf of e.word_forms) {
|
||||
if (wf.word_form.includes(search_term)) {
|
||||
return true;
|
||||
}
|
||||
return wf.word_form.includes(search_term);
|
||||
}
|
||||
});
|
||||
|
||||
const lects = await Lect.find();
|
||||
res.status(200).send({
|
||||
terms: lemmas.length,
|
||||
results: lemmas,
|
||||
lects: lects,
|
||||
results: lemmas
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -101,6 +97,8 @@ function initExpress() {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
//todo: redo this without using google sheets; instead, use a local CSV or like.
|
||||
/**
|
||||
* @param auth The authenticated Google OAuth client.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue