feat(diagnosis): add streaming progress support and tunnel-grouped forward list

- Add SSE streaming endpoints for tunnel/forward diagnosis with real-time progress
- Increase diagnosis timeout to 2 minutes with context propagation
- Group forwards by tunnel within user groups in UI
- Add nginx SSE proxy configuration for streaming endpoints
This commit is contained in:
sagitchu
2026-02-28 20:09:25 +08:00
parent de21a55f37
commit a92eb168aa
11 changed files with 1511 additions and 228 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ export const diagnoseTunnel = (tunnelId: number) =>
Network.post<TunnelDiagnosisApiData>(
"/tunnel/diagnose",
{ tunnelId },
{ timeout: 60 * 1000 },
{ timeout: 120 * 1000 },
);
export const updateTunnelOrder = (data: {
tunnels: Array<{ id: number; inx: number }>;
@@ -166,7 +166,7 @@ export const diagnoseForward = (forwardId: number) =>
Network.post<ForwardDiagnosisApiData>(
"/forward/diagnose",
{ forwardId },
{ timeout: 60 * 1000 },
{ timeout: 120 * 1000 },
);
// 转发排序操作