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 267: Line 267:
         Promise.all([getGuidelines()]).then(data => {
         Promise.all([getGuidelines()]).then(data => {
             const guidelines = data[0];
             const guidelines = data[0];
            console.log(guidelines);


             let COVERS_THEMATIC_VALUES = [];
             let COVERS_THEMATIC_VALUES = [];
Line 273: Line 274:
             for(const guideline of guidelines){
             for(const guideline of guidelines){


                 LANGUAGES_VALUES.concat(guideline[PHASE_PROP]);
                 LANGUAGES_VALUES.concat(guideline[LANG_PROP]);
                 COVERS_THEMATIC_VALUES.concat(guideline[THEME_PROP])
                 COVERS_THEMATIC_VALUES.concat(guideline[THEME_PROP])
             }
             }
            const unique=  LANGUAGES_VALUES.filter((value, index, self) => self.indexOf(value) === index)
            console.log(LANGUAGES_VALUES);
            console.log(unique);


            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:39, 22 November 2022

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