cherry-studio/src/renderer
Phantom 107c01913d
feat: error boundary (#9462)
* build: 添加 react-error-boundary 依赖

添加 react-error-boundary 包以增强 React 应用的错误处理能力

* feat(组件): 添加ErrorBoundary组件用于错误边界处理

* feat(home): 为HomeTabs和Chat组件添加错误边界处理

* refactor(ErrorBoundary): 移除多余的ErrorContainer包装并优化结构

* feat(ErrorBoundary): 添加重新加载按钮并优化错误边界样式

添加重新加载功能按钮,方便用户快速恢复应用
调整错误边界容器的布局样式,使其居中显示

* style(ErrorBoundary): 移除ErrorContainer的固定高度以改善布局灵活性

* test(ErrorBoundary): 添加测试错误边界组件的功能按钮

添加一个用于测试错误边界组件功能的按钮组件,该按钮点击后会抛出错误以验证错误边界是否正常工作。此组件仅用于测试,合并前需要删除。

* feat(路由): 为路由组件添加错误边界处理

在Router组件中包裹ErrorBoundary以捕获并处理子组件中的错误

* fix(ErrorBoundary): 修复错误边界中翻译键的拼写错误

* feat(i18n): 添加边界错误处理和主题不存在错误的多语言支持

* refactor(ErrorBoundary): 移除用于测试的ThrowError组件
2025-08-24 18:49:14 +08:00
..
src feat: error boundary (#9462) 2025-08-24 18:49:14 +08:00
index.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
miniWindow.html feat: Use different window name for Quick Assistant (#9217) 2025-08-16 11:21:29 +08:00
selectionAction.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
selectionToolbar.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
traceWindow.html refactor: streamline system prompt handling and introduce built-in tools (#7714) 2025-07-23 17:27:39 +08:00