xiezhouwei
d676e2200f
fix: show output/cache/create_cache prices when channel-level pricing provides the ratio, not only when global pricing has it
2026-06-23 11:00:44 +08:00
xiezhouwei
4a7cb9e0f0
feat: extend ModelHasConfiguredPricing to include channel-level pricing (ChannelModelRatio/ChannelModelPrice) via prebuilt index set
2026-06-23 10:51:46 +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
3e79e956f0
Revert "fix: restrict theme toggle and language selector to console routes only, hide on public pages"
...
This reverts commit ff522958de .
2026-06-22 11:41:24 +08:00
xiezhouwei
ff522958de
fix: restrict theme toggle and language selector to console routes only, hide on public pages
2026-06-22 11:35:22 +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
76ac1a1b31
fix: clear default external docs_link, add migration to use in-app /docs page
2026-06-22 09:51:45 +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
f2da0cdb24
fix: vendor icons missing .Color suffix (8 entries) + add Ollama entry
2026-06-21 18:50:49 +08:00
xiezhouwei
86bb4ee0cf
rename: 体验馆 → 体验 (menu, settings, i18n across 11 locales)
2026-06-21 18:26:24 +08:00
xiezhouwei
eb045c9a46
fix: add Chinese vendor name keywords for doubao/seedance in model_meta_infer vendorKeywordAliases
2026-06-21 17:26:30 +08:00
xiezhouwei
4a5fa8aa3b
debug: add diagnostic logging to getOrCreateVendor and initDefaultVendorMapping for seedance/minimax
2026-06-21 17:26:14 +08:00
xiezhouwei
20de5cb147
fix: add minimax keyword to defaultVendorRules so MiniMax-M1/M3/T1 series get vendor assignment
2026-06-21 16:59:20 +08:00
xiezhouwei
07a6e29c1e
fix: allow vendor_id=0 to be passed as model_type in experience button jump
2026-06-21 16:47:42 +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
189f314734
fix: add DeepSeek-V3.2 default model ratio so it appears in pricing list
2026-06-18 21:13:15 +08:00
xiezhouwei
4e8d2b8057
fix: strip spaces in FormatMatchingModelName to match model name variants like Seedance 2.0
2026-06-18 20:48:07 +08:00
xiezhouwei
06aa707141
fix: add seedance vendor rule and improve vendor_id auto-mapping for existing records
2026-06-18 18:07:47 +08:00
xiezhouwei
46819578de
fix: model page tab filter not working and sidebar tag order
2026-06-18 17:01:50 +08:00
xiezhouwei
77b885b190
refactor: streamline model card to show only logo, name, description, and IO prices
2026-06-18 16:50:02 +08:00
xiezhouwei
4fbdafee1c
fix: remove supplier filter from model page sidebar
2026-06-18 16:36:52 +08:00
xiezhouwei
825954e43f
fix: 模型页面右侧列表被固定导航栏遮挡\n\n根因:PageLayout.jsx 第 325 行 <Header> 为 position: fixed; top: 0\n(h-14, 56px),在 /pricing 路径下也显示。但 models-page-layout\n使用 height: calc(100vh - 60px) 而非 padding-top 偏移,导致\n布局从视口顶部(y=0)开始,内容被固定头部遮盖。\n\n修改:\n- models-page-layout: padding: 56px 24px 0 + height: 100vh +\n box-sizing: border-box,使内容从固定头部下方开始\n- models-sidebar: 移除顶部 padding(padding: 0 16px 24px 0),\n 避免与外层 padding-top 叠加
2026-06-17 16:28:04 +08:00
xiezhouwei
61b0d902b6
refactor: 模型页面布局调整为左右结构(类 tokendance.models)
...
新增:
- ModelsSidebar.jsx 左侧筛选面板(作者/服务商/输入模态/供应商)
- ModelsContent.jsx 右侧内容区(全部/文本/图像/音频/视频 Tab + 搜索)
- index.css models-* 样式类
修改:
- PricingPage.jsx 布局改为 flex 左右结构替代 Semi UI Layout
- PricingCardView.jsx 新增 gridCols 参数支持 2 列网格布局
当 gridCols=2 时:grid gap-4 + 卡片 !w-full
布局: 左 280px 筛选栏 + 右自适应内容区
Tab: 全部/文本/图像/音频/视频 (映射到 filterEndpointType)
卡片: 每行 2 个模型卡片
2026-06-17 14:33:53 +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
d33f55ad55
fix: 补全移动端导航栏顺序同步 - 模型→评测→文档→控制台
...
之前只修改了 useNavigation.js(桌面导航),漏掉了
MobileSiteNavDropdown.jsx 第34行硬编码的 PRIMARY_NAV_KEYS
数组,导致移动端下拉导航顺序仍为旧顺序。
2026-06-17 14:04:33 +08:00
xiezhouwei
3cb9c85ea8
feat: 调整首页导航栏顺序为 模型→评测→文档→控制台
2026-06-17 14:00:16 +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
1474917163
chore: remove student tabs, actions and related code from user management
...
- Remove '学员待审批' and '学员管理' tabs from user management page
- Remove studentView, studentRewardAmount, studentRewardLoading states and functions
- Remove assignStudent, saveStudentRewardAmount, loadStudentRewardAmount
- Remove pending approval (同意/拒绝) actions in operations column
- Remove through/reject/unset student menu items
- Clean up UsersActions to only show '添加用户' button
- Remove student_view query params from API calls
2026-06-11 17:04:15 +08:00
xiezhouwei
9bb3b9dda9
fix: properly remove student section without breaking tag balance
...
- Remove handleApplyStudent function and studentApplying state
- Remove student card section (学员身份申请提示 and 申请学员身份按钮)
- Ensure all div/Card tags remain properly balanced
2026-06-11 14:25:40 +08:00
xiezhouwei
9dca57d501
chore: remove student application feature from frontend
...
- Remove student application section (提示和按钮) from personal settings page
- Remove student status column (学员状态) from user management table
- Remove set_student action (设为学员) from user operations dropdown
- Remove unused renderStudentStatus, handleApplyStudent, studentApplying state
2026-06-11 14:22:11 +08:00
xiezhouwei
53898ad22b
chore: remove $ symbol from wallet management page
...
- Replace $ with USD or empty in amount display
- Remove $ after Coins icon in preset amount cards
- Replace (1 $ =) with (1 USD =) in exchange rate hint
- Update renderTopUpCountInUSD to return value without $ prefix
- Keep EUR symbol unchanged
2026-06-11 11:58:41 +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