Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
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[pageId].title,
+
                 title: imageUrlResponse.query.pages[page].title,
                 url: imageUrlResponse.query.pages[pageId].imageinfo[0].url
+
                 url: imageUrlResponse.query.pages[page].imageinfo[0].url
 
             }));
 
             }));
 
         }
 
         }

Revision as of 15:14, 2 June 2022

Development verstion of the DCT List.
Not ready for production!