wangxiaoji
f55309e953
首页改版:紫色主题 + 登录页重构
2026-07-03 17:51:11 +08:00
wangxiaoji
c8d76437cb
移除全局搜索和模型对比功能
2026-07-01 16:30:53 +08:00
wangxiaoji
04c4e17dcc
新增全局搜索、新用户引导、模型对比工具
...
- 顶部搜索框:/ 键唤起,搜索模型名称/描述/标签,点击跳转到定价页
- 新用户引导:首次登录弹出三步向导(获取 Key → 选择模型 → 首次调用)
- 模型对比:并排对比最多4个模型的价格、支持功能、标签等属性
2026-07-01 16:24:26 +08:00
wangxiaoji
42070a5300
RPM/TPM 卡片样式统一:移除蓝色字体与 monospace,与其他统计卡片保持一致
2026-07-01 16:07:24 +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
ac1120fc33
重构充值页面和统一控制台页面风格
...
- 充值页面:全新设计余额概览、预设金额卡片、支付方式、兑换码区域
- 控制台主页:移除灰色背景,统一页面边距和宽度
- API测速页:移至控制台下,调整字体大小和间距
- 侧边栏:新增API测速菜单入口
- 修复个人设置页TwoFASetting组件缺少IconShield导入
- 多个页面统一顶部间距和背景样式
2026-07-01 14:13:15 +08:00
wangxiaoji
65c28251f9
时间范围联动数据:Dashboard 管理 rangeKey 状态,useDashboardData 按天数生成 dailyStats
2026-06-30 14:35:03 +08:00
wangxiaoji
d2913ff260
Token 使用趋势全面升级:悬停提示 + 模型明细 + 视觉优化
2026-06-30 14:24:25 +08:00
wangxiaoji
8a9e0226d0
修复柱状图不显示:w-full 导致 flex 溢出,改为 flex-1 均分空间
2026-06-30 14:07:16 +08:00
wangxiaoji
31f4d247fe
修复柱状图与日期标签对齐:flex 布局统一使用 justify-between,移除峰值加粗
2026-06-30 14:07:00 +08:00
wangxiaoji
66e61ef51b
Token 使用趋势折线图替换为柱状图
2026-06-30 14:06:47 +08:00
wangxiaoji
1ff561c32c
时间范围改为下拉菜单:预设选项 + 自定义日期范围 + 应用按钮
2026-06-30 14:06:37 +08:00
wangxiaoji
6b73f5b6b9
Token 使用趋势添加时间范围控制栏:粒度选择器与刷新按钮
2026-06-30 14:06:05 +08:00
wangxiaoji
dd5474f500
修复 Token 使用趋势日期标签与迷你图对齐:日期均匀分布匹配数据点
2026-06-30 14:05:22 +08:00
wangxiaoji
715487fda7
Token 使用趋势日期标签可读性优化:非峰值日期颜色从浅灰改为中灰,确保可见
2026-06-30 10:04:32 +08:00
wangxiaoji
847c2bd9d3
Token 使用趋势 X 轴标签从星期改为具体日期(月/日 格式)
2026-06-30 09:59:15 +08:00
wangxiaoji
6a99f229e3
修复控制台最近调用显示失败的问题:isSuccess 将 LogTypeConsume(2) 和 LogTypeTopup(1) 也识别为成功
2026-06-30 09:30:34 +08:00
wangxiaoji
8e8f19fc10
将控制台页面和首页底部的 TokenFactory 改为从 getSystemName() 动态读取,统一品牌名称为 TuringToken
2026-06-29 17:21:31 +08:00
wangxiaoji
dd1b881cf1
重新设计登录页面:采用分栏布局,左侧品牌展示区(深色背景+Logo+标语+色彩装饰),右侧登录表单区
2026-06-29 17:05:08 +08:00
wangxiaoji
dc1ba114e5
修改:默认 logo 路径改为 /logo.jpg
2026-06-29 16:53:30 +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
1e3ce2c0d2
feat: remove channel ID and username search fields from usage log filters
2026-06-23 14:11:36 +08:00
xiezhouwei
648c9917ab
fix: hide cache prices on model card, show only input and output prices
2026-06-23 11:15:24 +08:00
xiezhouwei
a93c04ce28
fix: show all configured channel prices (output/cache/createCache) on model card surface, not just input
2026-06-23 11:09:12 +08:00
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
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
86bb4ee0cf
rename: 体验馆 → 体验 (menu, settings, i18n across 11 locales)
2026-06-21 18:26:24 +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
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
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
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
d33f55ad55
fix: 补全移动端导航栏顺序同步 - 模型→评测→文档→控制台
...
之前只修改了 useNavigation.js(桌面导航),漏掉了
MobileSiteNavDropdown.jsx 第34行硬编码的 PRIMARY_NAV_KEYS
数组,导致移动端下拉导航顺序仍为旧顺序。
2026-06-17 14:04:33 +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
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
b63f75ade4
feat: add captcha verification for login form
...
- Add /api/captcha endpoint with captcha generation/verification service
- Add captcha_enabled option in system settings (model/option.go)
- Add captcha display and refresh logic in LoginForm
- Fix captcha not showing on Chrome due to Semi UI Form.Input suffix
incompatibility; refactored to standalone flex layout
- Fix stale localStorage cache preventing captcha rendering on first visit
by proactively fetching /api/status on LoginForm mount
- Add captcha_enabled toggle in admin SystemSetting panel
- Add i18n keys for captcha-related text (zh-CN, en)
2026-06-05 13:57:13 +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