xiaozhou233 9ce0c5704a refactor: 重构路由、统一 MorePage 样式并清理冗余
- 新增零依赖路由器 (src/router):路由表 + useSyncExternalStore hook + Link 组件

- 抽出 HomePage,document.title 改由路由表驱动

- MorePage 改用 Tailwind 并复用 Header/Footer,移除 more.css

- 清理未使用依赖 (clsx/tailwind-merge/cva/tw-animate-css)、utils.ts、空 icons 目录、未用的 shadcn 主题变量及重复背景图
2026-10-05 19:10:47 +08:00
2026-06-13 15:29:50 +08:00
2026-06-13 15:29:50 +08:00
2026-06-13 15:29:50 +08:00
2026-06-13 15:29:50 +08:00
2026-06-13 15:29:50 +08:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])
S
Description
No description provided
Readme
1.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 35.4%
TypeScript 31.7%
HTML 21.2%
CSS 10.7%
Dockerfile 1%