wangxiaoji
04c4e17dcc
新增全局搜索、新用户引导、模型对比工具
...
- 顶部搜索框:/ 键唤起,搜索模型名称/描述/标签,点击跳转到定价页
- 新用户引导:首次登录弹出三步向导(获取 Key → 选择模型 → 首次调用)
- 模型对比:并排对比最多4个模型的价格、支持功能、标签等属性
2026-07-01 16:24:26 +08:00
wangxiaoji
01900f1a3a
操作日志中文化与功能优化
...
- 后端操作描述统一使用中文冒号(:)替换英文冒号(:)
- 前端资源名称列 ID 显示改为中文冒号
- 清理日志改为弹窗内独立日期选择器,不再依赖筛选条件
- 侧边栏操作记录移至渠道管理上方
- RPM/TPM 卡片标签改为中文显示
2026-07-01 16:03:03 +08:00
wangxiaoji
006e723ac5
新增功能:用量可视化、操作日志页面优化、CSV导出
...
- RechargeCard 增加额度使用进度条与实时 RPM/TPM 展示(5列网格布局)
- 统一操作日志页面布局风格,与其他控制台页面一致
- 充值账单与使用日志均支持 CSV 导出
- 新增 helpers/export.js 导出工具函数
2026-07-01 15:43:41 +08:00
wangxiaoji
6a210b9667
统一控制台页面布局:替换 mt-[60px] px-2 为统一 min-h-full pb-16 pt-20 + max-w-[1400px] 居中容器
...
涉及页面:Channel、Token、Redemption、Log、Task、Midjourney、Model、ModelHeat、ModelDeployment、Subscription、User、Setting、Supplier Dashboard/Apply/Channel/PricingSettings、SupplierAdmin list/application、About、DistributorAdmin/Center/Apply、DeploymentAccessGuard、PersonalSetting、Dashboard 等全部控制台页面
2026-07-01 15:18:35 +08:00
wangxiaoji
001ed4c17f
缩小API测速页面字体,与Dashboard风格统一
2026-07-01 14:22:21 +08:00
wangxiaoji
ac1120fc33
重构充值页面和统一控制台页面风格
...
- 充值页面:全新设计余额概览、预设金额卡片、支付方式、兑换码区域
- 控制台主页:移除灰色背景,统一页面边距和宽度
- API测速页:移至控制台下,调整字体大小和间距
- 侧边栏:新增API测速菜单入口
- 修复个人设置页TwoFASetting组件缺少IconShield导入
- 多个页面统一顶部间距和背景样式
2026-07-01 14:13:15 +08:00
wangxiaoji
8e8f19fc10
将控制台页面和首页底部的 TokenFactory 改为从 getSystemName() 动态读取,统一品牌名称为 TuringToken
2026-06-29 17:21:31 +08:00
wangxiaoji
8ed621ed76
修复:补全缺失的前端文件并取消忽略 vite.config.js
2026-06-29 15:20:20 +08:00
wangxiaoji
3fb6326f4a
feat: 重构控制台 Dashboard + 新增 API 快速测试页
...
- 新增 Bento 风格 Dashboard 组件:TopBar、Hero、BentoStats、BentoTrend、MonthlyForecast、RecentActivity、Sparkline
- 新增 /console/api-tester API 快速测试页:支持 OpenAI/Anthropic 协议切换、多家国产模型预设、Key 清洗、流式/非流式切换、cURL 一键复制
- 注释和提示语统一中文化
- App.jsx 新增 /console/api-tester 路由(PrivateRoute 守卫)
2026-06-26 16:16:30 +08:00
xiezhouwei
a7759c5767
refine: show only avatar circle on homepage hero when logged in, remove username text
2026-06-22 11:58:07 +08:00
xiezhouwei
c44cebeb18
fix: apply admin theme/language toggle to homepage hero section as well
2026-06-22 11:53:12 +08:00
xiezhouwei
09d6a7305e
feat: add admin-controlled toggles for header theme/language display in system settings
2026-06-22 11:46:31 +08:00
xiezhouwei
7d30717cd1
fix: unify homepage hero button styles - rounded login button, console-style user avatar with dynamic color
2026-06-22 11:27:28 +08:00
xiezhouwei
4f85cad331
fix: show user info on homepage hero when logged in instead of always showing login button
2026-06-22 10:59:30 +08:00
xiezhouwei
0ab319143b
feat: restructure docs page to left-center-right 3-column layout with page TOC sidebar
2026-06-22 10:08:09 +08:00
xiezhouwei
e028f6f93a
fix: adjust docs page scroll offset to prevent fixed header occlusion
2026-06-22 09:56:23 +08:00
xiezhouwei
64a4a68a6f
feat: add in-app docs page with sidebar navigation and quickstart guide, replace /docs redirect with built-in page
2026-06-22 09:30:31 +08:00
xiezhouwei
dfa7ccbd97
Revert "fix: remove '文档' nav link from homepage hero section"
...
This reverts commit 4429de2448 .
2026-06-22 09:23:57 +08:00
xiezhouwei
4429de2448
fix: remove '文档' nav link from homepage hero section
2026-06-22 09:21:09 +08:00
xiezhouwei
6a880c08ba
fix: add /docs redirect middleware to forward docs paths to configured docs_link
2026-06-22 09:16:31 +08:00
xiezhouwei
9f47782442
fix: homepage '文档' nav link now uses dynamic same-origin docs URL instead of hardcoded docs.new-api.cc
2026-06-22 09:09:02 +08:00
xiezhouwei
59cc502e6e
fix: homepage '开始使用' button now links to API Key (/console/token) instead of register
2026-06-21 19:00:13 +08:00
xiezhouwei
86bb4ee0cf
rename: 体验馆 → 体验 (menu, settings, i18n across 11 locales)
2026-06-21 18:26:24 +08:00
xiezhouwei
4f8cde37d8
refactor: replace api.tokendance.space with api.turingtoken.ai on homepage
2026-06-21 16:40:30 +08:00
xiezhouwei
6eec903060
refactor: remove about link and GitHub display from homepage DarkFooter
2026-06-21 16:37:23 +08:00
xiezhouwei
0d798c2fbc
fix: convert model_type URL param to number so Select matches optionList value type
2026-06-19 10:37:41 +08:00
xiezhouwei
2165430d87
feat: pass model_type (vendor_id) from model detail to playground settings panel
2026-06-19 10:30:32 +08:00
xiezhouwei
977e9e8bf5
feat: add experience button in model detail side sheet to jump to playground with model preset
2026-06-19 10:17:00 +08:00
xiezhouwei
5fa5f87e1e
fix: 补全主页独立导航栏顺序 - 模型→评测→文档→控制台
...
Home/index.jsx 第 153 行有自己的固定导航栏(fixed top-0 z-50),
完全独立于 HeaderBar 组件。其导航项数组仍是旧顺序
模型→控制台→评测→文档,现调整为:模型→评测→文档→控制台。
至此三处导航栏全部修正:
1. useNavigation.js(桌面 HeaderBar 导航)
2. MobileSiteNavDropdown.jsx(移动端下拉导航)
3. Home/index.jsx(主页独立固定导航栏)
2026-06-17 14:08:02 +08:00
xiezhouwei
5b5d7a95f3
fix: 评测页面顶部被固定导航栏遮挡 - 添加 pt-14 偏移\n\n根因:PageLayout.jsx 中 <Header> 使用 position: fixed; top: 0(h-14, 56px),但\n非 /console 路径的 <Content> padding 为 0,评测页面顶部内容被固定头部遮盖。\n\n修改:在外容器和 loading 容器添加 pt-14,精确匹配头部高度。
2026-06-17 11:47:48 +08:00
xiezhouwei
d455641b86
fix: 评测页面浅色模式样式异常 - 切换为 shadcn/ui 主题变量系统
...
根因:Benchmarks 页面所有 Tailwind 样式使用硬编码暗色类
(bg-gray-950/text-white/bg-white/5/border-white/10 等),
导致浅色模式下显示为深色背景+白字,完全不可见。
修改:将所有 hardcoded dark-mode 类替换为 shadcn/ui CSS 变量类:
- bg-gray-950 → bg-background
- text-white/text-gray-* → text-foreground/text-muted-foreground
- border-white/* → border-border
- bg-white/* → bg-muted/* 和 bg-primary/*
- 卡片:添加上下模式 gradient(light:from-purple-50 dark:from-purple-950/40)
- 筛选/搜索/进度条/标签等全部适配 dual-theme
- 额外优化:分类图标更新、加载动画主题化
2026-06-17 11:39:59 +08:00
xiezhouwei
e29f61aa68
fix: 评测页面 401 拦截器导致未登录用户被重定向到登录页
...
根因:Benchmarks 页面加载时调用 API.get('/api/option/'),
未登录用户返回 401 → axios 拦截器 → showError() → window.location.href = '/login'
修复:添加 skipErrorHandler: true 参数,跳过全局错误拦截,
API 失败时静默回退到离线默认数据
2026-06-17 11:25:47 +08:00
xiezhouwei
281c0de751
feat: 评测基准页面支持离线默认数据 + 路由公开访问
...
- 确认 /benchmarks 路由为公开(无 PrivateRoute)
- 嵌入 32 款主流 AI 模型完整评测数据作为默认数据
- 默认数据即时渲染,后端 API 查询改为后台异步更新(无等待状态)
- 数据覆盖 OpenAI/Anthropic/Google/DeepSeek/Meta/国内模型等
- 评分维度:智能指数、速度、价格、延迟、上下文窗口
2026-06-17 10:59:09 +08:00
xiezhouwei
e00999b88c
fix: 首页导航栏样式对齐 tokendance.space + 主题切换修复
...
- 首页导航字体/样式对齐 tokendance.space(text-[14px]、gap-1.5、SVG 图标)
- 全局 Navigation.jsx 和 MobileSiteNavDropdown.jsx 添加 SVG 图标
- 首页 HeroSection header 固定定位(sticky→fixed),导航链接靠右
- PageLayout 首页时隐藏全局 HeaderBar,避免导航重叠/文字不清
- 修复 HomeThemeToggle 主题切换失效(使用正确的 localStorage key 和 DOM 操作)
- 首页文字 TokenFactory→TuringToken,logo 靠左对齐
- i18n 多语言文件同步更新
2026-06-17 10:23:39 +08:00
xiezhouwei
d7fdbb4e18
feat: add supplierApply permission toggle for providing compute button
...
- Add supplierApply module to console area in role-menu-permission config
- Add supplierApply to DEFAULT_SIDEBAR_CONFIG in useSidebar hook
- Update HeaderLogo to check sidebar module config before showing the button
- Update MobileSiteNavDropdown to check same permission for mobile entry
- Default value is enabled (backward compatible)
2026-06-11 11:37:48 +08:00
xiezhouwei
82016579db
fix(payment): resolve payment settings save logic and enable persistence
...
- Fix Bug 1: Always save all provider-specific fields regardless of
currently selected provider in dropdown, preventing data loss when
switching between Alipay/WeChat/ePay/Yipay configurations
- Fix Bug 2: Add EpayEnabled/YipayEnabled backend Go variables and
OptionMap entries so enable/disable checkboxes persist across page
reloads
- Fix white screen crash by wrapping orphan Col elements in proper Row
- Add EpayEnabled/YipayEnabled to PaymentSetting.jsx initial state
- Remove duplicate payment card imports for Stripe/Creem/Waffo/Alipay/Wechat
2026-06-09 14:35:37 +08:00
xiezhouwei
6fc114ec32
feat: add Alipay and WeChat Pay payment gateway support
...
- Add Alipay payment backend: RSA2 signing/verification, async notify, sync return
- Add WeChat Pay backend: APIv3 signing, AES-GCM decryption, H5 pay, async notify
- Add payment setting UI components for Alipay and WeChat Pay
- Register config keys (24 items) in OptionMap for both gateways
- Add API routes: /api/user/alipay/pay, /api/user/wechatpay/pay,
/api/alipay/notify, /api/alipay/return, /api/wechatpay/notify
- Add enable_alipay_topup/enable_wechatpay_topup to /api/status endpoint
- Add i18n translations for all new UI strings (11 locales)
- Fix: data is not defined ReferenceError in topup/index.jsx useEffect
- Fix: unused imports in controller/topup_wechat.go
- Update .gitignore for build artifacts
2026-06-08 09:01:33 +08:00
xiezhouwei
aa1c9559c3
feat: 操作日志功能实现及字段级diff优化
...
- 新增操作日志完整功能: model/service/controller/middleware + 前端页面
- 用户管理 UpdateUser/ManageUser 改为字段级 diff,仅记录实际变更字段
- 模型定价 UpdateOption 改为模型粒度 diff,仅记录变更的模型条目
- 防止中间件与 controller 重复记录操作日志
- 修复前端侧边栏操作日志模块可见性及权限配置合并
2026-06-04 15:17:59 +08:00
xiezhouwei
ccd7d1f4c2
Initial commit
2026-06-03 10:01:10 +08:00