feat: Add log cleanup settings and update localization files

- Introduced log cleanup settings in the admin panel, allowing configuration of automatic log clearing and retention periods.
- Updated English, Spanish, French, German, and other localization files to include new log cleanup settings.
- Added new fields for referral percentage and first purchase only in user settings.
- Implemented API endpoints for getting and updating log settings.
- Enhanced the admin dashboard with a new log cleanup form component.
This commit is contained in:
web
2025-09-01 10:25:04 -07:00
parent d4b37e4997
commit 6ccf9b8bdc
88 changed files with 827 additions and 125 deletions
+1 -1
View File
@@ -7,8 +7,8 @@
"nodeTraffic": "ปริมาณการใช้งานของโหนด",
"nodes": "โหนด",
"offlineNodeCount": "จำนวนโหนดออฟไลน์",
"onlineIPCount": "จำนวน IP ออนไลน์",
"onlineNodeCount": "จำนวนโหนดออนไลน์",
"onlineUsersCount": "ผู้ใช้งานออนไลน์",
"pendingTickets": "บัตรงานที่รอดำเนินการ",
"register": "ลงทะเบียน",
"repurchase": "ซื้อซ้ำ",
+10
View File
@@ -33,6 +33,16 @@
"saveSuccess": "บันทึกสำเร็จ",
"title": "การตั้งค่าการเชิญ"
},
"logCleanup": {
"autoClear": "เปิดใช้งานการล้างอัตโนมัติ",
"autoClearDescription": "เมื่อเปิดใช้งาน ระบบจะล้างบันทึกที่หมดอายุโดยอัตโนมัติ",
"clearDays": "จำนวนวันในการเก็บรักษา",
"clearDaysDescription": "จำนวนวันที่จะเก็บบันทึก; บันทึกที่เก่ากว่านี้จะถูกลบออก",
"clearDaysPlaceholder": "กรอกจำนวนวันในการเก็บรักษา",
"description": "กำหนดกฎการล้างบันทึกอัตโนมัติและระยะเวลาการเก็บรักษา",
"title": "การตั้งค่าการล้างบันทึก"
},
"logSettings": "การตั้งค่าบันทึก",
"privacyPolicy": {
"description": "แก้ไขและจัดการเนื้อหานโยบายความเป็นส่วนตัว",
"title": "นโยบายความเป็นส่วนตัว"
+3
View File
@@ -50,6 +50,7 @@
"more": "เพิ่มเติม",
"notifySettingsTitle": "การตั้งค่าการแจ้งเตือน",
"onlineDevices": "อุปกรณ์ที่ออนไลน์",
"onlyFirstPurchase": "การซื้อครั้งแรกเท่านั้น",
"orderList": "รายการสั่งซื้อ",
"password": "รหัสผ่าน",
"passwordPlaceholder": "กรุณาใส่รหัสผ่านใหม่ (ไม่บังคับ)",
@@ -59,6 +60,8 @@
"refererId": "รหัสผู้แนะนำ",
"refererIdPlaceholder": "กรอก ID ผู้แนะนำ",
"referralCode": "รหัสแนะนำ",
"referralPercentage": "เปอร์เซ็นต์การแนะนำ",
"referralPercentagePlaceholder": "กรอกเปอร์เซ็นต์การแนะนำ (0-100)",
"referrerUserId": "ผู้อ้างอิง (รหัสผู้ใช้)",
"remove": "ลบ",
"resetLogs": "บันทึกการรีเซ็ต",