refactor: 移除多余依赖,统一 MUI 为唯一 UI 库
- 移除 radix-ui、clsx、tailwind-merge、class-variance-authority、react-router-dom - 前后端全面适配 MUI 组件,清理残留 Tailwind 工具类引用 - 优化 Agent Loop 引擎、IPC 处理器、Provider Adapter 等后端模块 - 新增 Agent 网络工具通用设计文档 v2
This commit is contained in:
@@ -41,11 +41,11 @@ export function ToastContainer(): null {
|
||||
MeToast.use('keyboard'); // ESC 关闭所有
|
||||
MeToast.use('persistence'); // 配置持久化
|
||||
MeToast.use('accessibility'); // 屏幕阅读器
|
||||
} catch {
|
||||
// 插件可能已安装
|
||||
} catch (err) {
|
||||
console.error('[Toast]', 'Failed to install plugin:', err);
|
||||
}
|
||||
}).catch(() => {
|
||||
// metona-toast 未安装时静默
|
||||
}).catch((err) => {
|
||||
console.error('[Toast]', 'Failed to load metona-toast:', err);
|
||||
});
|
||||
|
||||
// 监听主进程通知桥接
|
||||
@@ -61,8 +61,8 @@ export function ToastContainer(): null {
|
||||
case 'info': MeToast.info(message, options); break;
|
||||
default: MeToast.info(message, options);
|
||||
}
|
||||
} catch {
|
||||
// 静默
|
||||
} catch (err) {
|
||||
console.error('[Toast]', 'Failed to show toast:', err);
|
||||
}
|
||||
});
|
||||
return unsubscribe;
|
||||
|
||||
Reference in New Issue
Block a user