chore(deps): update pre-commit hook pre-commit/mirrors-prettier to v3 (stable) (#2614)

* chore(deps): update pre-commit hook pre-commit/mirrors-prettier to v3

* style: format code using prettier v3.0.0

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
renovate[bot] 2023-07-06 21:39:05 +02:00 committed by GitHub
parent 74737cf3c4
commit 8c5512cd73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 374 additions and 374 deletions

View file

@ -36,7 +36,7 @@ function generatePartitions(partitions) {
spaceUsedGb,
totalSpaceGb,
percUsed,
percUsed
percUsed,
);
var tr = $(row);
lastElement.after(tr);
@ -71,12 +71,12 @@ function success(data, textStatus, jqXHR) {
$(children[2]).text(
sprintf(
"%(days)sd %(hours)sh %(minutes)sm %(seconds)ss",
convertSecondsToDaysHoursMinutesSeconds(s.uptime_seconds)
)
convertSecondsToDaysHoursMinutesSeconds(s.uptime_seconds),
),
);
$(children[3]).text(s.cpu_perc);
$(children[4]).text(
sprintf("%01.1fMB (%s)", parseInt(s.memory_kb) / 1000, s.memory_perc)
sprintf("%01.1fMB (%s)", parseInt(s.memory_kb) / 1000, s.memory_perc),
);
}
}
@ -92,7 +92,7 @@ function updateStatus(getDiskInfo) {
$.getJSON(
baseUrl + "api/status/format/json/diskinfo/" + getDiskInfo,
null,
success
success,
);
}