✨ 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:
@@ -46,7 +46,8 @@ export default function Affiliate() {
|
||||
<Display type='currency' value={data?.total_commission} />
|
||||
</span>
|
||||
<span className='text-muted-foreground text-sm'>
|
||||
({t('commissionRate')}: {common?.invite?.referral_percentage}%)
|
||||
({t('commissionRate')}:{' '}
|
||||
{user?.referral_percentage || common?.invite?.referral_percentage}%)
|
||||
</span>
|
||||
</div>
|
||||
</CardContent>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as auth from './auth';
|
||||
|
||||
+2
@@ -890,6 +890,8 @@ declare namespace API {
|
||||
avatar: string;
|
||||
balance: number;
|
||||
commission: number;
|
||||
referral_percentage: number;
|
||||
only_first_purchase: boolean;
|
||||
gift_amount: number;
|
||||
telegram: number;
|
||||
refer_code: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from './announcement';
|
||||
|
||||
Vendored
+2
@@ -971,6 +971,8 @@ declare namespace API {
|
||||
avatar: string;
|
||||
balance: number;
|
||||
commission: number;
|
||||
referral_percentage: number;
|
||||
only_first_purchase: boolean;
|
||||
gift_amount: number;
|
||||
telegram: number;
|
||||
refer_code: string;
|
||||
|
||||
Reference in New Issue
Block a user