Go to file
sladro 2c2002d261 refactor: 全面优化编码规范并修复连接状态检查
## 主要改进

### 🎨 编码规范统一化
- 消除硬编码颜色值,统一使用CSS变量系统
- 替换所有rgba硬编码为预定义的主题变量
- 统一通知duration配置,从配置文件读取

### 🐛 连接状态检查修复
- 修复Creo模型分析页面未检查连接状态的bug
- 添加checkCreoConnection()函数验证连接状态
- 未连接时显示友好的警告提示

### 📝 调试输出管理
- 创建统一Logger工具类管理所有console输出
- 替换apiClient.js和websocketService.js中的console调用
- 实现开发/生产环境的日志级别控制

### 🔧 配置管理优化
- 修复组件中硬编码的duration值
- 新增SUCCESS_LONG_DURATION配置项
- 确保所有配置统一从config/cad.js读取

### 📚 开发文档
- 更新CSS_THEME_GUIDE.md主题使用指南
- 添加统一Logger工具类文档

## 技术细节
- 影响文件: 24个核心文件
- 新增工具: src/utils/logger.js
- 配置优化: 通知时长统一管理
- 主题变量: 完全消除硬编码颜色值

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 10:30:06 +08:00
.claude feat: 实现薄壳化分析结果页面完整功能系统 2025-09-17 09:50:02 +08:00
.vscode initial commit 2025-09-15 16:17:05 +08:00
config fix: 修复build后刷新页面空白问题 2025-09-21 11:07:31 +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-25 10:30:06 +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 feat: 实现几何复杂度分析完整功能 2025-09-18 11:43:31 +08:00
CSS_THEME_GUIDE.md refactor: 全面优化编码规范并修复连接状态检查 2025-09-25 10:30:06 +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 feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统 2025-09-16 15:03:41 +08:00
package.json feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统 2025-09-16 15:03:41 +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