style: remove all external data source labels and badges from UI
This commit is contained in:
parent
334ea1a3de
commit
a6e4593b01
|
|
@ -22,7 +22,7 @@ export type DomainKey = "global" | "domestic" | "live";
|
||||||
export const DOMAINS: { key: DomainKey; label: string; hint: string }[] = [
|
export const DOMAINS: { key: DomainKey; label: string; hint: string }[] = [
|
||||||
{ key: "global", label: "بازار جهانی", hint: "فلزات و کامودیتی با تاریخچه و مقایسه" },
|
{ key: "global", label: "بازار جهانی", hint: "فلزات و کامودیتی با تاریخچه و مقایسه" },
|
||||||
{ key: "domestic", label: "بازار داخلی", hint: "ارز، سکه و طلا — زنده" },
|
{ key: "domestic", label: "بازار داخلی", hint: "ارز، سکه و طلا — زنده" },
|
||||||
{ key: "live", label: "زنده", hint: "کامودیتی لحظهای — Yahoo Finance" },
|
{ key: "live", label: "زنده", hint: "کامودیتی و بازارهای جهانی" },
|
||||||
];
|
];
|
||||||
|
|
||||||
// Category (sub-group) names from /api/tree, translated to Persian.
|
// Category (sub-group) names from /api/tree, translated to Persian.
|
||||||
|
|
|
||||||
|
|
@ -1213,7 +1213,7 @@ function CommodityView() {
|
||||||
<ViewHeader
|
<ViewHeader
|
||||||
live={rows.length > 0}
|
live={rows.length > 0}
|
||||||
title="کامودیتی"
|
title="کامودیتی"
|
||||||
subtitle="قیمت لحظهای جهانی از Yahoo Finance"
|
subtitle="قیمت لحظهای بازارهای جهانی"
|
||||||
badge="زنده"
|
badge="زنده"
|
||||||
lastUpdate={lastUpdate}
|
lastUpdate={lastUpdate}
|
||||||
/>
|
/>
|
||||||
|
|
@ -2460,7 +2460,7 @@ function CryptoView() {
|
||||||
<ViewHeader
|
<ViewHeader
|
||||||
live={coins.length > 0}
|
live={coins.length > 0}
|
||||||
title="کریپتو"
|
title="کریپتو"
|
||||||
subtitle="بازار ارزهای دیجیتال — زنده از CoinGecko"
|
subtitle="بازار ارزهای دیجیتال — نرخ لحظهای"
|
||||||
badge="هر ۶۰ ثانیه"
|
badge="هر ۶۰ ثانیه"
|
||||||
lastUpdate={data?.fetched_at ? new Date(data.fetched_at).toLocaleTimeString("fa-IR") : ""}
|
lastUpdate={data?.fetched_at ? new Date(data.fetched_at).toLocaleTimeString("fa-IR") : ""}
|
||||||
/>
|
/>
|
||||||
|
|
@ -2767,8 +2767,7 @@ function WorldEconomyView() {
|
||||||
<ViewHeader
|
<ViewHeader
|
||||||
live={rows.length > 0 || bonds.length > 0}
|
live={rows.length > 0 || bonds.length > 0}
|
||||||
title="اقتصاد جهانی و اوراق قرضه"
|
title="اقتصاد جهانی و اوراق قرضه"
|
||||||
subtitle={subTab === "macro" ? "شاخصهای کلانِ اقتصادهای بزرگ دنیا" : "بازار اوراق قرضه دولتی و خزانهداری — منبع TradingView"}
|
subtitle={subTab === "macro" ? "شاخصهای کلانِ اقتصادهای بزرگ دنیا" : "بازار اوراق قرضه دولتی و خزانهداری"}
|
||||||
badge={subTab === "macro" ? "Trading Economics" : "TradingView Bonds"}
|
|
||||||
lastUpdate={lastUpdate}
|
lastUpdate={lastUpdate}
|
||||||
/>
|
/>
|
||||||
<div className="flex items-center gap-1 bg-secondary/70 border border-border rounded-lg p-1 w-fit self-start sm:self-auto">
|
<div className="flex items-center gap-1 bg-secondary/70 border border-border rounded-lg p-1 w-fit self-start sm:self-auto">
|
||||||
|
|
|
||||||
|
|
@ -399,7 +399,7 @@ function Landing() {
|
||||||
<DomainRow
|
<DomainRow
|
||||||
icon={<Zap className="w-5 h-5" />}
|
icon={<Zap className="w-5 h-5" />}
|
||||||
title="زنده"
|
title="زنده"
|
||||||
desc="قیمت لحظهای نفت، طلا، فلزات و کشاورزی از Yahoo Finance روی وبسوکت."
|
desc="قیمت لحظهای نفت، طلا، فلزات و محصولات اساسی."
|
||||||
meta="۲۰ کالا"
|
meta="۲۰ کالا"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -455,7 +455,7 @@ function Landing() {
|
||||||
<footer className="border-t border-border">
|
<footer className="border-t border-border">
|
||||||
<div className="mx-auto max-w-6xl px-5 py-8 flex flex-wrap items-center justify-between gap-3 text-sm text-muted-foreground">
|
<div className="mx-auto max-w-6xl px-5 py-8 flex flex-wrap items-center justify-between gap-3 text-sm text-muted-foreground">
|
||||||
<span>سامانه جامع آمار و اطلاعات دیدوان</span>
|
<span>سامانه جامع آمار و اطلاعات دیدوان</span>
|
||||||
<span className="font-mono text-[11px]">دادهها: Yahoo Finance · Trading Economics</span>
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue