in wiki-interface/lib/api/v1.js [31:58]
async function getUsOptions(projectId) {
/* Loading Wiki data */
let wikiList = await gitlabOperator.listWiki(projectId);
let options = [];
/* Sorting Data */
wikiList = wikiList.sort(function (a, b) {
let x = a.title.toLowerCase();
let y = b.title.toLowerCase();
if (x > y) { return 1; }
if (x < y) { return -1; }
return 0;
});
for (let thisWiki of wikiList) {
if (!thisWiki.title.includes(configFile.getGeneratorsufix()) && !thisWiki.title.includes(configFile.getCypresssufix()) &&
!thisWiki.title.includes(configFile.getPlaywrightsufix()) && !thisWiki.title.includes(configFile.getEvaluatorsufix())) {
let thisOption = {
value: thisWiki.slug,
label: thisWiki.title
}
options.push(thisOption);
}
}
return options;
}