Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
const imageUrlResponse = await fetch(imageUrlQuery).then(response => response.json()); | const imageUrlResponse = await fetch(imageUrlQuery).then(response => response.json()); | ||
return Object.getOwnPropertyNames(imageUrlResponse.query.pages).map(page => ({ | return Object.getOwnPropertyNames(imageUrlResponse.query.pages).map(page => ({ | ||
title: imageUrlResponse.query.pages[ | title: imageUrlResponse.query.pages[page].title, | ||
url: imageUrlResponse.query.pages[ | url: imageUrlResponse.query.pages[page].imageinfo[0].url | ||
})); | })); | ||
} | } |
Revision as of 14:14, 2 June 2022
Development verstion of the DCT List.
Not ready for production!