User:Chlod/Scripts/Deputy.js: Difference between revisions

Content deleted Content added
(bot/CD)
(bot/CD)
Line 351:
 
var version = "0.8.0";
var gitAbbrevHash = "d46aa10208f52b";
var gitBranch = "main";
var gitDate = "Mon, 8 Jul 2024 0203:5104:1412 +0800";
var gitVersion = "0.8.0+gd46aa10g208f52b";
 
/**
Line 2,988:
DeputyResources.root = {
type: 'url',
url: new URL('https://zoomiebottools-static.toolforgewmflabs.org/deputy/')
};
 
Line 3,652:
displayOptions: { type: 'text' },
alwaysSave: true
}),
resortRows: new Setting({
defaultValue: true,
displayOptions: { type: 'checkbox' }
})
};
Line 4,337 ⟶ 4,341:
amenableparser: true
});
// Sort fromthe mostrows bytes(if torearranging least.is enabled)
const sortOrder = ContributionSurveyRow.guessSortOrder(revisionData.values());
if (window.deputy.wikiConfig.cci.resortRows.get()) {
// Sort from most bytes to least.
return this.diffs const sortOrder = new MapContributionSurveyRow.guessSortOrder([...revisionData.entriesvalues()].sort(ContributionSurveyRow.getSorterFunction(sortOrder, 'value')));
return this.diffs = new Map([...revisionData.entries()].sort(ContributionSurveyRow.getSorterFunction(sortOrder, 'value')));
}
else {
return this.diffs = new Map([...revisionData.entries()]);
}
});
}