feat(pool): add table-driven account batch actions

This commit is contained in:
elky
2026-07-19 16:09:20 +08:00
parent 95053f9502
commit 644ae9c1bf
20 changed files with 1403 additions and 1095 deletions
+2
View File
@@ -1067,6 +1067,7 @@ const legacyExactEnglishMessages: Record<string, string> = {
'选择一个或多个分组': 'Select one or more groups',
'暂无用户分组': 'No user groups',
'选择批量动作': 'Select batch action',
'选择执行动作': 'Select action to execute',
'只会提交当前动作对应的字段': 'Only fields for the current action will be submitted',
'批量修改用户角色': 'Batch update user roles',
'将所选用户统一调整为同一个角色。管理员角色拥有后台管理权限,请确认选择范围。': 'Set selected users to the same role. Admin roles have backend management permissions, so verify the target scope.',
@@ -2581,6 +2582,7 @@ const legacyDynamicPatterns: Array<[RegExp, (match: RegExpMatchArray) => string]
[/^成功 (.+) 个,失败 (.+) 个$/u, match => `Succeeded ${match[1]}, failed ${match[2]}`],
[/^批量操作完成:成功 (.+) 个,失败 (.+) 个$/u, match => `Batch action complete: succeeded ${match[1]}, failed ${match[2]}`],
[/^匹配 (.+) 个,当前页 (.+) 个,已选 (.+) 个$/u, match => `Matched ${match[1]} items, current page ${match[2]} items, selected ${match[3]} items`],
[/^已选 (.+) 个$/u, match => `Selected ${match[1]} items`],
[/^已强制下线 (.+) 个设备$/u, match => `Signed out ${match[1]} devices`],
[/^用户已(.+)$/u, match => `User ${translateLegacyByTokens(match[1]).toLowerCase()}d`],
[/^(.+)用户失败$/u, match => `Failed to ${translateLegacyByTokens(match[1]).toLowerCase()} user`],