diff --git a/frontend/src/lib/labels.ts b/frontend/src/lib/labels.ts index 8c1a26a..43272c4 100644 --- a/frontend/src/lib/labels.ts +++ b/frontend/src/lib/labels.ts @@ -22,7 +22,7 @@ export type DomainKey = "global" | "domestic" | "live"; export const DOMAINS: { key: DomainKey; label: string; hint: string }[] = [ { key: "global", 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. diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.ts index de1468b..7850c95 100644 --- a/frontend/src/routeTree.gen.ts +++ b/frontend/src/routeTree.gen.ts @@ -1,141 +1,141 @@ -/* eslint-disable */ - -// @ts-nocheck - -// noinspection JSUnusedGlobalSymbols - -// This file was automatically generated by TanStack Router. -// You should NOT make any changes in this file as it will be overwritten. -// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. - -import { Route as rootRouteImport } from './routes/__root' -import { Route as RegisterRouteImport } from './routes/register' -import { Route as ProfileRouteImport } from './routes/profile' -import { Route as LoginRouteImport } from './routes/login' -import { Route as DashboardRouteImport } from './routes/dashboard' -import { Route as IndexRouteImport } from './routes/index' - -const RegisterRoute = RegisterRouteImport.update({ - id: '/register', - path: '/register', - getParentRoute: () => rootRouteImport, -} as any) -const ProfileRoute = ProfileRouteImport.update({ - id: '/profile', - path: '/profile', - getParentRoute: () => rootRouteImport, -} as any) -const LoginRoute = LoginRouteImport.update({ - id: '/login', - path: '/login', - getParentRoute: () => rootRouteImport, -} as any) -const DashboardRoute = DashboardRouteImport.update({ - id: '/dashboard', - path: '/dashboard', - getParentRoute: () => rootRouteImport, -} as any) -const IndexRoute = IndexRouteImport.update({ - id: '/', - path: '/', - getParentRoute: () => rootRouteImport, -} as any) - -export interface FileRoutesByFullPath { - '/': typeof IndexRoute - '/dashboard': typeof DashboardRoute - '/login': typeof LoginRoute - '/profile': typeof ProfileRoute - '/register': typeof RegisterRoute -} -export interface FileRoutesByTo { - '/': typeof IndexRoute - '/dashboard': typeof DashboardRoute - '/login': typeof LoginRoute - '/profile': typeof ProfileRoute - '/register': typeof RegisterRoute -} -export interface FileRoutesById { - __root__: typeof rootRouteImport - '/': typeof IndexRoute - '/dashboard': typeof DashboardRoute - '/login': typeof LoginRoute - '/profile': typeof ProfileRoute - '/register': typeof RegisterRoute -} -export interface FileRouteTypes { - fileRoutesByFullPath: FileRoutesByFullPath - fullPaths: '/' | '/dashboard' | '/login' | '/profile' | '/register' - fileRoutesByTo: FileRoutesByTo - to: '/' | '/dashboard' | '/login' | '/profile' | '/register' - id: '__root__' | '/' | '/dashboard' | '/login' | '/profile' | '/register' - fileRoutesById: FileRoutesById -} -export interface RootRouteChildren { - IndexRoute: typeof IndexRoute - DashboardRoute: typeof DashboardRoute - LoginRoute: typeof LoginRoute - ProfileRoute: typeof ProfileRoute - RegisterRoute: typeof RegisterRoute -} - -declare module '@tanstack/react-router' { - interface FileRoutesByPath { - '/register': { - id: '/register' - path: '/register' - fullPath: '/register' - preLoaderRoute: typeof RegisterRouteImport - parentRoute: typeof rootRouteImport - } - '/profile': { - id: '/profile' - path: '/profile' - fullPath: '/profile' - preLoaderRoute: typeof ProfileRouteImport - parentRoute: typeof rootRouteImport - } - '/login': { - id: '/login' - path: '/login' - fullPath: '/login' - preLoaderRoute: typeof LoginRouteImport - parentRoute: typeof rootRouteImport - } - '/dashboard': { - id: '/dashboard' - path: '/dashboard' - fullPath: '/dashboard' - preLoaderRoute: typeof DashboardRouteImport - parentRoute: typeof rootRouteImport - } - '/': { - id: '/' - path: '/' - fullPath: '/' - preLoaderRoute: typeof IndexRouteImport - parentRoute: typeof rootRouteImport - } - } -} - -const rootRouteChildren: RootRouteChildren = { - IndexRoute: IndexRoute, - DashboardRoute: DashboardRoute, - LoginRoute: LoginRoute, - ProfileRoute: ProfileRoute, - RegisterRoute: RegisterRoute, -} -export const routeTree = rootRouteImport - ._addFileChildren(rootRouteChildren) - ._addFileTypes() - -import type { getRouter } from './router.tsx' -import type { startInstance } from './start.ts' -declare module '@tanstack/react-start' { - interface Register { - ssr: true - router: Awaited> - config: Awaited> - } -} +/* eslint-disable */ + +// @ts-nocheck + +// noinspection JSUnusedGlobalSymbols + +// This file was automatically generated by TanStack Router. +// You should NOT make any changes in this file as it will be overwritten. +// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. + +import { Route as rootRouteImport } from './routes/__root' +import { Route as RegisterRouteImport } from './routes/register' +import { Route as ProfileRouteImport } from './routes/profile' +import { Route as LoginRouteImport } from './routes/login' +import { Route as DashboardRouteImport } from './routes/dashboard' +import { Route as IndexRouteImport } from './routes/index' + +const RegisterRoute = RegisterRouteImport.update({ + id: '/register', + path: '/register', + getParentRoute: () => rootRouteImport, +} as any) +const ProfileRoute = ProfileRouteImport.update({ + id: '/profile', + path: '/profile', + getParentRoute: () => rootRouteImport, +} as any) +const LoginRoute = LoginRouteImport.update({ + id: '/login', + path: '/login', + getParentRoute: () => rootRouteImport, +} as any) +const DashboardRoute = DashboardRouteImport.update({ + id: '/dashboard', + path: '/dashboard', + getParentRoute: () => rootRouteImport, +} as any) +const IndexRoute = IndexRouteImport.update({ + id: '/', + path: '/', + getParentRoute: () => rootRouteImport, +} as any) + +export interface FileRoutesByFullPath { + '/': typeof IndexRoute + '/dashboard': typeof DashboardRoute + '/login': typeof LoginRoute + '/profile': typeof ProfileRoute + '/register': typeof RegisterRoute +} +export interface FileRoutesByTo { + '/': typeof IndexRoute + '/dashboard': typeof DashboardRoute + '/login': typeof LoginRoute + '/profile': typeof ProfileRoute + '/register': typeof RegisterRoute +} +export interface FileRoutesById { + __root__: typeof rootRouteImport + '/': typeof IndexRoute + '/dashboard': typeof DashboardRoute + '/login': typeof LoginRoute + '/profile': typeof ProfileRoute + '/register': typeof RegisterRoute +} +export interface FileRouteTypes { + fileRoutesByFullPath: FileRoutesByFullPath + fullPaths: '/' | '/dashboard' | '/login' | '/profile' | '/register' + fileRoutesByTo: FileRoutesByTo + to: '/' | '/dashboard' | '/login' | '/profile' | '/register' + id: '__root__' | '/' | '/dashboard' | '/login' | '/profile' | '/register' + fileRoutesById: FileRoutesById +} +export interface RootRouteChildren { + IndexRoute: typeof IndexRoute + DashboardRoute: typeof DashboardRoute + LoginRoute: typeof LoginRoute + ProfileRoute: typeof ProfileRoute + RegisterRoute: typeof RegisterRoute +} + +declare module '@tanstack/react-router' { + interface FileRoutesByPath { + '/register': { + id: '/register' + path: '/register' + fullPath: '/register' + preLoaderRoute: typeof RegisterRouteImport + parentRoute: typeof rootRouteImport + } + '/profile': { + id: '/profile' + path: '/profile' + fullPath: '/profile' + preLoaderRoute: typeof ProfileRouteImport + parentRoute: typeof rootRouteImport + } + '/login': { + id: '/login' + path: '/login' + fullPath: '/login' + preLoaderRoute: typeof LoginRouteImport + parentRoute: typeof rootRouteImport + } + '/dashboard': { + id: '/dashboard' + path: '/dashboard' + fullPath: '/dashboard' + preLoaderRoute: typeof DashboardRouteImport + parentRoute: typeof rootRouteImport + } + '/': { + id: '/' + path: '/' + fullPath: '/' + preLoaderRoute: typeof IndexRouteImport + parentRoute: typeof rootRouteImport + } + } +} + +const rootRouteChildren: RootRouteChildren = { + IndexRoute: IndexRoute, + DashboardRoute: DashboardRoute, + LoginRoute: LoginRoute, + ProfileRoute: ProfileRoute, + RegisterRoute: RegisterRoute, +} +export const routeTree = rootRouteImport + ._addFileChildren(rootRouteChildren) + ._addFileTypes() + +import type { getRouter } from './router.tsx' +import type { startInstance } from './start.ts' +declare module '@tanstack/react-start' { + interface Register { + ssr: true + router: Awaited> + config: Awaited> + } +} diff --git a/frontend/src/routes/dashboard.tsx b/frontend/src/routes/dashboard.tsx index 4ad30bc..40e8554 100644 --- a/frontend/src/routes/dashboard.tsx +++ b/frontend/src/routes/dashboard.tsx @@ -1213,7 +1213,7 @@ function CommodityView() { 0} title="کامودیتی" - subtitle="قیمت لحظه‌ای جهانی از Yahoo Finance" + subtitle="قیمت لحظه‌ای بازارهای جهانی" badge="زنده" lastUpdate={lastUpdate} /> @@ -2460,7 +2460,7 @@ function CryptoView() { 0} title="کریپتو" - subtitle="بازار ارزهای دیجیتال — زنده از CoinGecko" + subtitle="بازار ارزهای دیجیتال — نرخ لحظه‌ای" badge="هر ۶۰ ثانیه" lastUpdate={data?.fetched_at ? new Date(data.fetched_at).toLocaleTimeString("fa-IR") : ""} /> @@ -2767,8 +2767,7 @@ function WorldEconomyView() { 0 || bonds.length > 0} title="اقتصاد جهانی و اوراق قرضه" - subtitle={subTab === "macro" ? "شاخص‌های کلانِ اقتصادهای بزرگ دنیا" : "بازار اوراق قرضه دولتی و خزانه‌داری — منبع TradingView"} - badge={subTab === "macro" ? "Trading Economics" : "TradingView Bonds"} + subtitle={subTab === "macro" ? "شاخص‌های کلانِ اقتصادهای بزرگ دنیا" : "بازار اوراق قرضه دولتی و خزانه‌داری"} lastUpdate={lastUpdate} />
diff --git a/frontend/src/routes/index.tsx b/frontend/src/routes/index.tsx index b1f05e0..3b61e33 100644 --- a/frontend/src/routes/index.tsx +++ b/frontend/src/routes/index.tsx @@ -399,7 +399,7 @@ function Landing() { } title="زنده" - desc="قیمت لحظه‌ای نفت، طلا، فلزات و کشاورزی از Yahoo Finance روی وب‌سوکت." + desc="قیمت لحظه‌ای نفت، طلا، فلزات و محصولات اساسی." meta="۲۰ کالا" />
@@ -455,7 +455,7 @@ function Landing() {