build: compile dist/ [auto]

This commit is contained in:
github-actions[bot]
2026-04-04 02:52:13 +00:00
parent 5e5c950c3a
commit d9b1a3daae
50 changed files with 211 additions and 106 deletions

View File

@@ -1,10 +1,11 @@
import { formatBytes } from '../../memory.js';
import { label, getQuotaColor, quotaBar, RESET } from '../colors.js';
import { getAdaptiveBarWidth } from '../../utils/terminal.js';
import { formatBytes } from "../../memory.js";
import { label, getQuotaColor, quotaBar, RESET } from "../colors.js";
import { getAdaptiveBarWidth } from "../../utils/terminal.js";
import { t } from "../../i18n/index.js";
export function renderMemoryLine(ctx) {
const display = ctx.config?.display;
const colors = ctx.config?.colors;
if (ctx.config?.lineLayout !== 'expanded') {
if (ctx.config?.lineLayout !== "expanded") {
return null;
}
if (display?.showMemoryUsage !== true) {
@@ -13,7 +14,7 @@ export function renderMemoryLine(ctx) {
if (!ctx.memoryUsage) {
return null;
}
const memoryLabel = label('Approx RAM', colors);
const memoryLabel = label(t("label.approxRam"), colors);
const percentColor = getQuotaColor(ctx.memoryUsage.usedPercent, colors);
const percent = `${percentColor}${ctx.memoryUsage.usedPercent}%${RESET}`;
const bar = quotaBar(ctx.memoryUsage.usedPercent, getAdaptiveBarWidth(), colors);