 abingyydsandClaude Sonnet 4.6
|
1138015cc4
|
feat: 分站控制台增加邀请面板 + 充值快捷入口 + 完善i18n翻译
- 将邀请返佣面板从充值页移至控制台首页(Dashboard)
- Dashboard 快捷入口新增充值链接
- 添加邀请相关中英文翻译(16个key)
- 清理 Topup.jsx 中已移除的 aff 代码
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-07 01:57:02 +08:00 |
|
 abingyydsandClaude Opus 4.6
|
f087c0f978
|
feat: 分站用户调用日志页面
- 新增 DistUserGetLogs 后端接口,支持按模型/令牌筛选和分页
- 新增 dist-site Logs 页面,desktop 表格 + mobile 卡片布局
- 所有 7 个主题 Layout 添加日志导航项
- Dashboard 快捷入口替换为调用日志链接
- 添加中英文 i18n 翻译
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-26 21:34:56 +09:00 |
|
 abingyydsandClaude Sonnet 4.6
|
1e146f6d7b
|
fix: Dashboard 余额/已使用金额保留两位小数
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-26 17:36:47 +09:00 |
|
 abingyydsandClaude Opus 4.6
|
c9c711e4f6
|
feat: 分站前端默认使用人民币显示价格和余额
- 后端 GetDistSiteInfo 返回 currency 配置(符号/汇率/代码)
- SiteContext 新增 useCurrency() hook 提供 symbol/rate/fmt
- Pricing/Dashboard/Topup/Packages 所有价格从 $ 改为 ¥ 并乘以汇率
- 7 个主题的 Home.jsx 套餐价格同步更新
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-26 17:16:53 +09:00 |
|
 abingyydsandClaude Sonnet 4.6
|
b34e81bb58
|
fix: 共享页面全面适配 light/claude 主题配色
问题:非黑色背景的主题下,共享页面中的灰色/黑色硬编码颜色不协调
修复方案:
1. 扩展 CSS 变量体系:新增 --page-surface, --page-surface-hover,
--page-divider, --page-inset, --page-success/warning/danger/info
2. .theme-light 和 .theme-claude 各自定义对应的浅色值
3. Tailwind 新增 text-page-success/warning/danger/info 语义色
4. 新增 CSS 工具类: bg-page-surface, hover:bg-page-surface-hover,
border-page-divider, bg-page-inset
修改文件:
- index.css: 扩展 CSS 变量 + 工具类
- tailwind.config.js: 新增语义色 token
- Dashboard: SpotlightCard → 简单 glass 卡片,hover 色修复
- Pricing: border-white/hover-white → 主题感知类
- Tokens: bg-black/bg-neutral-800 → bg-page-inset/surface
- Topup: SpotlightCard → glass,hover/text 色修复
- ConfigExporter: 下拉菜单/代码预览区全面适配
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-25 03:48:47 +09:00 |
|
abingyyds
|
8a6f957843
|
Revert "feat: 分站货币符号切换功能(¥/$ 可配置,默认人民币)"
This reverts commit 30fb22b9bc29180ee48f1531cffe6293731e2065.
|
2026-03-21 23:17:45 +09:00 |
|
 abingyydsandClaude Sonnet 4.6
|
7a4cbb60d3
|
feat: 分站货币符号切换功能(¥/$ 可配置,默认人民币)
后端:
- Distributor 模型新增 CurrencySymbol 字段 (default: ¥)
- /api/dist/site/info 响应中返回 currency_symbol
- PUT /api/distributor/self 支持更新 currency_symbol
分站管理后台 (web):
- DistributorSettings 新增货币符号切换 (¥ CNY / $ USD)
- 添加 i18n 翻译 (en/zh/ja/fr/ru/vi)
分站前端 (dist-site):
- Dashboard: 余额、已用额度使用动态符号
- Packages: 套餐价格、原价、订阅余额使用动态符号
- Pricing: 模型输入/输出价格使用动态符号
- Topup: 预设金额、支付金额、历史记录使用动态符号
- 7 个主题 Home 页: 套餐价格展示使用动态符号
- 所有页面通过 useSite().currency_symbol 读取,统一 fallback ¥
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-21 23:09:46 +09:00 |
|
 abingyydsandClaude Sonnet 4.6
|
6e99c12292
|
feat: 管理员"充值记录"改为"订单记录",新增分站订单查看
- 管理员侧边栏标签从"充值记录"改为"订单记录"
- 新增 Tab 切换:充值订单 / 分站订单
- 后端新增 GET /api/user/dist_orders 管理员接口
- 分站订单表格显示订单类型、金额、折扣比例、站点名称等
- 完善 6 语言 i18n 翻译
- 包含其他 Agent 的 dist-site 样式改动
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-21 18:08:48 +09:00 |
|
 abingyydsandClaude 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 |
|
 abingyydsandClaude 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 |
|