Commit Graph

119 Commits

Author SHA1 Message Date
70250696ea feat(deployment): 优化宝塔 PM2 standalone 部署流程并添加一键部署脚本
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-07-07 15:32:19 +08:00
99e644caa1 feat(i18n): 添加多语言支持及翻译文本更新
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 在错误页面和未找到页面组件中集成 i18next,实现多语言动态显示
- 新增英文和尼泊尔语的错误信息、按钮文本及页面提示的翻译键值
- 扩充英文语言包,完善代理、玩家、结算中心和通用配置相关的翻译内容
- 修正和补充尼泊尔语翻译文本,统一界面用词,提升本地化体验
- 在多个配置文件中新增和调整用于界面交互和状态提示的翻译项
- 在代码中替换硬编码文本为相应的翻译函数调用,支持国际化展示
2026-07-07 09:44:12 +08:00
ef8e763551 feat(settlement): 优化回水分摊明细展示及分组逻辑
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 新增多语言支持,补充回水分摊相关字段翻译
- 优化回水分摊数据汇总逻辑,合并相同参与方的数据
- 增加分摊占比显示,提升明细信息直观性
- 实现按注单分组的回水明细展开与收起功能
- 使用表格展示汇总数据,提升界面可读性和美观度
- 调整样式和交互细节,增强用户体验
2026-07-02 14:57:55 +08:00
409b3ddd87 i18n(ne): 更新सेटलमेन्ट केंद्र和账单界面尼泊尔语翻译
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 修改सेटलमेन्ट中心相关文本,更新账单关闭对话框内容为尼泊尔语
- 完整翻译账单详情、账户账本及工作台界面相关文案
- 将所有界面操作提示、筛选器、按钮文本本地化为尼泊尔语
- 调整支付流程及层级说明为尼泊尔语,确保表达准确
- 更新错误提示与toast通知内容为尼泊尔语以提升用户体验
2026-07-02 11:40:54 +08:00
e299e84e9b Translate various JSON files to Nepali and Chinese, updating keys and values for jackpot, players, reconcile, reports, settlement, settlement center, and wallet sections. Add new keys for better localization and improve existing translations for clarity and accuracy.
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-07-02 10:35:11 +08:00
2f9e06fb78 feat(settlement): 优化结算中心待处理视图与账单显示
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 新增接口参数 agent_scope 支持筛选直接代理
- 结算中心导航新增“待处理”视图,并设置默认视图为“待处理”
- 结算中心页面新增待处理账单工作台,支持待确认、待收付和异常账单分类显示
- 调整账单状态文本,明确“已确认”改为“待收付”,“部分结清”改为“部分收付”
- 优化账单明细中的代理结算说明和收益展示文案
- 账单详情页添加当前账单主要操作提示区,提示确认、登记付款或复核状态
- 结算中心流水模块及多语言资源关于“账务流水”统一改为“流水审计”
- 优化结算主面板中待处理模式与全部模式的筛选和分页逻辑
- 结合管理员权限控制结算中心可见站点列表,增强集成站点加载逻辑
2026-07-01 15:35:25 +08:00
4484a7a77a Refactor agents console and related components
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- Simplified share rate calculation in AgentsConsole by removing unnecessary checks and directly setting the profile share rate.
- Updated the use of `profileParentCaps` to always return total share rate in the agent profile.
- Removed unused variables and memoized calculations for improved performance.
- Cleaned up imports in various files, removing unused components and optimizing the code structure.
- Added `tRef` dependency to several useEffect hooks to ensure proper reactivity to translation changes.
- Enhanced report preview tables with better label handling for various statuses and actions.
- Updated wallet filter options to align with player-side transaction types.
- Introduced new properties in types for better type safety and clarity.
2026-06-30 17:55:00 +08:00
6c3ded5b75 fix(admin): add missing tRef dependency to useCallback hooks in admin consoles
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Added tRef to dependency arrays of load() callbacks in admin-roles, admin-users, draw-finance, and risk-pools consoles to ensure proper translation updates. Removed unused imports including AdminNoResourceState, AdminLoadingState, AdminLoadingInline, cn utility, and Button component.
2026-06-30 15:15:06 +08:00
6e248207ff feat(auth): 重构认证逻辑,支持 HttpOnly Cookie 登录;移除不再使用的 Token 存储方式
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-06-30 11:41:57 +08:00
ba77dc1f5a Refactor code structure for improved readability and maintainability
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-06-29 15:52:58 +08:00
d7761218ea feat(admin): 更新登录表单样式,添加图标并优化用户体验;增强代理线路详情面板,支持直接玩家计数功能
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-06-29 15:27:14 +08:00
1c431ff0ea fix(jackpot): 流水页期号筛选移入工具栏,避免与 Tab 挤在右上角
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-06-26 18:02:19 +08:00
bea342a4d7 fix(settlement): 操作记录服务端分页、流水提示与坏账幂等键
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 操作记录 Tab 改用 settlement-operations API 服务端筛选分页
- 流水面板展示 truncated 截断提示
- 坏账核销对齐收付/补差的幂等键生成与复用
- 结算中心 URL 同步、代理控制台 lint 与玩家/奖池模块更新
2026-06-26 16:40:46 +08:00
2d80127b08 fix(funds): 结算幂等键复用与转账冲正按钮对齐 API
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 账单收付/补差幂等键在首次操作时生成并复用至成功
- 冲正按钮仅当 API 返回 can_reverse=true 时展示
2026-06-26 15:19:17 +08:00
0d984b00f0 feat(admin): 仪表盘重构、代理线路修复与后台体验优化
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 各角色仪表盘:KPI 可点击跳转、快捷入口、去重冗余区块,代理/站点降级 analytics
- 代理线路:创建玩家权限、侧栏搜索、深链 URL、档案保存与删除预检等修复
- 统一密码最短 6 位;代理模块表格/侧栏背景色一致(admin-table-inset)
- 报表、钱包、对账、开奖、结算、配置等模块结构与 i18n 同步更新
2026-06-26 14:39:22 +08:00
7d075ceb62 feat(i18n, config): enhance agent management localization and add settings/currencies hub cards
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Added new agent-related translation keys across English, Nepali, and Chinese including agentCode, agentName, loginUsername, and detailTabs. Enhanced agent console hints for child creation permissions and line root profile read-only states. Added validation error messages for share/rebate parent limits and username charset validation. Introduced common status labels (enabled/disabled) and yes/no/none text
2026-06-24 11:19:07 +08:00
9491ff10dd refactor(docs): remove legacy documentation pages and admin manual assets
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Deleted all admin and integration documentation pages from /docs routes, including admin manual PNG assets. Removed DocCode, DocFigure, DocsSidebar, and DocsShell components along with their associated navigation configurations. Eliminated "Related Docs" menu item from admin toolbar. Cleaned up unused documentation layout files and redirect pages across admin-manual, integration-guide, and docs sections.
2026-06-24 10:14:26 +08:00
ce38995546 feat(settlement): add idempotency keys to bill operations and enhance credit ledger filtering
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Added idempotency_key parameter to settlement bill payment and adjustment API calls to prevent duplicate transactions. Enhanced credit ledger panel with expanded reason filters including bet_hold_release, game_settlement_win/loss/reversal, and settlement_confirm/payout. Updated localization files to include new game_settlement_reversal labels across English, Nepali, and Chinese. Improved credit ledger reason
2026-06-23 16:50:14 +08:00
c6119da9f8 feat(admin, players): enhance player management and admin interfaces
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Updated the player management components to improve error handling and display for various operations, including ticket loading and transaction retrieval. Introduced new status badges for better visual representation of player statuses. Enhanced localization support for error messages and improved the overall user experience in the admin console. Refactored components for better maintainability and clarity.
2026-06-22 10:50:59 +08:00
d6c7d2c361 feat(agents, players): enhance agent console and players panel functionality
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Updated the AgentsConsole to improve node ID handling from URL parameters, ensuring better validation and selection logic. Enhanced the AgentsPlayersPanel by introducing new permissions for managing bills and refining the conditions for displaying bill actions based on user roles. Improved overall code clarity and maintainability through refactoring and added checks for selected bills.
2026-06-17 15:23:46 +08:00
7224d044ae refactor(admin-permissions, reports): normalize admin account kind and improve currency fallback logic
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Refactored the admin account kind resolution to utilize a normalization function for better consistency across the application. Updated the currency fallback logic in the reports console to prioritize enabled and bettable currencies, enhancing the accuracy of currency display.
2026-06-16 17:15:06 +08:00
b924496a26 feat(i18n, agents, players): enhance localization and improve agent and player management interfaces
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Updated localization files for English and Nepali, adding new entries and refining existing translations for better clarity. Enhanced the agent management interface with improved delegation features and child agent creation prompts. Improved player management functionalities, including confirmation dialogs for player actions and better handling of player creation and editing processes.
2026-06-16 17:08:12 +08:00
a020e34a7d refactor(admin-reports, i18n): remove rebate commission report and enhance localization
Removed the `getAdminReportRebateCommission` function and its references from the admin reports API and localization files. Updated CSS for improved money display handling in admin components. Enhanced localization support by adding new finance and support workspace entries in English, Nepali, and Chinese, improving user experience across the application.
2026-06-16 16:04:03 +08:00
d4cf4ff436 feat(dashboard, i18n): enhance agent dashboard and localization support
Updated the agent dashboard to include new metrics for today's bets and payouts, improving visibility for users. Enhanced localization files with additional hints and labels for better user experience across English, Nepali, and Chinese. Introduced new functions for formatting business dates and improved the handling of analytics permissions in the dashboard components.
2026-06-16 14:18:58 +08:00
a4454a54a4 refactor(risk, navigation): update risk management redirects and enhance loading states
Changed default redirects in risk management pages to point to the new risk pools section. Removed unused risk lock log components and streamlined the admin reports page with a loading state for better user experience. Added a new DocFigure component for improved documentation visuals and updated localization files to include new figure descriptions.
2026-06-16 13:50:58 +08:00
b774e22352 refactor(i18n, admin): remove page guide components and documentation links across modules
Deleted AdminPageGuide component and ADMIN_DOC_LINKS constants. Removed pageGuide text from Chinese translations and eliminated guide displays from agents, draws, integration sites, players, reports, and settlement center consoles. Cleaned up unused CardDescription elements in reconcile console.
2026-06-15 18:06:43 +08:00
641c87ff50 feat(docs, agents, risk): enhance documentation, API queries, and UI components
Updated the public documentation site with improved layout and accessibility, including new sections for client integration and admin guides. Enhanced API queries by adding 'active_only' and 'group_by' parameters for better data filtering in risk management. Refined UI components for agent management, ensuring consistent styling and improved user experience across the application. Added localization support for new documentation content in English and Nepali.
2026-06-15 17:21:50 +08:00
17335cb47a feat(docs, integration): update integration documentation and redirect legacy paths
Introduced a new public documentation site for client integration at `/docs` and `/docs/integration`, removing the need for admin login. Updated the integration guide to redirect from the old admin path to the new documentation site. Added localization support for the integration documentation in English, Nepali, and Chinese. Enhanced the layout structure and improved the handling of currency display in settlement bills.
2026-06-15 11:08:19 +08:00
e7b72cfdca fix(dashboard, settlement): update analytics scope and enhance settlement operations panel
Added 'agentNodeId' to the analytics scope in the SiteDashboardConsole for improved data handling. Introduced 'lastPage' calculation in the SettlementOperationsPanel to enhance pagination logic. Updated wallet console to use the TFunction type for better type safety in translation functions.
2026-06-14 23:08:51 +08:00
6395fcd391 refactor(agents): simplify billing currency logic in players panel
Removed redundant fallback for billing currency, streamlining the logic to use the player's default currency or defaulting to "NPR". Updated the display of unpaid amounts in the billing bills list to utilize the simplified currency logic, enhancing code clarity and maintainability.
2026-06-14 23:04:27 +08:00
4fe206cb10 feat(agents, validation): enhance agent profile and player management with input validation
Added input validation for admin login and player creation forms, ensuring usernames and passwords meet specified criteria. Introduced new components for numeric input handling in agent profile fields, improving user experience. Updated agent line detail and provision wizard to reflect these changes, enhancing overall data integrity and user interaction.
2026-06-14 21:13:21 +08:00
6ea0a6feec feat(agents, config, dashboard, i18n): add agent line provision wizard, site deletion, and site dashboard with multi-language support
Added agent line provision wizard page with permission gating, replacing redirect placeholder. Introduced site deletion API and UI with confirmation dialog in integration sites management. Added new site-scoped dashboard panel showing bet metrics, P/L trends, active players, and quick links. Enhanced chart tooltip to support custom formatters and fix indicator color
2026-06-12 20:47:53 +08:00
24fd7c10bd feat(settlement, admin): introduce new types and functions for downline share and settlement period hints
Added new types for downline share breakdown and settlement period open hints to enhance the agent settlement API. Updated the admin console components to support these new features, improving the user experience with better data presentation and interaction. Additionally, refined the date range field to accommodate new calendar markers and hints, ensuring a more intuitive interface for managing settlement periods.
2026-06-12 16:01:42 +08:00
1eb6702c51 refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components 2026-06-11 18:02:02 +08:00
44ad51698f feat(config, i18n): add integration guide documentation page with multi-language support
Added new integration guide page accessible from config hub, providing SSO and wallet integration documentation for client engineering teams. Includes translations in English, Nepali, and Chinese. Refactored percentage conversion utilities across agent management modules to use consistent `percentValueToUi` function, removing deprecated `ratioToPercentUi` and `percentUiToRatio` helpers.
2026-06-11 09:23:41 +08:00
13ae574aad feat(dashboard, risk): add SWR query hook and lazy load charts 2026-06-10 13:58:31 +08:00
1c80a3ae75 refactor(reports): 优化报表导出和数据处理逻辑
- 异步动态引入 XLSX 库以优化加载性能
- 抽取导出表格为工作簿的异步函数,提高代码复用性
- 使用构建函数封装报表数据行和汇总的生成逻辑
- 替换硬编码数据聚合为调用构建函数,简化代码结构
- 在导出功能中支持异步操作,增强用户体验
- 统一格式化和统计报表数据,提升代码可维护性
2026-06-10 11:06:44 +08:00
dfd475856e refactor(admin, draws, settlement): unify admin datetime display and tighten wallet write permission 2026-06-09 15:06:52 +08:00
b7278e68a4 feat(admin, settlement, dashboard): strengthen permission gating and billing workflows 2026-06-09 13:44:19 +08:00
7e65c53732 feat(admin, i18n): enhance reports, draws, config, and player workflows 2026-06-08 17:41:55 +08:00
af982bb9f7 feat(api, agents, i18n): enhance settlement features and multi-language support
Added new types and API functions for settlement period summaries and credit ledgers, improving the management of agent settlements. Updated the admin console to reflect these changes, enhancing user experience with better navigation and data presentation. Additionally, expanded multi-language support by incorporating new translations in English, Nepali, and Chinese for settlement-related terms, ensuring consistency across the platform.
2026-06-05 18:00:59 +08:00
65eaeecf8c feat(agents, i18n): enhance agent management and settlement features with new translations and UI updates
Added new translations for agent management and settlement features in English, Nepali, and Chinese, improving multi-language support. Updated the agents console to reflect changes in funding modes and player details, enhancing user experience. Refactored the admin permission gate to include new logic for handling bound line agents, ensuring better permission management. Additionally, streamlined the UI for agent-related pages and improved navigation to the settlement center, consolidating related functionalities for better accessibility.
2026-06-04 18:01:05 +08:00
c2eac2fafc feat(i18n, agents): enhance multi-language support with new agent-related translations
Added new translations for agent management features in English, Nepali, and Chinese, including terms related to sub-agents, player management, and validation messages. This update improves the user experience by ensuring consistent terminology across different languages in the agents console.
2026-06-04 10:15:19 +08:00
cbc499e5b2 feat(api, agents): add agent node profile retrieval and update functionality
Implemented new API functions to fetch and update agent node profiles, enhancing the management capabilities for agent data. This addition improves the overall functionality of the admin agents console, allowing for better user interaction with agent profiles. Updated related types for improved type safety and clarity in the codebase.
2026-06-04 09:17:55 +08:00
59b0684ea1 refactor(agents-console): enhance UI styling and remove unused delegation content
Updated the styling of agent tree nodes for improved visual feedback on selection and hover states. Removed deprecated delegation management UI components to streamline the agents console. This refactor enhances user experience and maintains a cleaner codebase.
2026-06-03 11:33:03 +08:00
bbb6f28459 feat(admin, i18n): implement user deletion functionality and enhance permission management translations
Added a new API function to delete admin users, improving user management capabilities. Updated the admin permission package selector to include new permission levels for nodes, roles, and users. Enhanced multi-language support by adding translations for these new permission levels in English, Nepali, and Chinese. Additionally, improved the agents console to handle deletion confirmations and display relevant block reasons, ensuring a smoother user experience.
2026-06-03 10:56:44 +08:00
ce27a3ec8a feat(admin, i18n): enhance admin dashboard and user management with new features and translations
Added the ability to filter admin dashboard data by site code and agent node ID, improving data retrieval capabilities. Introduced new functions for fetching dashboard data based on these parameters. Updated the admin users and roles management components to reflect these changes. Enhanced multi-language support by adding new translations for agent management and permission levels in English, Nepali, and Chinese, ensuring a consistent user experience across the admin interface.
2026-06-03 10:07:51 +08:00
b15e377187 feat(api, i18n): add agent_node_id to various admin queries and enhance multi-language support
Introduced the agent_node_id field in AdminDrawListQuery, AdminPlayerListQuery, AdminSettlementBatchListQuery, TicketItemsListQuery, and TransferOrderListQuery to improve filtering capabilities. Updated the admin-breadcrumb and admin-sidebar components to include new translations for agent-related terms in English, Nepali, and Chinese, enhancing the overall user experience and multi-language support across the admin interface.
2026-06-02 14:37:08 +08:00
a4e7a2d228 feat(dashboard, i18n): 增强玩家身份信息展示并完善多语言支持
更新仪表盘相关组件,采用新的玩家身份信息字段(Player Identity Columns),提升数据展示的清晰度与可读性。
优化奖池记录(Jackpot Records)中的玩家信息展示方式,便于快速识别玩家身份。
改进结算明细(Settlement Details)页面的玩家身份展示,提升数据追踪与核对效率。
更新玩家注单(Player Tickets)与钱包交易(Wallet Transactions)相关界面,统一使用新的玩家身份信息展示逻辑。
在英文、尼泊尔语与中文语言包中新增玩家相关术语翻译,增强多语言支持。
提升系统整体用户体验,确保各模块中的玩家信息展示更加一致、直观。
2026-06-01 17:25:22 +08:00
2716591164 feat(dashboard, i18n): enhance result batch queue management and translations
Added new translations for "resultBatchQueueScope", "batchPendingDraws", and "batchCurrentDrawPending" in English, Nepali, and Chinese language files. Updated the dashboard console to manage the result batch queue, including a new component for displaying pending review totals and related draw counts. This improves the user interface for monitoring batch statuses and enhances multi-language support.
2026-06-01 16:01:32 +08:00