chore(docs): keep root naming

This commit is contained in:
Elian Doran
2025-03-30 22:29:29 +03:00
parent 9c83738a16
commit dc31ea2333
167 changed files with 11020 additions and 1206 deletions

View File

@@ -0,0 +1,17 @@
module.exports = counts => {
const $statsTable = api.$container.find('.stats-table');
addRow('total', counts.reduce((acc, cur) => acc + cur.count, 0));
for (const count of counts) {
addRow(count.name, count.count);
}
function addRow(name, count) {
$statsTable.append(
$("<tr>")
.append($("<td>").text(name))
.append($("<td>").text(count))
);
}
}