feat: implement ScanTerminalDashboard with modular components and backend integration for Polymarket data collection

This commit is contained in:
2569718930@qq.com
2026-04-25 03:26:28 +08:00
parent b614778f13
commit 0e5a1f2652
8 changed files with 753 additions and 68 deletions
@@ -1195,17 +1195,6 @@ export function ProbabilityDistribution({
const probability = Math.round(
Number(row.probability || 0) * 100,
);
const rowMarketBucket = row.marketBucket;
const rowMarketPrice =
rowMarketBucket?.yes_buy ??
rowMarketBucket?.market_price ??
null;
const yesPriceText = toPriceCents(rowMarketPrice);
const marketTagFinal = rowMarketBucket
? locale === "en-US"
? `YES ask: ${yesPriceText || "--"}`
: `YES 买价: ${yesPriceText || "--"}`
: null;
return (
<div key={`${row.key || index}`} className="prob-row">
@@ -1218,16 +1207,6 @@ export function ProbabilityDistribution({
{probability}%
</div>
</div>
{marketTagFinal && (
<div
className={clsx(
"prob-market-inline",
rowMarketBucket ? "yes" : "no",
)}
>
{marketTagFinal}
</div>
)}
</div>
);
})