Widget: DevGuidelines: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Cschwentker (talk | contribs)
No edit summary
Cschwentker (talk | contribs)
No edit summary
Line 268: Line 268:
             const guidelines = data[0];
             const guidelines = data[0];


             let COVERS_THEMATIC_VALUES = new Set();
             let COVERS_THEMATIC_VALUES = [];
             let LANGUAGES_VALUES = new Set();
             let LANGUAGES_VALUES = [];


             for(const guideline of guidelines){
             for(const guideline of guidelines){
                 LANGAUGES_VALUES.add(guideline[PHASE_PROP]);
 
                 COVERS_THEMATIC_VALUES.add(guideline[THEME_PROP])
                 LANGUAGES_VALUES.push(guideline[PHASE_PROP]);
                 COVERS_THEMATIC_VALUES.push(guideline[THEME_PROP])
             }
             }


             console.log(LANGUAGES.values());
             LANGUAGES_VALUES = LANGUAGES_VALUES.filter((v, i, a) => a.indexOf(v) === i);
 
            console.log(LANGUAGES_VALUES);


             const table = new Tabulator('#guideline-tabulator', {
             const table = new Tabulator('#guideline-tabulator', {

Revision as of 15:34, 22 November 2022

Development version of the List of Guidelines.
Not ready for production!