chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:39:12 +08:00
commit d8dcd5f6d1
8604 changed files with 2479390 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import React from "react";
import { Box, Text } from "ink";
export function ProgressBar({ value = 0, max = 100, width = 20, color = "green" }) {
const pct = Math.min(1, Math.max(0, value / max));
const filled = Math.round(pct * width);
const empty = width - filled;
return (
<Box>
<Text color={color}>{"█".repeat(filled)}</Text>
<Text dimColor>{"░".repeat(empty)}</Text>
<Text> {Math.round(pct * 100)}%</Text>
</Box>
);
}