feat: add permission-based access control and improve alert table UI

- Implement PermissionGuard component for route-level permission enforcement
- Add tree-based permission checkbox group in role management popup
- Gate SSE connection, unread count fetch, and rule edit actions on user permissions
- Add skip401Refresh option and auto token refresh on 401 response
- Improve alert table with fixed columns, explicit widths, and text ellipsis
- Add i18n entries for permission guide and rule menu descriptions (en/zh)
- Add expo-api nginx proxy configuration
- Add .claude to .gitignore

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 18:04:07 +08:00
parent 710da86521
commit 43d6e9207a
20 changed files with 742 additions and 48 deletions

View File

@@ -254,6 +254,7 @@ export async function getAlertPages(
method: "GET",
params,
skip417Error: true,
skip401Refresh: true,
...(options || {}),
});
}
@@ -261,6 +262,7 @@ export async function getAlertDetail(id: number | string, options?: ObjType) {
return request(`/alert-record/${id}`, {
method: "GET",
skip417Error: true,
skip401Refresh: true,
...(options || {}),
});
}
@@ -376,6 +378,7 @@ export async function getRulePages(
export async function getRuleDetail(id: number | string, options?: ObjType) {
return request(`/rule/${id}`, {
method: "GET",
skip401Refresh: true,
...(options || {}),
});
}