Separate domain access from code-channel login

This commit is contained in:
冰朔 2026-08-10 04:38:41 +08:00
commit 6b1bb203df
7 changed files with 324 additions and 6 deletions

View file

@ -284,7 +284,7 @@ export function StorageLocationSheet({ open, apiBase, currentRemote, initialMode
{!session.authenticated ? (
<div className="server-login-form">
<p className="sheet-label"></p>
<p className="sheet-label"></p>
<div className="login-fields">
<input value={username} onChange={event => setUsername(event.target.value)} placeholder="账号" autoComplete="username" />
<input type="password" value={password} onChange={event => setPassword(event.target.value)} placeholder="密码" autoComplete="current-password" onKeyDown={event => {
@ -292,7 +292,7 @@ export function StorageLocationSheet({ open, apiBase, currentRemote, initialMode
}} />
<button className="secondary-button" onClick={login} disabled={busy || !username || !password}></button>
</div>
<small> HoloLake Git </small>
<small> HoloLake Git </small>
</div>
) : (
<div className="repository-picker">