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 178: Line 178:
                 {
                 {
                     [DESC_KEY]: functionCategory.printouts[DESC_KEY][0],
                     [DESC_KEY]: functionCategory.printouts[DESC_KEY][0],
                     [FUNC_KEY]: functionCategory.printouts[FUNC_KEY].map(subfunction => removePrefix(subfunction.fulltext))
                     [FUNC_KEY]: functionCategory.printouts[FUNC_KEY].map(func => removePrefix(func.fulltext))
                 }
                 }
             );
             );
Line 218: Line 218:
         });
         });


         return [dctList, functionsData];
         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 [dcts, functions] = data[1];
         const {dcts, funcData} = data[1];


         console.log(functions)
         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!