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 ( -