From dc8a1ddacce64b9e20854d2974dde6cc3bfa2cde Mon Sep 17 00:00:00 2001 From: SiteAgent Bot Date: Wed, 21 Jan 2026 12:14:11 +0800 Subject: [PATCH] manual save(2026-01-21 12:14) --- eslint.config.js | 1 + index.html | 5 +- src/App.tsx | 32 ++- src/components/Footer.tsx | 64 +++++- src/components/Header.tsx | 119 +++++++++- src/data/policies.ts | 403 ++++++++++++++++++++++++++++++++++ src/pages/Categories.tsx | 94 +------- src/pages/CategoryDetail.tsx | 148 +------------ src/pages/CountryView.tsx | 191 ++++++++++++++++ src/pages/Home.tsx | 278 +++++++++++++++-------- src/pages/PlaceholderPage.tsx | 26 +++ src/pages/PolicyDetail.tsx | 212 ++++++++++++++++++ src/pages/PolicyHub.tsx | 238 ++++++++++++++++++++ src/pages/PostDetail.tsx | 158 +------------ 14 files changed, 1460 insertions(+), 509 deletions(-) create mode 100644 src/data/policies.ts create mode 100644 src/pages/CountryView.tsx create mode 100644 src/pages/PlaceholderPage.tsx create mode 100644 src/pages/PolicyDetail.tsx create mode 100644 src/pages/PolicyHub.tsx diff --git a/eslint.config.js b/eslint.config.js index 5e6b472..c50124b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,6 +9,7 @@ export default defineConfig([ globalIgnores(['dist']), { files: ['**/*.{ts,tsx}'], + ignores: ['src/clientsdk/**/*.ts'], extends: [ js.configs.recommended, tseslint.configs.recommended, diff --git a/index.html b/index.html index 9958f76..12e1f27 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,11 @@ - + - react-template + PolicyRadar | 全球政策监测与决策支持 +
diff --git a/src/App.tsx b/src/App.tsx index 257538e..2cbec5d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,17 +1,35 @@ -import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' +import { BrowserRouter as Router, Navigate, Route, Routes } from 'react-router-dom' import { Home } from './pages/Home' -import { PostDetail } from './pages/PostDetail' -import { CategoriesPage } from './pages/Categories' -import { CategoryDetail } from './pages/CategoryDetail' +import { PolicyHub } from './pages/PolicyHub' +import { CountryView } from './pages/CountryView' +import { PolicyDetail } from './pages/PolicyDetail' +import { PlaceholderPage } from './pages/PlaceholderPage' function App() { return ( } /> - } /> - } /> - } /> + } /> + } /> + } /> + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + } /> + } /> + } /> + + } /> ) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index fffde69..ff183d3 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -2,12 +2,64 @@ import React from 'react' export const Footer: React.FC = () => { return ( -