abingyyds and Claude Sonnet 4.6
3ed0f67be0
feat: 分站配置导出器模型搜索功能 + i18n 补全
...
ConfigExporter 模型下拉改为可搜索的自定义 combobox,
新增 config.searchModel / config.noModelMatch i18n 键。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 23:05:07 +09:00
abingyyds and Claude Sonnet 4.6
782439995f
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 >
2026-03-21 22:54:52 +09:00
abingyyds and Claude Sonnet 4.6
662685cc97
feat: add language switch button and optimize theme visuals
...
- Add LanguageSwitch component to all 4 theme layouts (starter/default/dark/minimal)
- Import Noto Sans SC for proper Chinese font rendering
- Fix theme flash on refresh by blocking render until site info loads
- Optimize default theme: violet/blue/cyan palette, SVG icons instead of emoji
- Optimize dark theme: unified emerald accent, reduced particle count, backdrop-blur
- Add Tailwind safelist for dark theme dynamic class names
- Prioritize localStorage in i18n detection so manual language choice persists
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 10:19:38 +09:00
abingyyds and Claude Opus 4.6
9a18cf2215
chore: remove old dist-site Layout.jsx (replaced by themed templates)
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-21 09:06:35 +09:00
abingyyds and Claude Sonnet 4.6
01405ca8cf
feat: dist-site 多主题模板 + 中英双语 i18n
...
- 新增 4 套主题模板:starter/default/dark/minimal
- Starter: 毛玻璃 + GradientText + SpotlightCard (原有风格)
- Default: Aurora 极光背景 + SplitText + TiltedCard
- Dark: Particles 粒子 + DecryptedText 赛博朋克风格
- Minimal: 极简优雅 + FadeContent 淡入动画
- 新增 i18n 中英双语支持 (i18next + browser-languagedetector)
- 新增 ThemeProvider 运行时主题切换 (根据 theme_template 字段)
- 新增 11 个 react-bits 动画组件
- 所有页面文案国际化 (Login/Register/Dashboard/Tokens/Pricing/Packages)
- 新增 README.md + README.zh.md 含主题切换指南
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 09:04:25 +09:00
abingyyds and Claude Sonnet 4.6
cc9a8bcc0e
fix: 分站价格单位改为每1M tokens + 移除所有SubRouter主站标识
...
- 价格表单位从 "per 1K tokens" 改为 "per 1M tokens"(价格×1000显示)
- 移除 footer "Powered by SubRouter" 字样
- 默认站名从 "SubRouter" 改为 "AI Platform"
- HTML title 从 "SubRouter Dist Site" 改为 "AI Platform"
- 分站不再包含任何主站品牌标识
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 06:01:43 +09:00
abingyyds and Claude Sonnet 4.6
9dfc5e79bc
feat: 完整分销系统 — 后端 + 主站管理 + 分站前端模板
...
分销商后端:
- 分销商注册/审核/CRUD API
- 分站用户注册/登录/登出 (session cookie auth)
- 分站 Token CRUD、充值兑换、套餐订阅
- 分站域名/子域名自动识别中间件 (DistIdentify)
- 分销商收益异步记账 + markup 加价计费
- 模型价格快照、渠道路由配置
- 管理员审核/管理分销商
主站前端 (web/):
- 分销商注册申请、设置、客户管理(分页)、套餐管理(含速率限制)
- 收益管理(含汇总卡片+分页列表)、模型管理
- 管理员分销商审核面板
- DistributorLayout 标签页布局 + 路由
分站前端模板 (dist-site/):
- React + Vite + Tailwind 暗色主题 glassmorphism 设计
- react-bits 动画组件 (GradientText, BlurText, CountUp, SpotlightCard 等)
- Session cookie 认证 + New-Api-User header
- 首页/登录/注册/Dashboard/API Keys/定价/套餐 7 个页面
- Token 创建后一次性密钥展示、余额检查订阅确认
Bug 修复:
- 修复 DistUserRegister 密码双重哈希导致用户无法登录
- 修复 401 响应不清除 React user 状态
- 修复订阅确认弹窗不显示余额且提前关闭
- 修复 Home 页 Subscribe 按钮跳转错误 (/dashboard → /packages)
- 修复 Login/Register 组件卸载后 setState 警告
- 修复 DistributorEarnings 引用不存在的 username 字段
- 修复 DistributorCustomers 引用不存在的 created_at 字段
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 04:23:13 +09:00