fix: resolve TypeScript type-check errors

- Add cacheHitRate to ProxyMetricsService, handler, and router schema
- Fix StatCard to support string values and purple accent
- Fix duplicate tabs keys in i18n translations (EN/ZH/RU)
- Add missing cacheStatus translations across all languages
This commit is contained in:
Gemini Nexus Bot committed 2026-04-23 02:50:09 -03:00
1 parent 0be7d7fea2
commit fd1b2b8bc0
250 files changed
+49653 -60

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
#pragma once
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
#ifdef __cplusplus
extern "C" {
#endif
typedef HRESULT (WINAPI *LPAUTHENTICATION_ROUTINE)(
__in LPVOID pVoid,
__in HINTERNET hUrl,
__in long lHttpCode,
__out BOOL* pfRetrySend,
__out BOOL* pfRetry
);
typedef int (WINAPI *LPCANCEL_ROUTINE)(
__in HRESULT hrError,
__in_z_opt LPCWSTR wzError,
__in BOOL fAllowRetry,
__in_opt LPVOID pvContext
);
// structs
typedef struct _DOWNLOAD_SOURCE
{
LPWSTR sczUrl;
LPWSTR sczUser;
LPWSTR sczPassword;
} DOWNLOAD_SOURCE;
typedef struct _DOWNLOAD_CACHE_CALLBACK
{
LPPROGRESS_ROUTINE pfnProgress;
LPCANCEL_ROUTINE pfnCancel;
LPVOID pv;
} DOWNLOAD_CACHE_CALLBACK;
typedef struct _DOWNLOAD_AUTHENTICATION_CALLBACK
{
LPAUTHENTICATION_ROUTINE pfnAuthenticate;
LPVOID pv;
} DOWNLOAD_AUTHENTICATION_CALLBACK;
// functions
HRESULT DAPI DownloadUrl(
__in DOWNLOAD_SOURCE* pDownloadSource,
__in DWORD64 dw64AuthoredDownloadSize,
__in LPCWSTR wzDestinationPath,
__in_opt DOWNLOAD_CACHE_CALLBACK* pCache,
__in_opt DOWNLOAD_AUTHENTICATION_CALLBACK* pAuthenticate
);
#ifdef __cplusplus
}
#endif