Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 178: | Line 178: | ||
{ | { | ||
[DESC_KEY]: functionCategory.printouts[DESC_KEY][0], | [DESC_KEY]: functionCategory.printouts[DESC_KEY][0], | ||
[FUNC_KEY]: functionCategory.printouts[FUNC_KEY].map( | [FUNC_KEY]: functionCategory.printouts[FUNC_KEY].map(func => removePrefix(func.fulltext)) | ||
} | } | ||
); | ); | ||
Line 218: | Line 218: | ||
}); | }); | ||
return | return { dcts: dctList, funcData: functionsData }; | ||
} | } | ||
Line 267: | Line 267: | ||
Promise.all([getSources(), getDcts()]).then(data => { | Promise.all([getSources(), getDcts()]).then(data => { | ||
const dataSources = data[0]; | const dataSources = data[0]; | ||
const | const {dcts, funcData} = data[1]; | ||
console.log( | console.log(funcData) | ||
// The keys of this object must match function category names EXACTLY. | // The keys of this object must match function category names EXACTLY. |
Revision as of 09:02, 6 September 2022
Development verstion of the DCT List.
Not ready for production!