mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 11:43:57 +08:00
Merge origin/main into feat/codex-oauth-account-usage
This commit is contained in:
@@ -4,6 +4,8 @@ import { Badge } from "@/components/ui/badge";
|
||||
import { CodexIcon } from "@/components/BrandIcons";
|
||||
import { CopilotAuthSection } from "@/components/providers/forms/CopilotAuthSection";
|
||||
import { CodexOAuthSection } from "@/components/providers/forms/CodexOAuthSection";
|
||||
import { XaiOAuthSection } from "@/components/providers/forms/XaiOAuthSection";
|
||||
import { ProviderIcon } from "@/components/ProviderIcon";
|
||||
|
||||
export function AuthCenterPanel() {
|
||||
const { t } = useTranslation();
|
||||
@@ -69,6 +71,24 @@ export function AuthCenterPanel() {
|
||||
|
||||
<CodexOAuthSection showAccountQuota />
|
||||
</section>
|
||||
|
||||
<section className="rounded-xl border border-border/60 bg-card/60 p-6">
|
||||
<div className="mb-4 flex items-center gap-3">
|
||||
<div className="flex h-10 w-10 items-center justify-center rounded-xl bg-muted">
|
||||
<ProviderIcon icon="xai" name="xAI" size={20} />
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="font-medium">xAI (Grok OAuth)</h4>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{t("settings.authCenter.xaiOauthDescription", {
|
||||
defaultValue: "管理 xAI / Grok 账号",
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<XaiOAuthSection />
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user