Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 321: | Line 321: | ||
const functionsQueryResponse = await fetch(getQueryUrl(functionsQuery)).then(response => response.json()); | const functionsQueryResponse = await fetch(getQueryUrl(functionsQuery)).then(response => response.json()); | ||
console.log('results', functionsQueryResponse.query.results) | |||
const functionsSortOrder = Object.keys(fnImages); | const functionsSortOrder = Object.keys(fnImages); | ||
Object.keys(functionsQueryResponse.query.results) | Object.keys(functionsQueryResponse.query.results) | ||
.sort((keyA, keyB) => functionsSortOrder.indexOf(keyA) - functionsSortOrder.indexOf(keyB)) | .sort((keyA, keyB) => functionsSortOrder.indexOf(keyA) - functionsSortOrder.indexOf(keyB)) | ||
.forEach(key => { | .forEach(key => { |
Revision as of 15:29, 16 November 2022
Development verstion of the DCT List.
Not ready for production!