← Về thư mục
frontend/src/features/customize/api.ts
- ApiError · class · L11-L30 — class ApiError extends Error
- constructor · method · L17-L29 — constructor(body: unknown, httpStatus: number)
- apiErrorText · function · L32-L36 — function apiErrorText(e: unknown): string
- api · function · L38-L59 — async function api( p: string, o: RequestInit = {}, ): Promise>
- isDiagnosticsConfigWrite · function · L68-L78 — function isDiagnosticsConfigWrite(path: string, method: string): boolean
- DiagnosticCheck · type · L80-L86 — type DiagnosticCheck = { name: string; status: "ok" | "warn" | "fail"; detail: string; remedy?: string; facts?: Record; };
- DiagnosticsChecks · type · L87-L91 — type DiagnosticsChecks = { status: DiagnosticCheck["status"]; request_id: string; checks: DiagnosticCheck[]; };
- record · function · L93-L95 — function record(value: unknown): value is Record
- checkStatus · function · L96-L98 — function checkStatus(value: unknown): value is DiagnosticCheck["status"]
- diagnosticsChecks · function · L101-L122 — function diagnosticsChecks(body: Record): DiagnosticsChecks
- invalid · function · L103-L105 — invalid = ()
- DiagnosticsStatus · type · L124-L128 — type DiagnosticsStatus = { security: Record; environment: Record; request_id: string; };
- getDiagnosticsStatus · function · L130-L145 — async function getDiagnosticsStatus(): Promise
- runDiagnosticsChecks · function · L147-L168 — async function runDiagnosticsChecks(): Promise
- downloadDiagnosticsBundle · function · L170-L199 — async function downloadDiagnosticsBundle(): Promise