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:
@@ -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 || {}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user