feat(settings): replace health check interval with practical presets, ping latency test, battle defaults and cache diagnostics

This commit is contained in:
CAtlas0784 committed 2026-10-17 01:40:58 +07:00
1 parent 1b8d1744b2
commit 1fe36fad43
3 files changed
+433 -66

No files matched your search

+52 -6
View File
@@ -158,13 +158,36 @@ export const TRANSLATIONS = {
"jsonStatusOpening": "กำลังเปิด: {name}",
"jsonSaveSuccess": "บันทึกไฟล์ {name} เรียบร้อยแล้ว",
"jsonInvalid": "รูปแบบ JSON ไม่ถูกต้อง",
"apiSettingsTitle": "⚙️ ตั้งค่าการเชื่อมต่อ API Gateway",
"apiSettingsSubtitle": "ปรับเปลี่ยนพอร์ตหรือ IP ได้ตามไฟล์ server.json ของคุณ",
"settingsConnTitle": "⚙️ ตั้งค่าการเชื่อมต่อ API Gateway",
"settingsConnSubtitle": "กำหนด Endpoint และโหมดของเซิร์ฟเวอร์ที่ต้องการสั่งการ",
"lblServerMode": "โหมดเซิร์ฟเวอร์",
"lblApiGatewayUrl": "REST API Gateway URL",
"lblPingInterval": "ความถี่ในการตรวจสอบสถานะ (วินาที)",
"btnTestPing": "⚡ ทดสอบการเชื่อมต่อ",
"btnSaveSettings": "💾 บันทึกการตั้งค่า",
"btnResetDefault": "คืนค่าเริ่มต้น",
"settingsBattleTitle": "🎮 ค่าเริ่มต้นการต่อสู้ & FreeSR",
"settingsBattleSubtitle": "ปรับแต่งพฤติกรรมเริ่มต้นของระบบในเกมและการจัดทีม",
"lblDefaultEnergy": "พลังงานเริ่มต้นของทีม (Battle Starting Energy)",
"lblAutoSync": "ซิงค์ไปยังเซิร์ฟเวอร์อัตโนมัติ (Auto-Sync)",
"descAutoSync": "ส่งการเปลี่ยนแปลงไปยังเซิร์ฟเวอร์ทันทีเมื่อแก้ไขตัวละครหรือไอเทม",
"lblDefaultCreative": "เปิดโหมดสร้างสรรค์เมื่อเริ่มต้น (Creative Mode)",
"descDefaultCreative": "อนุญาตให้ใส่ตัวละครซ้ำหรือจัดทีมได้มากกว่า 4 ช่องตลอดเวลา",
"settingsShowcaseTitle": "🖼️ การแสดงผลการ์ด Showcase",
"settingsShowcaseSubtitle": "ปรับแต่งความสวยงามและรายละเอียดในหน้าการ์ดแสดงผล Build",
"lblShowRolls": "แสดงจำนวน Roll ของซับสเตตัสรีลิกส์",
"descShowRolls": "แสดงแท็กจำนวนครั้งที่สุ่มลงสเตตัสย่อย (Sub-stat Roll Counts)",
"lblElementAura": "เอฟเฟกต์แสงเรืองตามธาตุ (Element Aura Glow)",
"descElementAura": "เปลี่ยนสีพื้นหลังและการเรืองแสงของการ์ดตามธาตุของตัวละครนั้นๆ",
"settingsCacheTitle": "🧹 จัดการข้อมูลแคช & รีเซ็ตระบบ",
"settingsCacheSubtitle": "ล้างข้อมูลชั่วคราวในเบราว์เซอร์หรือคืนค่าเครื่องมือเป็นค่าเริ่มต้น",
"lblCacheSize": "สถานะหน่วยความจำ LocalStorage:",
"btnClearCache": "🧹 ล้างแคชเบราว์เซอร์",
"btnFactoryReset": "🔄 คืนค่าเริ่มต้นทั้งหมด",
"toastPingSuccess": "⚡ เชื่อมต่อสำเร็จ! Latency: {ms} ms",
"toastPingFailed": "❌ ไม่สามารถเชื่อมต่อกับ Gateway ได้ กรุณาตรวจสอบเซิร์ฟเวอร์",
"toastCacheCleared": "🧹 ล้างข้อมูลแคชเบราว์เซอร์เรียบร้อยแล้ว",
"apiSettingsTitle": "⚙️ ตั้งค่าการเชื่อมต่อ API Gateway",
"apiSettingsSubtitle": "ปรับเปลี่ยนพอร์ตหรือ IP ได้ตามไฟล์ server.json ของคุณ",
"modalTitleCharEdit": "ปรับแต่งตัวละคร",
"modalBtnMaxAllChar": "⭐ ปรับเต็มทั้งหมด",
"modalTabSkills": "⚡ สกิลและร่องรอย",
@@ -387,13 +410,36 @@ export const TRANSLATIONS = {
"jsonStatusOpening": "Opening: {name}",
"jsonSaveSuccess": "File {name} saved successfully",
"jsonInvalid": "Invalid JSON format",
"apiSettingsTitle": "⚙️ API Gateway Connection Settings",
"apiSettingsSubtitle": "Adjust port or IP according to your server.json",
"settingsConnTitle": "⚙️ API Gateway Connection",
"settingsConnSubtitle": "Configure server mode and REST endpoint",
"lblServerMode": "Server Mode",
"lblApiGatewayUrl": "REST API Gateway URL",
"lblPingInterval": "Health Check Interval (seconds)",
"btnTestPing": "⚡ Test Connection",
"btnSaveSettings": "💾 Save Settings",
"btnResetDefault": "Reset Defaults",
"settingsBattleTitle": "🎮 Battle & FreeSR Defaults",
"settingsBattleSubtitle": "Customize gameplay behavior and lineup defaults",
"lblDefaultEnergy": "Battle Starting Energy",
"lblAutoSync": "Auto-Sync to Server",
"descAutoSync": "Instantly send character and equipment updates to the server",
"lblDefaultCreative": "Creative Mode by Default",
"descDefaultCreative": "Allow duplicate characters and more than 4 lineup slots",
"settingsShowcaseTitle": "🖼️ Showcase Card Display",
"settingsShowcaseSubtitle": "Customize character build card styling and details",
"lblShowRolls": "Show Sub-stat Roll Counts",
"descShowRolls": "Display roll tags for relic sub-affixes",
"lblElementAura": "Element Aura Glow Effect",
"descElementAura": "Dynamic card background and ambient glow matching character element",
"settingsCacheTitle": "🧹 Cache Management & Reset",
"settingsCacheSubtitle": "Clear temporary browser data or restore default settings",
"lblCacheSize": "LocalStorage Memory Usage:",
"btnClearCache": "🧹 Clear Browser Cache",
"btnFactoryReset": "🔄 Factory Reset",
"toastPingSuccess": "⚡ Connected successfully! Latency: {ms} ms",
"toastPingFailed": "❌ Failed to connect to Gateway. Please check server status",
"toastCacheCleared": "🧹 Browser cache cleared successfully",
"apiSettingsTitle": "⚙️ API Gateway Connection Settings",
"apiSettingsSubtitle": "Adjust port or IP according to your server.json",
"modalTitleCharEdit": "Character Customization",
"modalBtnMaxAllChar": "⭐ Max All",
"modalTabSkills": "⚡ Skills & Traces",