Files
PicAnalysis/frontend
锦麟 王 813df6c738 feat: 完善图片上传和 OCR 处理功能
- 新增注册页面 (RegisterPage) 和设置页面 (SettingsPage)
- 实现多图片上传功能,支持 FormData 文件上传
- 添加 multer 中间件处理图片文件
- 实现 OCR 异步处理服务,自动触发文字识别
- 添加 OCR 处理状态轮询,显示处理进度
- 修复图片显示问题,拼接完整的后端 URL
- 添加图片重新处理 API (POST /api/images/:id/reprocess)
- 更新 Card 组件支持 extra 属性
- 创建 CLAUDE.md 项目文档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 18:18:27 +08:00
..
2026-02-22 20:10:11 +08:00
2026-02-22 20:10:11 +08:00
2026-02-22 20:10:11 +08:00
2026-02-22 20:10:11 +08:00
2026-02-22 20:10:11 +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...
    },
  },
])