feat: add ddshub provider preset with partner promotion

Add ddshub as a third-party partner provider for Claude, including
SVG icon and i18n promotion text in zh/en/ja locales.
This commit is contained in:
Jason
2026-04-10 15:43:43 +08:00
parent 3aef5217cb
commit eff85dc66d
5 changed files with 2247 additions and 3 deletions
+16
View File
@@ -653,6 +653,22 @@ export const providerPresets: ProviderPreset[] = [
icon: "ctok", icon: "ctok",
iconColor: "#000000", iconColor: "#000000",
}, },
{
name: "ddshub",
websiteUrl: "https://www.ddshub.cc",
apiKeyUrl: "https://ddshub.short.gy/ccswitch",
settingsConfig: {
env: {
ANTHROPIC_BASE_URL: "https://www.ddshub.cc",
ANTHROPIC_AUTH_TOKEN: "",
},
},
category: "third_party",
isPartner: true, // 合作伙伴
partnerPromotionKey: "ddshub", // 促销信息 i18n key
icon: "dds",
iconColor: "#000000",
},
{ {
name: "OpenRouter", name: "OpenRouter",
websiteUrl: "https://openrouter.ai", websiteUrl: "https://openrouter.ai",
+2 -1
View File
@@ -774,7 +774,8 @@
"ucloud": "Compshare offers an exclusive bonus for CC Switch users — register via this link to get ¥5 platform trial credit!", "ucloud": "Compshare offers an exclusive bonus for CC Switch users — register via this link to get ¥5 platform trial credit!",
"micu": "Micu is an official partner of CC Switch", "micu": "Micu is an official partner of CC Switch",
"x-code": "XCodeAPI offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first order (contact admin to claim)", "x-code": "XCodeAPI offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first order (contact admin to claim)",
"ctok": "Join the CTok community on the official website and subscribe to a plan." "ctok": "Join the CTok community on the official website and subscribe to a plan.",
"ddshub": "DDSHub offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first top-up (contact group admin to claim)!"
}, },
"presets": { "presets": {
"ucloud": "Compshare" "ucloud": "Compshare"
+2 -1
View File
@@ -774,7 +774,8 @@
"ucloud": "Compshare は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、5元のプラットフォーム体験クレジットがもらえます!", "ucloud": "Compshare は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、5元のプラットフォーム体験クレジットがもらえます!",
"micu": "Micu は CC Switch の公式パートナーです", "micu": "Micu は CC Switch の公式パートナーです",
"x-code": "XCodeAPI は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回注文で 10% の追加クレジットがもらえます(管理者に連絡して受け取り)", "x-code": "XCodeAPI は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回注文で 10% の追加クレジットがもらえます(管理者に連絡して受け取り)",
"ctok": "公式サイトで CTok コミュニティに参加し、プランを購読してください。" "ctok": "公式サイトで CTok コミュニティに参加し、プランを購読してください。",
"ddshub": "DDSHub は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回チャージで 10% の追加クレジットがもらえます(グループ管理者に連絡して受け取り)!"
}, },
"presets": { "presets": {
"ucloud": "Compshare" "ucloud": "Compshare"
+2 -1
View File
@@ -774,7 +774,8 @@
"ucloud": "优云智算为CC Switch 的用户提供了特殊优惠,通过此链接注册,可以获得五元平台体验金!", "ucloud": "优云智算为CC Switch 的用户提供了特殊优惠,通过此链接注册,可以获得五元平台体验金!",
"micu": "Micu 是 CC Switch 的官方合作伙伴", "micu": "Micu 是 CC Switch 的官方合作伙伴",
"x-code": "XCodeAPI 为CC Switch 的用户提供特别福利,使用此链接注册后首单加赠10%的额度(联系站长领取)", "x-code": "XCodeAPI 为CC Switch 的用户提供特别福利,使用此链接注册后首单加赠10%的额度(联系站长领取)",
"ctok": "官网加入CTok社群,订阅套餐。" "ctok": "官网加入CTok社群,订阅套餐。",
"ddshub": "呆呆兽为CC Switch 的用户提供了特别福利,通过此链接注册后,首单充值可额外赠送 10% 额度(联系群主领取)!"
}, },
"presets": { "presets": {
"ucloud": "优云智算" "ucloud": "优云智算"
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.4 MiB