@dpuse/dpuse-development 0.3.577 → 0.3.579
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5927,9 +5927,9 @@ async function rr(e) {
|
|
|
5927
5927
|
let r = n > 0 ? t.rendered / n * 100 : 0;
|
|
5928
5928
|
i.push(`| ${er}${e} | ${or(r)} |`);
|
|
5929
5929
|
let o = [...a.entries()].sort((e, t) => t[1].rendered - e[1].rendered);
|
|
5930
|
-
for (let [e,
|
|
5931
|
-
let r =
|
|
5932
|
-
i.push(`| ${er}${er}${e} | ${or(r,
|
|
5930
|
+
for (let [e, t] of o) {
|
|
5931
|
+
let r = n > 0 ? t.rendered / n * 100 : 0;
|
|
5932
|
+
i.push(`| ${er}${er}${e} | ${or(r, "▒")} |`);
|
|
5933
5933
|
}
|
|
5934
5934
|
}
|
|
5935
5935
|
}
|
|
@@ -5965,9 +5965,9 @@ function ar(e) {
|
|
|
5965
5965
|
}
|
|
5966
5966
|
return t;
|
|
5967
5967
|
}
|
|
5968
|
-
function or(e, t =
|
|
5969
|
-
let n = Math.round(e / 100 * tr)
|
|
5970
|
-
return t
|
|
5968
|
+
function or(e, t = "█") {
|
|
5969
|
+
let n = Math.round(e / 100 * tr);
|
|
5970
|
+
return `${t.repeat(n)}${"░".repeat(tr - n)} ${e.toFixed(1)}%`;
|
|
5971
5971
|
}
|
|
5972
5972
|
function sr(e) {
|
|
5973
5973
|
let t = e.startsWith("/") ? e.slice(1) : e;
|