Fundamental_Analysis/frontend
Lv, Qi abe47c4bc8 refactor(report): switch to HTML+Gotenberg for high-quality PDF export
- Feat: Add Gotenberg service to docker-compose for headless PDF rendering
- Feat: Implement /generate-pdf endpoint in report-generator-service
- Feat: Add PDF generation proxy route in api-gateway
- Refactor(frontend): Rewrite PDFExportButton to generate HTML with embedded styles and images
- Feat(frontend): Auto-crop React Flow screenshots to remove whitespace
- Style: Optimize report print layout with CSS (margins, image sizing)
- Chore: Remove legacy react-pdf code and font files
2025-11-30 22:43:22 +08:00
..
archive Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
public refactor(report): switch to HTML+Gotenberg for high-quality PDF export 2025-11-30 22:43:22 +08:00
scripts WIP: Commit all pending changes across services, frontend, and docs 2025-11-27 02:45:56 +08:00
src refactor(report): switch to HTML+Gotenberg for high-quality PDF export 2025-11-30 22:43:22 +08:00
.gitignore Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
components.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
Dockerfile feat: implement API DTO export and verify E2E tests 2025-11-22 22:14:01 +08:00
eslint.config.js Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
index.html Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
package-lock.json refactor(report): switch to HTML+Gotenberg for high-quality PDF export 2025-11-30 22:43:22 +08:00
package.json refactor(report): switch to HTML+Gotenberg for high-quality PDF export 2025-11-30 22:43:22 +08:00
postcss.config.js Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
README.md Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tailwind.config.js Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tsconfig.app.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tsconfig.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tsconfig.node.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
vite.config.ts refactor(report): switch to HTML+Gotenberg for high-quality PDF export 2025-11-30 22:43:22 +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...
    },
  },
])