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": "Node Traffic",
"nodes": "Nodes",
"offlineNodeCount": "Offline Nodes",
"onlineIPCount": "Online IPs",
"onlineNodeCount": "Online Nodes",
"onlineUsersCount": "Online Users",
"pendingTickets": "Pending Tickets",
"register": "Register",
"repurchase": "Repurchase",
+10
View File
@@ -33,6 +33,16 @@
"saveSuccess": "Save Successful",
"saveFailed": "Save Failed"
},
"logCleanup": {
"title": "Log Cleanup Settings",
"description": "Configure automatic log cleanup rules and retention period",
"autoClear": "Enable Auto Cleanup",
"autoClearDescription": "When enabled, the system will automatically clear expired log records",
"clearDays": "Retention Days",
"clearDaysDescription": "Number of days to retain logs; logs older than this will be cleaned up",
"clearDaysPlaceholder": "Enter retention days"
},
"logSettings": "Log Settings",
"privacyPolicy": {
"title": "Privacy Policy",
"description": "Edit and manage privacy policy content"
+3
View File
@@ -50,6 +50,7 @@
"more": "More",
"notifySettingsTitle": "Notification Settings",
"onlineDevices": "Online Devices",
"onlyFirstPurchase": "First Purchase Only",
"orderList": "Order List",
"password": "Password",
"passwordPlaceholder": "Enter new password (optional)",
@@ -59,6 +60,8 @@
"refererId": "Referer ID",
"refererIdPlaceholder": "Enter referer ID",
"referralCode": "Referral Code",
"referralPercentage": "Referral Percentage",
"referralPercentagePlaceholder": "Enter referral percentage (0-100)",
"referrerUserId": "Referrer (User ID)",
"remove": "Remove",
"resetLogs": "Reset Logs",