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