Laservall_solidworks_inject/bom-ui
Ling b2ca9a46dd 新增 BOM 管理服务端 API 与前端集成支持
本次提交主要内容如下:

- 新增基于 HttpListener 的本地 BOM 服务端,支持 SPA 前端页面、BOM 数据流、导出、保存、设置等接口,并实现路由、鉴权、心跳监控、端口自动分配。
- 增加 BOM 数据提供接口及 SolidWorks COM API 交互实现,支持属性读写、装配结构解析、批量保存。
- 新增服务端数据传输 DTO、各类 API Handler、静态文件处理、STA 线程调度器。
- 新增 WPF 列配置窗口、进度窗口、BOM 视图模型,支持列配置、批量操作、进度反馈等 UI 功能。
- 优化整体前后端交互与用户体验,提升 BOM 管理系统功能性与扩展性。
2026-03-20 09:33:27 +08:00
..
src 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
.gitignore 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
README.md 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
eslint.config.js 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
index.html 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
package-lock.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
package.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
tsconfig.app.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
tsconfig.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
tsconfig.node.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
vite.config.ts 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00

README.md

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...
    },
  },
])