Commit Graph

63 Commits

Author SHA1 Message Date
d90ca3c66b refactor(api): 简化 API 路径定义,移除 API_V1_PREFIX
更新多个 API 文件,将 API_V1_PREFIX 替换为直接使用 /admin 路径。
简化 API 路径定义逻辑,提升代码可读性与维护性。
统一后台管理接口的路由配置,确保各管理端 API 端点保持一致性。
2026-05-29 10:29:11 +08:00
27727f6371 feat(env, config, i18n): 增强环境配置与多语言支持
更新 .env.example,提供更清晰的 API 配置说明与本地开发环境配置指引。
修改 next.config.ts:支持动态解析允许的开发环境来源(origins),提升配置灵活性。
重构 admin-language-switcher:优化语言切换同步机制,确保语言变更能够及时生效。
优化英文、尼泊尔语与中文语言包中的错误提示文案,进一步明确 API 配置要求。
精简 admin-http.ts:将 API Base URL 校验逻辑抽离至独立模块并统一导出,提升代码可维护性。
2026-05-29 09:17:37 +08:00
0bfcf6c59c feat(i18n, config): 增强多语言支持并新增系统配置项
更新英文、尼泊尔语与中文语言包,新增默认币种、开奖间隔、投注窗口及相关设置的翻译文案,提升界面清晰度与用户体验。
在系统设置中新增开奖相关配置字段,增强彩票系统参数管理的灵活性。
优化多语言国际化支持,确保后台管理界面在不同语言环境下的信息表达一致性。
2026-05-28 14:51:07 +08:00
b76ade9608 feat(config): 更新环境配置与 API 处理逻辑
修改 .env.example,补充环境切换说明并新增生产环境 API 地址配置。
更新 next.config.ts:使用 API_BASE_URL 进行 API 重写配置,确保 API 路由一致性。
重构 login-form.tsx:移除 API 配置检查逻辑,简化登录流程。
调整 admin-http.ts:通过 Next.js 代理转发 API 请求,提升后端通信稳定性。
2026-05-28 10:12:05 +08:00
788c7998eb feat(integration): 为集成站点与开奖管理新增 AdminPermissionGate 权限控制
使用 AdminPermissionGate 包裹集成站点与开奖相关组件,根据权限进行访问控制。
新增集成管理与开奖管理相关权限常量。
更新相关 UI 组件以适配权限校验逻辑,提升系统安全性与用户体验。
增强国际化支持,在英文、尼泊尔语与中文语言包中新增集成相关文案。
2026-05-27 16:51:48 +08:00
5eabbcf0ee feat(integration): 新增 site_code 支持并增强玩家与注单管理界面
在后台玩家与注单相关 API 中新增 site_code 参数,支持按站点筛选数据。
更新 PlayersConsole 与 PlayerTicketsConsole UI 组件,新增站点选择筛选功能。
增强国际化支持,在英文与中文语言包中新增站点相关文案。
优化配置中心页面,新增跳转至集成站点管理的入口,提升后台导航体验。
2026-05-27 13:36:44 +08:00
e87229c1b7 feat(i18n): 更新英文、尼泊尔语与中文的注单状态翻译
修改多语言配置文件,将 success 统一替换为 placed,并新增 partial_failed 与 refunded 状态,以提升注单管理中的状态表达清晰度。
增强国际化支持,确保多语言间术语一致性,进一步优化后台管理界面的用户体验。
2026-05-27 09:57:56 +08:00
0bd9d8d3d8 feat(dashboard, i18n): 增强仪表盘视觉效果与多语言支持
在英文、尼泊尔语和中文语言包中新增 “Other statuses” 翻译,提升仪表盘指标展示的清晰度。
在仪表盘中集成新的 StatCard 组件,用于更直观地展示关键指标数据。
更新仪表盘趋势图表,采用 recharts 实现更丰富的数据可视化效果。
重构现有组件与布局,优化整体交互与用户体验,使界面更加直观易用。
2026-05-26 16:32:11 +08:00
eb83bcf360 feat(api, ui, i18n): 增强奖池管理与钱包功能
新增奖池余额调整与调整记录查询相关 API,提升后台对奖池的管理与控制能力。
更新奖池与钱包相关多语言文案,新增余额调整与转账完成提示信息,提升用户理解与反馈体验。
优化奖池管理相关 UI 组件,新增余额调整功能并改进页面布局,提升操作易用性。
重构相关组件以整合新功能,并进一步优化后台管理界面的整体用户体验。
2026-05-26 14:59:41 +08:00
60271d87fb feat(i18n): enhance locale support for rebate settings and report exports
- Updated English, Nepali, and Chinese locale files to include new translations for the "apply rebate to payout" feature, enhancing clarity on its functionality.
- Added new export options for previewing CSV and Excel files in reports, improving user experience with clearer export capabilities.
- Enhanced internationalization support across multiple locales to ensure consistent messaging in the admin interface.
2026-05-26 13:53:22 +08:00
a76b681828 feat(api, i18n): add admin report job functionalities and enhance locale support
- Introduced new API functions for managing admin report jobs, including download and post operations.
- Updated English, Nepali, and Chinese locale files to include new messages related to report job actions and rollback confirmations.
- Enhanced user experience by providing clearer instructions and feedback in the admin interface.
- Refactored related components to integrate new functionalities and improve overall usability.
2026-05-26 11:48:51 +08:00
7fb5ec6dff feat(i18n): add saveFailed message and dimensionRatesMixedHint to locale files
- Updated English, Nepali, and Chinese locale files to include a new message for "Failed to save configuration".
- Added a hint for mixed rebate rates within the same dimension to enhance user understanding.
- Improved internationalization support across multiple locales for better user experience in the admin interface.
2026-05-26 11:23:36 +08:00
4080f0b601 feat(ui): enhance table and admin components with improved layout and status display
- Updated global CSS to center-align table headers and cells, ensuring a consistent layout.
- Modified admin table components to replace switches with status badges for better clarity.
- Enhanced internationalization support by adding new strings for version actions and validation messages in multiple locales.
- Refactored configuration document screens to include version selection and improved user feedback on status changes.
2026-05-26 11:13:16 +08:00
05fa0cbeec feat(i18n): add batch group switch text to English, Nepali, and Chinese locales
- Updated the English, Nepali, and Chinese locale files to include a new translation for "Toggle batch switch for {{group}}".
- Enhanced internationalization support for the admin interface by adding relevant strings for improved user experience.
2026-05-26 10:33:03 +08:00
fbe385666a feat(admin): enhance login form with language switcher and update script handling
- Added AdminLanguageSwitcher to the login form for improved language selection.
- Replaced inline script with next/script component for better performance and safety in layout.tsx.
- Updated language initialization logic to ensure consistent SSR and client rendering.
2026-05-26 09:57:05 +08:00
f080e6ba8e feat(admin): add draw management features including create, update, delete, and batch delete functionalities
- Implemented API functions for creating, updating, and deleting draws.
- Enhanced the admin draws console with UI components for managing draws.
- Added internationalization support for new draw management actions and messages.
2026-05-25 18:00:43 +08:00
eb02252431 refactor: remove unused admin user update function and update related components to use new API 2026-05-25 16:43:55 +08:00
84bf924378 feat(i18n): 增强管理端多语言支持,优化语言初始化与恢复逻辑 2026-05-25 14:53:15 +08:00
ddedef824e refactor: 合并多语言支持的显示名称字段,优化奖池手动爆发功能的返回数据结构,增强管理端权限控制 2026-05-25 14:31:24 +08:00
7d01e5c47e refactor: 优化配置与奖池页面多语言编辑及管理端列表布局 2026-05-22 16:55:34 +08:00
2d4a23968e refactor: 更新风险监控页面标题为国际化支持,优化风险池控制台的标题处理 2026-05-22 16:11:36 +08:00
51891548a5 feat: 新增账号设置页面并优化报表与管理端交互样式 2026-05-22 14:34:04 +08:00
2ca2790f07 refactor: 简化报表中心状态展示并调整不可用文案 2026-05-22 11:32:48 +08:00
b2b934e25e feat(admin): 上线报表中心页面并接入九类报表查询导出
新增报表控制台、汇总 API 客户端与中英尼文案,九类报表均可筛选预览并导出 CSV/Excel。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 10:08:43 +08:00
e8a5507411 refactor: 更新管理端页面元数据,统一国际化支持,移除冗余代码 2026-05-21 17:27:52 +08:00
26feed3c4f refactor: 重构奖池配置页面,移除冗余组件,优化加载体验与国际化支持 2026-05-21 16:46:48 +08:00
3ce84af39c refactor: 更新配置模块的样式与布局,优化组件结构,增强可读性与一致性 2026-05-21 16:33:22 +08:00
055c613a6d feat: 添加货币管理功能,更新国际化支持,移除报表相关代码 2026-05-21 16:24:56 +08:00
6ecbaf5fb4 refactor: 优化管理端配置页紧凑布局与时间展示 2026-05-20 16:57:47 +08:00
08a11a1589 feat: 统一管理端多语言、配置与票据/结算页面重构 2026-05-20 16:27:06 +08:00
37b13278ef feat: 重构管理端列表与风控/结算导航,新增表格导出和结算审核确认 2026-05-19 17:06:56 +08:00
a1fb163f1b feat: 增加角色管理与奖池配置迁移,优化管理端权限与样式 2026-05-19 14:40:04 +08:00
d625c59393 feat: 统一管理端导航为后端下发菜单,移除本地权限过滤 2026-05-19 09:34:52 +08:00
1b1dfc92ab feat: 增加管理端多语言与多模块界面国际化支持 2026-05-19 09:11:55 +08:00
49a4caf01e feat: 增加管理端多语言与风控/报表/奖池操作能力 2026-05-18 15:08:34 +08:00
afffa4e508 refactor: 优化管理端配置页加载与导航,更新本地端口说明 2026-05-18 11:28:19 +08:00
fae8c1ae01 feat: 扩展开奖与结算管理,支持手动操作、导出和版本展示 2026-05-16 18:00:57 +08:00
34f9175304 refactor(config): 优化版本切换抽屉与玩法配置输入展示 2026-05-16 11:02:38 +08:00
72a480ccc8 refactor(config): 优化玩法配置版本切换布局 2026-05-16 10:52:44 +08:00
1578c7e214 feat(config): 重构配置中心导航与版本展示,支持全量版本加载 2026-05-16 10:28:00 +08:00
8bd7cc3d73 feat(config): 重构配置模块导航与版本切换,新增版本删除能力 2026-05-15 15:30:52 +08:00
000295ae2b feat: 重构开奖模块导航与面包屑,优化期号详情与列表展示 2026-05-14 13:43:45 +08:00
afa592dd91 feat(config): add wallet configuration management page
新增钱包配置管理页面,包含转入转出限额配置功能,添加对应路由导航与API接口,完善配置元信息
2026-05-14 11:17:57 +08:00
2dfffd1fd1 feat: 新增玩家管理模块,完善钱包转账单操作能力
1. 重构玩家模块导航与元信息,将原玩家查询改为玩家列表
2. 新增完整的玩家CRUD API与前端管理页面,支持搜索、新建、编辑、删除玩家
3. 为转账单新增冲正与人工处理操作,补充状态显示与对应枚举
4. 优化用户列表表格空值展示与样式细节
5. 调整钱包子导航,移除旧的玩家钱包入口
2026-05-14 10:42:43 +08:00
c4d566fc48 feat: 添加管理员用户管理功能,包括创建、更新、删除用户的API和界面支持 2026-05-13 11:35:39 +08:00
96b966cf62 feat: 更新管理员导航,重定向菜单权限至根路径,添加角色同步API,移除菜单权限模块 2026-05-13 10:40:12 +08:00
188c6a04cf feat: 移除服务台模块,更新管理员导航以重定向至菜单权限页面 2026-05-13 09:52:36 +08:00
5dd7aa1185 feat: 更新管理员导航,添加管理员权限模块和相关API导出,优化仪表盘链接样式 2026-05-11 17:54:35 +08:00
76e318be8f refactor: 移除冗余注释和描述,优化管理员模块的代码结构 2026-05-11 17:21:12 +08:00
217ed7c02f feat: 重构仪表盘逻辑,整合管理员仪表盘API,移除冗余代码,优化数据加载和状态管理 2026-05-11 17:02:37 +08:00