Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 153: Line 153:
         const dctResponse = await fetch(dctQueryUrl).then(response => response.json());
         const dctResponse = await fetch(dctQueryUrl).then(response => response.json());


         console.log(dctResponse)
         // console.log(dctResponse)


         const results = dctResponse.query.results;
         const results = dctResponse.query.results;
         const dctList = Object.getOwnPropertyNames(results).map(dctKey => {
         const dctList = Object.getOwnPropertyNames(results).map(dctKey => {
             /** @type {DCT} */
             /** @type {DCT} */
             const dct = {};
             const dct = {};
Line 173: Line 174:


             return dct;
             return dct;
         })
         });


         return dctList;
         return dctList;

Revision as of 16:16, 9 June 2022

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