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