Commit Graph

69 Commits

Author SHA1 Message Date
bdd2d03ab6 refactor(settings): enhance draft handling with generic utility functions
Refactored the draft management logic in SystemSettingsScreen by introducing a generic utility function, applyDraftFields, to streamline the process of applying changes to the draft state. Updated the discardSection and handleSaveRuntime functions to utilize this new utility, improving code readability and maintainability.
2026-06-01 15:48:22 +08:00
53bf64cc53 feat(draws, i18n): 新增批量删除功能并增强多语言支持
在后台开奖管理模块中新增删除待发布结果批次的 API 接口。
更新 DrawPublishConsole 与 DrawReviewConsole 组件,新增“丢弃批次”按钮,支持删除草稿状态的结果批次。
新增删除成功与删除失败的 Toast 提示,优化用户操作反馈体验。
在英文、尼泊尔语与中文语言包中新增批量删除确认及删除成功相关翻译文案,完善多语言支持。
提升开奖管理流程的灵活性与易用性,方便管理员快速清理无效或误创建的批次数据。
2026-06-01 15:41:28 +08:00
d30c135dde feat(i18n, draws): 新增“随机填充”翻译并实现随机选号功能
在英文、尼泊尔语与中文语言包中新增 “Fill Randomly(随机填充)” 翻译文案,完善多语言支持。
在 DrawReviewConsole 组件中新增随机选号功能,用户可通过按钮一键填充随机号码。
优化开奖录入流程,减少手动输入操作,提升使用效率与用户体验。
2026-06-01 14:54:53 +08:00
a550c418e5 refactor(layout, i18n, admin): 优化布局结构与多语言支持
调整 AdminShell 组件的子组件顺序,提升代码可读性。更新 admin-breadcrumb 组件,简化导航标签翻译逻辑,确保多语言支持的一致性。重构 admin-language-switcher 组件,优化语言切换的用户体验,增强界面交互性。更新多语言配置,新增登录界面的副标题,提升用户体验。
2026-05-30 17:46:27 +08:00
36117144dc refactor(env, api, i18n): 更新环境配置与API代理逻辑
修改 .env.example,优化API配置说明并明确线上环境要求。更新多语言错误提示,确保用户在未启用API代理时获得清晰反馈。重构API代理逻辑,移除开发代理文件,简化代码结构,提升可维护性。
2026-05-29 15:55:18 +08:00
671c737781 refactor(env, i18n, http): 更新环境配置与错误提示信息
修改 .env.example,简化 API 配置说明并明确生产环境要求。更新多语言错误提示,确保用户在未启用 API 代理时获得清晰反馈。重构 admin-http.ts,优化 API 基础 URL 的解析逻辑,提升代码可维护性。
2026-05-29 11:48:13 +08:00
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