Widget: DevGuidelines: Difference between revisions
From LINKS Community Center
Cschwentker (talk | contribs) No edit summary |
Cschwentker (talk | contribs) No edit summary |
||
Line 220: | Line 220: | ||
<script> | <script> | ||
'use strict'; | 'use strict'; | ||
const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query); | const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query); | ||
Line 261: | Line 263: | ||
// TODO: apply Filters | // TODO: apply Filters | ||
} | } | ||
let COVERS_THEMATIC_VALUES = new Set(); | |||
let LANGUAGES_VALUES = new Set(); | |||
Promise.all([getGuidelines()]).then(data => { | Promise.all([getGuidelines()]).then(data => { | ||
const guidelines = data[0]; | const guidelines = data[0]; | ||
console.log( | for(const guideline of guidelines){ | ||
LANGAUGES_VALUES.add(guideline[PHASE_PROP]); | |||
COVERS_THEMATIC_VALUES.add(guideline[THEME_PROP]) | |||
} | |||
console.log(LANGUAGES.values()); | |||
const table = new Tabulator('#guideline-tabulator', { | const table = new Tabulator('#guideline-tabulator', { | ||
data: guidelines, | data: guidelines, |
Revision as of 15:21, 22 November 2022
Development version of the List of Guidelines.
Not ready for production!