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.
This commit is contained in:
2026-06-03 10:56:44 +08:00
parent ce27a3ec8a
commit bbb6f28459
12 changed files with 249 additions and 57 deletions

View File

@@ -9,6 +9,13 @@
"editNode": "Edit node",
"deleteNode": "Delete node",
"deleteNodeConfirm": "This action cannot be undone. Make sure the node has no children, users, or roles.",
"deleteNodeBlockedHint": "Remove child agents, roles, and accounts before deleting this node",
"deleteNodeBlockedPrefix": "Cannot delete yet: ",
"deleteBlocked": {
"children": "{{count}} child agent(s) remain",
"roles": "{{count}} role(s) must be removed in the Roles tab first",
"users": "{{count}} bound account(s) remain"
},
"code": "Code",
"name": "Name",
"depth": "Depth",
@@ -48,6 +55,7 @@
"deleteSuccess": "Deleted role {{name}}",
"permissionSaveSuccess": "Permissions updated",
"readOnlyTemplate": "Read-only template",
"inUse": "{{count}} in use",
"permissionSubsetHint": "Only permissions you hold can be assigned"
},
"users": {
@@ -57,6 +65,8 @@
"password": "Password",
"roles": "Roles",
"createSuccess": "Created account {{name}}",
"roleSaveSuccess": "Roles updated for {{name}}"
"roleSaveSuccess": "Roles updated for {{name}}",
"deleteConfirm": "This admin will no longer be able to sign in. This cannot be undone.",
"deleteSuccess": "Deleted account {{name}}"
}
}