improve admin overview

This commit is contained in:
tdurieux
2026-05-11 12:07:36 +03:00
parent 03e18fd572
commit afd9f36cfb
6 changed files with 80 additions and 51 deletions
+1 -4
View File
@@ -1756,9 +1756,6 @@ angular
$scope.data = null;
$scope.loading = true;
$scope.error = null;
$scope.range = "24h";
$scope.setRange = function (r) { $scope.range = r; };
function humanBytes(b) {
if (b == null) return "—";
@@ -1869,7 +1866,7 @@ angular
$scope.error = null;
historyMaxes = {};
(r.data.history || []).forEach(function (d) {
["dailyPageViews", "dailyRepositories", "dailyUsers"].forEach(function (k) {
["dailyPageViews", "dailyRepositories", "dailyUsers", "nbUsers"].forEach(function (k) {
if (!historyMaxes[k] || d[k] > historyMaxes[k]) historyMaxes[k] = d[k];
});
});
+1 -1
View File
File diff suppressed because one or more lines are too long