feat: 分站 API Key 支持随时查看复制 + 配置文件导出器

- 后端:DistTokenList 去掉 Clean(),返回完整 key 供前端显示
- 前端:Token 列表每行显示完整 key 和复制按钮
- 新增 ConfigExporter 组件,支持 7 种工具配置生成
  (Claude Code / OpenClaw / OpenCode / Cursor / cURL / Python / Anthropic SDK)
- 自动使用分站域名作为 API Base URL
- 中英文 i18n 翻译

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
abingyydsandClaude Sonnet 4.6 committed 2026-03-21 22:54:52 +09:00
1 parent 172a588afe
commit 782439995f
38 files changed
+967 -53

No files matched your search

+13
View File
@@ -122,6 +122,19 @@
"tokens.quickStart": "Quick Start",
"tokens.quickStartComment": "# Use your API key with OpenAI-compatible endpoint",
"config.title": "Config File Export",
"config.subtitle": "Select your API Key and model to generate config files",
"config.selectKey": "Select API Key",
"config.selectModel": "Select Model",
"config.selectTool": "Select Tool",
"config.copy": "Copy",
"config.download": "Download",
"config.copied": "Copied to clipboard!",
"config.downloaded": "Config file downloaded",
"config.loading": "Loading...",
"config.loginPrompt": "Log in to generate your config",
"config.loginDesc": "Select your API Key and model to auto-fill config files",
"pricing.title": "Model Pricing",
"pricing.subtitle": "Transparent, pay-as-you-go pricing for all available models. Prices shown per 1M tokens.",
"pricing.searchPlaceholder": "Search models...",
+13
View File
@@ -122,6 +122,19 @@
"tokens.quickStart": "快速开始",
"tokens.quickStartComment": "# 使用 OpenAI 兼容端点调用 API",
"config.title": "配置文件导出",
"config.subtitle": "选择您的 API Key 和模型,一键生成配置文件",
"config.selectKey": "选择 API Key",
"config.selectModel": "选择模型",
"config.selectTool": "选择工具",
"config.copy": "复制",
"config.download": "下载",
"config.copied": "已复制到剪贴板",
"config.downloaded": "配置文件已下载",
"config.loading": "加载中...",
"config.loginPrompt": "登录后可生成您的专属配置",
"config.loginDesc": "选择 API Key 和模型,自动填充到配置文件中",
"pricing.title": "模型定价",
"pricing.subtitle": "透明的按量付费定价。价格以每百万 token 计。",
"pricing.searchPlaceholder": "搜索模型...",