Compare commits

..

No commits in common. "0a98af35e9a6c730ac2f6b5fb9e42716f86c0aeb" and "c266736ede22ae9885b9fdb280bb512a51b51fc4" have entirely different histories.

3 changed files with 10 additions and 23 deletions

View File

@ -28,7 +28,6 @@ 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,
); );
@ -169,25 +168,15 @@ 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>
<div className="flex items-center gap-2"> <button
<button className="text-white/70 hover:text-white"
className="text-white/70 hover:text-white" onClick={() => setOpen(false)}
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>
{!collapsed && <div className="space-y-3 p-3"> <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>
@ -435,7 +424,7 @@ export function IframeTestPanel() {
))} ))}
</div> </div>
)} )}
</div>} </div>
</div> </div>
); );
} }

View File

@ -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 dev: 给通信面板加收起按钮</span> XClaw <span className="text-sm text-[#000000c5]">v3.2.1 feat: 宿主页复制</span>
</div> </div>
)} )}
<SidebarTrigger /> <SidebarTrigger />

View File

@ -62,9 +62,7 @@ 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));
} }