Version 2.3

- Display total repository disk usage instead of gists
- (classic) removed gists display
- Add new plugins "posts"
This commit is contained in:
lowlighter
2020-11-02 22:35:09 +01:00
parent 883a671e0f
commit e24d2d8482
17 changed files with 347 additions and 172 deletions

View File

@@ -32,6 +32,9 @@
computed.licenses.used[repository.licenseInfo.spdxId] = (computed.licenses.used[repository.licenseInfo.spdxId] || 0) + 1
}
//Total disk usage
computed.diskUsage = `${imports.bytes(data.user.repositories.totalDiskUsage*1000)}`
//Compute licenses stats
computed.licenses.favorite = Object.entries(computed.licenses.used).sort(([an, a], [bn, b]) => b - a).slice(0, 1).map(([name, value]) => name) || ""