show prompt on fetching security patch date

This commit is contained in:
KOWX712
2025-02-20 18:27:17 +08:00
parent 5f70249003
commit b6c81362fe
10 changed files with 21 additions and 0 deletions

View File

@@ -98,6 +98,8 @@
"get_date": "Get Security Patch Date", "get_date": "Get Security Patch Date",
"auto": "Auto", "auto": "Auto",
"save": "Save", "save": "Save",
"fetching": "Fetching...",
"fetched": "Done",
"get_failed": "Failed to fetch security patch date", "get_failed": "Failed to fetch security patch date",
"auto_success": "Auto config enabled successfully", "auto_success": "Auto config enabled successfully",
"auto_failed": "Failed to enable auto config", "auto_failed": "Failed to enable auto config",

View File

@@ -98,6 +98,8 @@
"get_date": "Get Security Patch Date", "get_date": "Get Security Patch Date",
"auto": "Auto", "auto": "Auto",
"save": "Save", "save": "Save",
"fetching": "Fetching...",
"fetched": "Done",
"get_failed": "Failed to fetch security patch date", "get_failed": "Failed to fetch security patch date",
"auto_success": "Auto config enabled successfully", "auto_success": "Auto config enabled successfully",
"auto_failed": "Failed to enable auto config", "auto_failed": "Failed to enable auto config",

View File

@@ -98,6 +98,8 @@
"get_date": "Obtener Fecha del Parche de Seguridad", "get_date": "Obtener Fecha del Parche de Seguridad",
"auto": "Automático", "auto": "Automático",
"save": "Guardar", "save": "Guardar",
"fetching": "Obteniendo...",
"fetched": "Completado",
"get_failed": "Error al obtener la fecha del parche de seguridad", "get_failed": "Error al obtener la fecha del parche de seguridad",
"auto_success": "Configuración automática habilitada con éxito", "auto_success": "Configuración automática habilitada con éxito",
"auto_failed": "Error al habilitar la configuración automática", "auto_failed": "Error al habilitar la configuración automática",

View File

@@ -98,6 +98,8 @@
"get_date": "セキュリティパッチの日付を取得", "get_date": "セキュリティパッチの日付を取得",
"auto": "自動", "auto": "自動",
"save": "保存", "save": "保存",
"fetching": "取得中...",
"fetched": "完了",
"get_failed": "セキュリティパッチの日付の取得に失敗しました", "get_failed": "セキュリティパッチの日付の取得に失敗しました",
"auto_success": "自動配置已成功啟用", "auto_success": "自動配置已成功啟用",
"auto_failed": "自動設定を有効にできませんでした", "auto_failed": "自動設定を有効にできませんでした",

View File

@@ -98,6 +98,8 @@
"get_date": "Получить дату патча безопасности", "get_date": "Получить дату патча безопасности",
"auto": "Авто", "auto": "Авто",
"save": "Сохранить", "save": "Сохранить",
"fetching": "Получение...",
"fetched": "Готово",
"get_failed": "Не удалось получить дату патча безопасности", "get_failed": "Не удалось получить дату патча безопасности",
"auto_success": "Автоматическая конфигурация успешно включена", "auto_success": "Автоматическая конфигурация успешно включена",
"auto_failed": "Не удалось включить автоматическую конфигурацию", "auto_failed": "Не удалось включить автоматическую конфигурацию",

View File

@@ -98,6 +98,8 @@
"get_date": "Kunin ang Petsa ng Security Patch", "get_date": "Kunin ang Petsa ng Security Patch",
"auto": "Auto", "auto": "Auto",
"save": "I-save", "save": "I-save",
"fetching": "Kumukuha...",
"fetched": "Tapos na",
"get_failed": "Hindi makuha ang petsa ng security patch", "get_failed": "Hindi makuha ang petsa ng security patch",
"auto_success": "Matagumpay na na-enable ang auto config", "auto_success": "Matagumpay na na-enable ang auto config",
"auto_failed": "Nabigong i-enable ang auto config", "auto_failed": "Nabigong i-enable ang auto config",

View File

@@ -98,6 +98,8 @@
"get_date": "Güvenlik Yaması Tarihini Al", "get_date": "Güvenlik Yaması Tarihini Al",
"auto": "Otomatik", "auto": "Otomatik",
"save": "Kaydet", "save": "Kaydet",
"fetching": "Alınıyor...",
"fetched": "Tamamlandı",
"get_failed": "Güvenlik yaması tarihi alınamadı", "get_failed": "Güvenlik yaması tarihi alınamadı",
"auto_success": "Otomatik yapılandırma başarıyla etkinleştirildi", "auto_success": "Otomatik yapılandırma başarıyla etkinleştirildi",
"auto_failed": "Otomatik yapılandırma etkinleştirilemedi", "auto_failed": "Otomatik yapılandırma etkinleştirilemedi",

View File

@@ -98,6 +98,8 @@
"get_date": "获取安全补丁日期", "get_date": "获取安全补丁日期",
"auto": "自动", "auto": "自动",
"save": "保存", "save": "保存",
"fetching": "获取中...",
"fetched": "完成",
"get_failed": "获取安全补丁日期失败", "get_failed": "获取安全补丁日期失败",
"auto_success": "自动配置成功启用", "auto_success": "自动配置成功启用",
"auto_failed": "无法启用自动配置", "auto_failed": "无法启用自动配置",

View File

@@ -98,6 +98,8 @@
"get_date": "獲取安全補丁日期", "get_date": "獲取安全補丁日期",
"auto": "自動", "auto": "自動",
"save": "保存", "save": "保存",
"fetching": "獲取中...",
"fetched": "完成",
"get_failed": "獲取安全補丁日期失敗", "get_failed": "獲取安全補丁日期失敗",
"auto_success": "自動配置成功啟用", "auto_success": "自動配置成功啟用",
"auto_failed": "無法啟用自動配置", "auto_failed": "無法啟用自動配置",

View File

@@ -324,7 +324,10 @@ export function securityPatch() {
// Get button // Get button
getButton.addEventListener('click', async () => { getButton.addEventListener('click', async () => {
try { try {
showPrompt('security_patch.fetching');
await new Promise(resolve => setTimeout(resolve, 200));
const output = await execCommand(`sh ${basePath}common/get_extra.sh --get-security-patch`); const output = await execCommand(`sh ${basePath}common/get_extra.sh --get-security-patch`);
showPrompt('security_patch.fetched', true, 1000);
advancedToggle.checked = true; advancedToggle.checked = true;
normalInputs.classList.add('hidden'); normalInputs.classList.add('hidden');
advancedInputs.classList.remove('hidden'); advancedInputs.classList.remove('hidden');