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": "保存成功",
"saveFailed": "保存失败"
},
"logCleanup": {
"title": "日志清理设置",
"description": "配置系统日志自动清理规则和保留时间",
"autoClear": "启用自动清理",
"autoClearDescription": "启用后系统将自动清理过期的日志记录",
"clearDays": "保留天数",
"clearDaysDescription": "日志保留的天数,超过此时间的日志将被清理",
"clearDaysPlaceholder": "请输入保留天数"
},
"logSettings": "日志设置",
"privacyPolicy": {
"title": "隐私政策",
"description": "编辑和管理隐私政策内容"
+3
View File
@@ -50,6 +50,7 @@
"more": "更多",
"notifySettingsTitle": "通知设置",
"onlineDevices": "在线设备",
"onlyFirstPurchase": "仅首次购买奖励",
"orderList": "订单列表",
"password": "密码",
"passwordPlaceholder": "输入新密码(选填)",
@@ -59,6 +60,8 @@
"refererId": "推荐人ID",
"refererIdPlaceholder": "输入推荐人ID",
"referralCode": "推荐码",
"referralPercentage": "推荐奖励比例",
"referralPercentagePlaceholder": "输入推荐奖励比例(0-100",
"referrerUserId": "推荐人(用户ID",
"remove": "移除",
"resetLogs": "重置日志",