import { useState } from "react"; import { LockKeyhole, TerminalSquare } from "lucide-react"; import { api } from "../api.js"; export function LoginPage({ onLogin }) { const [password, setPassword] = useState(""); const [error, setError] = useState(""); const [busy, setBusy] = useState(false); async function submit(event) { event.preventDefault(); setBusy(true); setError(""); try { await api.login(password); onLogin(); } catch (requestError) { setError(requestError.message); } finally { setBusy(false); } } return (

AgentDock

AI CLI 管理控制台

{error ?

{error}

: null} 仅允许局域网内访问
); }