add cache management page

This commit is contained in:
MaysWind
2026-02-27 00:50:52 +08:00
parent 40a366e68d
commit d95fcd8b00
31 changed files with 685 additions and 39 deletions
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Sind Sie sicher, dass Sie sich erneut anmelden möchten?",
"Exchange Rates Data": "Wechselkursdaten",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Are you sure you want to re-login?",
"Exchange Rates Data": "Exchange Rates Data",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "¿Seguro que deseas volver a iniciar sesión?",
"Exchange Rates Data": "Tipos de Cambio",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Impossible de récupérer les paramètres d'application synchronisés de l'utilisateur",
"Unable to update user synchronized application settings": "Impossible de mettre à jour les paramètres d'application synchronisés de l'utilisateur",
"Unable to disable user synchronized application settings": "Impossible de désactiver les paramètres d'application synchronisés de l'utilisateur",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Êtes-vous sûr de vouloir vous reconnecter ?",
"Exchange Rates Data": "Données de taux de change",
"User Custom": "Personnalisé utilisateur",
+26
View File
@@ -2100,6 +2100,31 @@ export function useI18n() {
return formatPercent(value, precision, lowPrecisionValue, numberFormatOptions);
}
function getFormattedVolume(value: number, precision?: number, unit?: 'KiB' | 'MiB'): string {
const numberFormatOptions = getNumberFormatOptions({});
let displayUnit = unit || 'B';
if (unit === 'KiB') {
value = value / 1024.0;
} else if (unit === 'MiB') {
value = value / 1024.0 / 1024.0;
} else {
displayUnit = 'B';
if (value >= 1024.0) {
value = value / 1024.0;
displayUnit = 'KiB';
}
if (value >= 1024.0) {
value = value / 1024.0;
displayUnit = 'MiB';
}
}
return formatNumber(value, numberFormatOptions, precision) + ' ' + displayUnit;
}
function getFormattedExchangeRateAmount(value: number, numeralSystem?: NumeralSystem): string {
const numberFormatOptions = getNumberFormatOptions({ numeralSystem });
return formatExchangeRateAmount(value, numberFormatOptions);
@@ -2505,6 +2530,7 @@ export function useI18n() {
formatNumberToWesternArabicNumerals: (value: number, precision?: number) => getFormattedNumber(value, NumeralSystem.WesternArabicNumerals, precision),
formatPercentToLocalizedNumerals: (value: number, precision: number, lowPrecisionValue: string) => getFormattedPercentValue(value, precision, lowPrecisionValue),
formatPercentToWesternArabicNumerals: (value: number, precision: number, lowPrecisionValue: string) => getFormattedPercentValue(value, precision, lowPrecisionValue, NumeralSystem.WesternArabicNumerals),
formatVolumeToLocalizedNumerals: getFormattedVolume,
formatExchangeRateAmountToWesternArabicNumerals: (value: number) => getFormattedExchangeRateAmount(value, NumeralSystem.WesternArabicNumerals),
appendDigitGroupingSymbolAndDecimalSeparator: (value: string) => appendDigitGroupingSymbolAndDecimalSeparator(value, getNumberFormatOptions({})),
getAdaptiveAmountRate,
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Sei sicuro di voler accedere di nuovo?",
"Exchange Rates Data": "Dati tassi di cambio",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "再ログインしますか?",
"Exchange Rates Data": "為替レートデータ",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "ಬಳಕೆದಾರರ ಸಿಂಕ್ ಮಾಡಿದ ಅಪ್ಲಿಕೇಶನ್ ಸೆಟ್ಟಿಂಗ್ಸ್ ಪಡೆಯಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ",
"Unable to update user synchronized application settings": "ಬಳಕೆದಾರರ ಸಿಂಕ್ ಮಾಡಿದ ಅಪ್ಲಿಕೇಶನ್ ಸೆಟ್ಟಿಂಗ್ಸ್ ನವೀಕರಿಸಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ",
"Unable to disable user synchronized application settings": "ಬಳಕೆದಾರರ ಸಿಂಕ್ ಮಾಡಿದ ಅಪ್ಲಿಕೇಶನ್ ಸೆಟ್ಟಿಂಗ್ಸ್ ನಿಷ್ಕ್ರಿಯಗೊಳಿಸಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "ಮತ್ತೆ ಲಾಗಿನ್ ಮಾಡಲು ನೀವು ಖಚಿತವೇ?",
"Exchange Rates Data": "ವಿನಿಮಯ ದರ ಡೇಟಾ",
"User Custom": "ಬಳಕೆದಾರ ಕಸ್ಟಮ್",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "사용자 동기화된 애플리케이션 설정을 검색할 수 없습니다.",
"Unable to update user synchronized application settings": "사용자 동기화된 애플리케이션 설정을 업데이트할 수 없습니다.",
"Unable to disable user synchronized application settings": "사용자 동기화된 애플리케이션 설정을 비활성화할 수 없습니다.",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "다시 로그인하시겠습니까?",
"Exchange Rates Data": "환율 데이터",
"User Custom": "사용자 정의",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Kan gesynchroniseerde applicatie-instellingen van gebruiker niet ophalen",
"Unable to update user synchronized application settings": "Kan gesynchroniseerde applicatie-instellingen van gebruiker niet bijwerken",
"Unable to disable user synchronized application settings": "Kan gesynchroniseerde applicatie-instellingen van gebruiker niet uitschakelen",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Weet je zeker dat je opnieuw wilt inloggen?",
"Exchange Rates Data": "Wisselkoersgegevens",
"User Custom": "Gebruiker aangepast",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Tem certeza de que deseja fazer login novamente?",
"Exchange Rates Data": "Dados de Taxas de Câmbio",
"User Custom": "Personalização do Usuário",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Не удалось получить пользовательские синхронизированные настройки приложения",
"Unable to update user synchronized application settings": "Не удалось обновить пользовательские настройки приложения",
"Unable to disable user synchronized application settings": "Не удалось удалить пользовательские настройки приложения",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Вы уверены, что хотите войти снова?",
"Exchange Rates Data": "Данные о курсах валют",
"User Custom": "Пользовательские настройки",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Sinhroniziranih nastavitev aplikacije ni mogoče pridobiti",
"Unable to update user synchronized application settings": "Sinhroniziranih nastavitev aplikacije ni mogoče posodobiti",
"Unable to disable user synchronized application settings": "Sinhronizacije nastavitev aplikacije ni mogoče onemogočiti",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Ali ste prepričani, da se želite ponovno prijaviti?",
"Exchange Rates Data": "Podatki o menjalnih tečajih",
"User Custom": "Uporabniške nastavitve po meri",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "பயனர் ஒத்திசைவு செய் பயன்பாடு அமைப்புகள் பெற முடியவில்லை",
"Unable to update user synchronized application settings": "பயனர் ஒத்திசைவு செய் பயன்பாடு அமைப்புகள் புதுப்பிக்க முடியவில்லை",
"Unable to disable user synchronized application settings": "பயனர் ஒத்திசைவு செய் பயன்பாடு அமைப்புகள் செயலற்றப்படுத்த முடியவில்லை",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "மீண்டும் உள்நுழை செய்ய நீங்கள் உறுதியா?",
"Exchange Rates Data": "மாற்று விகிதம் தரவு",
"User Custom": "தனிப்பயன்",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "ไม่สามารถดึงการตั้งค่าแอปที่ซิงค์ของผู้ใช้ได้",
"Unable to update user synchronized application settings": "ไม่สามารถอัปเดตการตั้งค่าแอปที่ซิงค์ของผู้ใช้ได้",
"Unable to disable user synchronized application settings": "ไม่สามารถปิดการซิงค์การตั้งค่าแอปของผู้ใช้ได้",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "คุณแน่ใจหรือว่าต้องการเข้าสู่ระบบอีกครั้ง?",
"Exchange Rates Data": "ข้อมูลอัตราแลกเปลี่ยน",
"User Custom": "กำหนดเองโดยผู้ใช้",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Kullanıcının eşitlenen uygulama ayarları alınamadı",
"Unable to update user synchronized application settings": "Kullanıcının eşitlenen uygulama ayarları güncellenemedi",
"Unable to disable user synchronized application settings": "Kullanıcının eşitlenen uygulama ayarları devre dışı bırakılamadı",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Tekrar giriş yapmak istediğinize emin misiniz?",
"Exchange Rates Data": "Döviz Kuru Verileri",
"User Custom": "Kullanıcı Özel",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Ви впевнені, що хочете увійти знову?",
"Exchange Rates Data": "Дані про курси валют",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "Unable to retrieve user synchronized application settings",
"Unable to update user synchronized application settings": "Unable to update user synchronized application settings",
"Unable to disable user synchronized application settings": "Unable to disable user synchronized application settings",
"Browser Cache Management": "Browser Cache Management",
"File Cache": "File Cache",
"Used storage": "Used storage",
"Application Code": "Application Code",
"Resource Files": "Resource Files",
"Map Data": "Map Data",
"Others": "Others",
"Failed to load browser cache statistics": "Failed to load browser cache statistics",
"Clear File Cache": "Clear File Cache",
"Are you sure you want to clear file cache?": "Are you sure you want to clear file cache?",
"Are you sure you want to re-login?": "Bạn có chắc chắn muốn đăng nhập lại không?",
"Exchange Rates Data": "Dữ liệu tỷ giá hối đoái",
"User Custom": "User Custom",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "无法获取用户同步的应用设置",
"Unable to update user synchronized application settings": "无法更新用户同步的应用设置",
"Unable to disable user synchronized application settings": "无法禁用用户同步的应用设置",
"Browser Cache Management": "浏览器缓存管理",
"File Cache": "文件缓存",
"Used storage": "已用存储",
"Application Code": "应用代码",
"Resource Files": "资源文件",
"Map Data": "地图数据",
"Others": "其他",
"Failed to load browser cache statistics": "加载浏览器缓存统计数据失败",
"Clear File Cache": "清除文件缓存",
"Are you sure you want to clear file cache?": "您确定要清除文件缓存?",
"Are you sure you want to re-login?": "您确定要重新登录?",
"Exchange Rates Data": "汇率数据",
"User Custom": "用户自定义",
+10
View File
@@ -2505,6 +2505,16 @@
"Unable to retrieve user synchronized application settings": "無法取得使用者同步的應用程式設定",
"Unable to update user synchronized application settings": "無法更新使用者同步的應用程式設定",
"Unable to disable user synchronized application settings": "無法停用使用者同步的應用程式設定",
"Browser Cache Management": "瀏覽器快取管理",
"File Cache": "檔案快取",
"Used storage": "已使用的儲存空間",
"Application Code": "應用程式程式碼",
"Resource Files": "資源檔案",
"Map Data": "地圖資料",
"Others": "其他",
"Failed to load browser cache statistics": "載入瀏覽器快取統計資料失敗",
"Clear File Cache": "清除檔案快取",
"Are you sure you want to clear file cache?": "您確定要清除檔案快取?",
"Are you sure you want to re-login?": "您確定要重新登入?",
"Exchange Rates Data": "匯率資料",
"User Custom": "使用者自訂",