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": "Lưu lượng nút",
"nodes": "nút",
"offlineNodeCount": "Số lượng nút ngoại tuyến",
"onlineIPCount": "Số lượng IP trực tuyến",
"onlineNodeCount": "Số lượng nút trực tuyến",
"onlineUsersCount": "Người dùng trực tuyến",
"pendingTickets": "Phiếu hỗ trợ đang chờ xử lý",
"register": "Đăng ký",
"repurchase": "mua lại",
+10
View File
@@ -33,6 +33,16 @@
"saveSuccess": "Lưu thành công",
"title": "Cài đặt mời"
},
"logCleanup": {
"autoClear": "Bật Dọn dẹp Tự động",
"autoClearDescription": "Khi được bật, hệ thống sẽ tự động xóa các bản ghi nhật ký đã hết hạn",
"clearDays": "Số Ngày Lưu giữ",
"clearDaysDescription": "Số ngày để lưu giữ nhật ký; nhật ký cũ hơn sẽ bị xóa",
"clearDaysPlaceholder": "Nhập số ngày lưu giữ",
"description": "Cấu hình quy tắc dọn dẹp nhật ký tự động và thời gian lưu giữ",
"title": "Cài đặt Dọn dẹp Nhật ký"
},
"logSettings": "Cài đặt Nhật ký",
"privacyPolicy": {
"description": "Chỉnh sửa và quản lý nội dung chính sách bảo mật",
"title": "Chính sách bảo mật"
+3
View File
@@ -50,6 +50,7 @@
"more": "Thêm",
"notifySettingsTitle": "Cài Đặt Thông Báo",
"onlineDevices": "Thiết bị trực tuyến",
"onlyFirstPurchase": "Chỉ Mua Hàng Đầu Tiên",
"orderList": "Danh sách đơn hàng",
"password": "Mật khẩu",
"passwordPlaceholder": "Nhập mật khẩu mới (không bắt buộc)",
@@ -59,6 +60,8 @@
"refererId": "ID người giới thiệu",
"refererIdPlaceholder": "Nhập mã người giới thiệu",
"referralCode": "Mã Giới Thiệu",
"referralPercentage": "Tỷ Lệ Giới Thiệu",
"referralPercentagePlaceholder": "Nhập tỷ lệ giới thiệu (0-100)",
"referrerUserId": "Người giới thiệu (ID người dùng)",
"remove": "Xóa",
"resetLogs": "Nhật ký đặt lại",