Go to file
sladro f2fc55f60b refactor: 编码规范违规修复 - 文件清理和硬编码消除
## 修复内容

### 文件清理和去重
- 删除未使用的CADConnectionGrid.vue组件 (440行,未被引用)
- 合并api.js配置到cad.js,统一配置管理
- 删除未使用的counter.js Pinia模板文件

### 硬编码问题修复
- 提取CSS中的硬编码颜色值到theme.css变量系统
- 替换所有#F44336、#2A5CAA、#ffffff等硬编码颜色
- 新增特殊颜色变量:--color-text-orange、--color-text-red、--color-text-blue

### 魔术数字消除
- 在OpenedModelsTable.vue中提取时间计算常量
- 替换60 * 60 * 1000等魔术数字为命名常量
- 建立TIME_CONSTANTS配置对象统一管理时间相关数值

### 配置统一化
- 整合CAD软件端口和API端点配置
- 将元数据(图标、描述、功能特性)与API配置合并
- 消除配置文件间的重复定义

## 修复成果
-  ESLint检查无错误无警告
-  开发服务器运行正常,热重载功能完整
-  所有现有UI和功能保持不变
-  目录大小符合规范:所有目录≤8个文件
-  配置集中化管理,修改更便捷

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 11:15:30 +08:00
.claude Fix CAD configuration and restore to 6 software 2025-09-16 10:52:20 +08:00
.vscode initial commit 2025-09-15 16:17:05 +08:00
config Fix CAD configuration and restore to 6 software 2025-09-16 10:52:20 +08:00
docs Fix CAD configuration and restore to 6 software 2025-09-16 10:52:20 +08:00
public Add CSS theme system 2025-09-15 17:38:13 +08:00
src refactor: 编码规范违规修复 - 文件清理和硬编码消除 2025-09-16 11:15:30 +08:00
.editorconfig initial commit 2025-09-15 16:17:05 +08:00
.gitattributes initial commit 2025-09-15 16:17:05 +08:00
.gitignore initial commit 2025-09-15 16:17:05 +08:00
CLAUDE.md refactor: 编码规范违规修复 - 文件清理和硬编码消除 2025-09-16 11:15:30 +08:00
index.html Add CSS theme system 2025-09-15 17:38:13 +08:00
jsconfig.json initial commit 2025-09-15 16:17:05 +08:00
package-lock.json initial commit 2025-09-15 16:17:05 +08:00
package.json Fix CAD configuration and restore to 6 software 2025-09-16 10:52:20 +08:00

.

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint