From 74598abcfb4476f2104c477833d33e839da9f28c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=A4=9A=E5=AE=8F=E5=85=89?= <542672041@qq.com>
Date: Fri, 23 Jan 2026 18:03:38 +0800
Subject: [PATCH] Initial project setup with React, Vite, and Tailwind CSS.
Added core application files including routing, components, and mock data.
Configured package.json, .gitignore, and build settings. Included README for
deployment instructions.
---
.gitignore | 24 +
App.tsx | 21 +
README.md | 20 +
README_DEPLOY.md | 117 ++
components/Logo.tsx | 12 +
components/Sidebar.tsx | 125 ++
components/StockChart.tsx | 127 ++
data/mockData.ts | 112 ++
index.html | 12 +
index.tsx | 16 +
metadata.json | 5 +
package-lock.json | 3225 +++++++++++++++++++++++++++++++++++++
package.json | 29 +
pages/DashboardPage.tsx | 861 ++++++++++
pages/DetailPage.tsx | 232 +++
pages/SearchPage.tsx | 110 ++
postcss.config.js | 6 +
src/index.css | 35 +
tailwind.config.js | 29 +
tsconfig.json | 29 +
types.ts | 20 +
vite.config.ts | 24 +
22 files changed, 5191 insertions(+)
create mode 100644 .gitignore
create mode 100644 App.tsx
create mode 100644 README_DEPLOY.md
create mode 100644 components/Logo.tsx
create mode 100644 components/Sidebar.tsx
create mode 100644 components/StockChart.tsx
create mode 100644 data/mockData.ts
create mode 100644 index.html
create mode 100644 index.tsx
create mode 100644 metadata.json
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 pages/DashboardPage.tsx
create mode 100644 pages/DetailPage.tsx
create mode 100644 pages/SearchPage.tsx
create mode 100644 postcss.config.js
create mode 100644 src/index.css
create mode 100644 tailwind.config.js
create mode 100644 tsconfig.json
create mode 100644 types.ts
create mode 100644 vite.config.ts
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a547bf3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,24 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
diff --git a/App.tsx b/App.tsx
new file mode 100644
index 0000000..bf8d272
--- /dev/null
+++ b/App.tsx
@@ -0,0 +1,21 @@
+import React from 'react';
+import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
+import { SearchPage } from './pages/SearchPage';
+import { DashboardPage } from './pages/DashboardPage';
+import { DetailPage } from './pages/DetailPage';
+
+const App: React.FC = () => {
+ return (
+