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

@@ -37,12 +37,18 @@ type RenderGroup = {
const PACKAGE_LEVEL_ORDER: Record<string, number> = {
view: 10,
node_view: 10,
role_view: 11,
user_view: 12,
review: 20,
export: 20,
manage: 30,
node_manage: 30,
role_manage: 31,
user_manage: 32,
config: 30,
control: 30,
reopen: 30,
reopen: 32,
special: 40,
};