fix(create): 参考内容 - 支持添加、独立删除与筛选管理

- 支持参考内容按稳定 ID 删除、筛选、清空、拖拽与触屏交互
- 保留 Vite 生产环境模型 Logo 加载并兼容 Bun 测试
- 同步最新 main,修正相关格式和陈旧测试断言

Co-authored-by: echoD886 <dingxiaojie66@gmail.com>
This commit is contained in:
echoD886 authored and GitHub committed 2026-08-28 09:07:33 +08:00
1 parent bd0d0fd4fd
commit 335b5406ad
11 files changed
+266 -144

No files matched your search

+2
View File
@@ -10,6 +10,8 @@ describe("模型 Logo 选择器", () => {
expect(source).toContain('import.meta.glob("../../node_modules/@lobehub/icons/es/*/components/Mono.js"');
expect(source).not.toContain("import.meta.glob?.(");
expect(source).toContain('"Bun" in globalThis');
expect(source).not.toContain("typeof import.meta.glob");
expect(options.length).toBeGreaterThan(300);
expect(options.some((item) => item.id === "OpenAI")).toBe(true);
expect(options.some((item) => item.id === "AgnesAI")).toBe(true);