Compare commits
2 Commits
c266736ede
...
0a98af35e9
| Author | SHA1 | Date |
|---|---|---|
|
|
0a98af35e9 | |
|
|
ab49f840d5 |
|
|
@ -28,6 +28,7 @@ export function IframeTestPanel() {
|
|||
const iframeSkill = useIframeSkill();
|
||||
const [log, setLog] = useState<string[]>([]);
|
||||
const [open, setOpen] = useState(true);
|
||||
const [collapsed, setCollapsed] = useState(false);
|
||||
const [position, setPosition] = useState<{ x: number; y: number } | null>(
|
||||
null,
|
||||
);
|
||||
|
|
@ -168,15 +169,25 @@ export function IframeTestPanel() {
|
|||
onPointerDown={handlePointerDown}
|
||||
>
|
||||
<span className="text-xs font-bold text-white">🧪 iframe 通信测试</span>
|
||||
<button
|
||||
className="text-white/70 hover:text-white"
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
✕
|
||||
</button>
|
||||
<div className="flex items-center gap-2">
|
||||
<button
|
||||
className="text-white/70 hover:text-white"
|
||||
onPointerDown={(event) => event.stopPropagation()}
|
||||
onClick={() => setCollapsed((prev) => !prev)}
|
||||
>
|
||||
{collapsed ? "▢" : "—"}
|
||||
</button>
|
||||
<button
|
||||
className="text-white/70 hover:text-white"
|
||||
onPointerDown={(event) => event.stopPropagation()}
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
✕
|
||||
</button>
|
||||
</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="mb-1 font-semibold text-gray-500">当前状态</div>
|
||||
|
|
@ -424,7 +435,7 @@ export function IframeTestPanel() {
|
|||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export function WorkspaceHeader({ className }: { className?: string }) {
|
|||
) : (
|
||||
<div className="text-primary ml-2 cursor-default font-serif">
|
||||
{/* 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>
|
||||
)}
|
||||
<SidebarTrigger />
|
||||
|
|
|
|||
|
|
@ -62,7 +62,9 @@ export function getLocalSettings(): 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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue