diff --git a/.gitattributes b/.gitattributes index 561487b9d..2e47b8a64 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,10 +7,7 @@ *.sh text eol=lf .github/workflows/*.yml text eol=lf -# Preserve the original Snow Skin asset line endings for byte-exact bundling. -assets/inject/upstream/snow-skin/*.js text eol=lf -assets/inject/upstream/snow-skin/*.css text eol=lf - -# Keep byte-exact macOS theme assets identical on every checkout platform. -assets/inject/upstream/*/macos/*.js text eol=lf -assets/inject/upstream/*/macos/*.css text eol=lf +# Keep every byte-exact upstream theme asset stable on all checkout platforms. +assets/inject/upstream/**/*.js text eol=lf +assets/inject/upstream/**/*.css text eol=lf +assets/inject/upstream/skin-packs/packs/*/theme.json text eol=lf diff --git a/apps/codex-plus-manager/src/App.tsx b/apps/codex-plus-manager/src/App.tsx index bc7bfb264..9233d68f4 100644 --- a/apps/codex-plus-manager/src/App.tsx +++ b/apps/codex-plus-manager/src/App.tsx @@ -251,6 +251,7 @@ export type RelayProfile = { protocol: RelayProtocol; relayMode: RelayMode; officialMixApiKey: boolean; + hideOfficialUsageAlert: boolean; testModel: string; configContents: string; authContents: string; @@ -838,6 +839,7 @@ const defaultSettings: BackendSettings = { protocol: "responses", relayMode: "official", officialMixApiKey: false, + hideOfficialUsageAlert: false, testModel: "", configContents: "", authContents: "", @@ -5782,6 +5784,21 @@ function RelayProfileEditor({ {t("启用目标功能")} + {profile.relayMode === "official" ? ( + + +

+ {t("关闭后仍可从 Codex 左下角账户菜单查看官方剩余额度。")} +

+
+ ) : null}