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:
+3
-3
@@ -37,13 +37,13 @@ export default function App(): React.JSX.Element {
|
||||
if (window.metona?.config?.get) {
|
||||
window.metona.config.get('onboarding.completed').then((v) => {
|
||||
if (v === true) useUIStore.getState().setOnboardingCompleted(true);
|
||||
}).catch(() => {});
|
||||
}).catch((err) => { console.error('[App]', err); });
|
||||
Promise.all([
|
||||
window.metona.config.get('llm.provider'),
|
||||
window.metona.config.get('llm.model'),
|
||||
]).then(([provider, model]) => {
|
||||
if (provider || model) useAgentStore.getState().setProvider(provider ?? '', model ?? '');
|
||||
}).catch(() => {});
|
||||
if (provider || model) useAgentStore.getState().setProvider((provider as string) || '', (model as string) || '');
|
||||
}).catch((err) => { console.error('[App]', err); });
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user