feat: Add automated OpenAI account registration and Codex refresh token acquisition, and introduce a new S2A configuration page.

This commit is contained in:
2026-01-31 01:02:45 +08:00
parent e666d97eb8
commit 74bdcae836

View File

@@ -268,20 +268,24 @@ export default function S2AConfig() {
<span className="text-sm text-slate-400"></span>
)}
</div>
<div className="flex gap-2 mt-2">
<Input
placeholder="输入分组 ID"
type="number"
min={1}
value={newGroupId}
onChange={(e) => setNewGroupId(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && handleAddGroupId()}
/>
<div className="flex gap-3 mt-2 items-stretch">
<div className="flex-1 max-w-xs">
<Input
placeholder="输入分组 ID"
type="number"
min={1}
value={newGroupId}
onChange={(e) => setNewGroupId(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && handleAddGroupId()}
className="h-10"
/>
</div>
<Button
variant="outline"
onClick={handleAddGroupId}
disabled={!newGroupId}
icon={<Plus className="h-4 w-4" />}
className="h-10 min-w-[100px] px-4"
>
</Button>