Compare commits
2 Commits
c266736ede
...
0a98af35e9
| Author | SHA1 | Date |
|---|---|---|
|
|
0a98af35e9 | |
|
|
ab49f840d5 |
|
|
@ -28,6 +28,7 @@ export function IframeTestPanel() {
|
||||||
const iframeSkill = useIframeSkill();
|
const iframeSkill = useIframeSkill();
|
||||||
const [log, setLog] = useState<string[]>([]);
|
const [log, setLog] = useState<string[]>([]);
|
||||||
const [open, setOpen] = useState(true);
|
const [open, setOpen] = useState(true);
|
||||||
|
const [collapsed, setCollapsed] = useState(false);
|
||||||
const [position, setPosition] = useState<{ x: number; y: number } | null>(
|
const [position, setPosition] = useState<{ x: number; y: number } | null>(
|
||||||
null,
|
null,
|
||||||
);
|
);
|
||||||
|
|
@ -168,15 +169,25 @@ export function IframeTestPanel() {
|
||||||
onPointerDown={handlePointerDown}
|
onPointerDown={handlePointerDown}
|
||||||
>
|
>
|
||||||
<span className="text-xs font-bold text-white">🧪 iframe 通信测试</span>
|
<span className="text-xs font-bold text-white">🧪 iframe 通信测试</span>
|
||||||
<button
|
<div className="flex items-center gap-2">
|
||||||
className="text-white/70 hover:text-white"
|
<button
|
||||||
onClick={() => setOpen(false)}
|
className="text-white/70 hover:text-white"
|
||||||
>
|
onPointerDown={(event) => event.stopPropagation()}
|
||||||
✕
|
onClick={() => setCollapsed((prev) => !prev)}
|
||||||
</button>
|
>
|
||||||
|
{collapsed ? "▢" : "—"}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
className="text-white/70 hover:text-white"
|
||||||
|
onPointerDown={(event) => event.stopPropagation()}
|
||||||
|
onClick={() => setOpen(false)}
|
||||||
|
>
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-3 p-3">
|
{!collapsed && <div className="space-y-3 p-3">
|
||||||
{/* 当前状态 */}
|
{/* 当前状态 */}
|
||||||
<div className="rounded-lg bg-gray-50 px-3 py-2 text-xs">
|
<div className="rounded-lg bg-gray-50 px-3 py-2 text-xs">
|
||||||
<div className="mb-1 font-semibold text-gray-500">当前状态</div>
|
<div className="mb-1 font-semibold text-gray-500">当前状态</div>
|
||||||
|
|
@ -424,7 +435,7 @@ export function IframeTestPanel() {
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ export function WorkspaceHeader({ className }: { className?: string }) {
|
||||||
) : (
|
) : (
|
||||||
<div className="text-primary ml-2 cursor-default font-serif">
|
<div className="text-primary ml-2 cursor-default font-serif">
|
||||||
{/* TODO: 测试标识 */}
|
{/* TODO: 测试标识 */}
|
||||||
XClaw <span className="text-sm text-[#000000c5]">v3.2.1 feat: 宿主页复制</span>
|
XClaw <span className="text-sm text-[#000000c5]">v3.2.1 dev: 给通信面板加收起按钮</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<SidebarTrigger />
|
<SidebarTrigger />
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,9 @@ export function getLocalSettings(): LocalSettings {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function saveLocalSettings(settings: LocalSettings) {
|
export function saveLocalSettings(settings: LocalSettings) {
|
||||||
|
void settings;
|
||||||
// 注释了,因为本地存储会污染模型配置
|
// 注释了,因为本地存储会污染模型配置
|
||||||
console.log('localStorage设置,已经注释');
|
console.log("localStorage设置,已经注释");
|
||||||
|
localStorage.removeItem(LOCAL_SETTINGS_KEY);
|
||||||
// localStorage.setItem(LOCAL_SETTINGS_KEY, JSON.stringify(settings));
|
// localStorage.setItem(LOCAL_SETTINGS_KEY, JSON.stringify(settings));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue