Difference between revisions of "Widget:DevGuidelines"
From LINKS Community Center
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[ | + | 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); | ||
− | |||
− | |||
− | |||
const table = new Tabulator('#guideline-tabulator', { | const table = new Tabulator('#guideline-tabulator', { |
Revision as of 16:39, 22 November 2022
Development version of the List of Guidelines.
Not ready for production!