mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
add last 180 day option to activity tab
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
<SelectValue />
|
<SelectValue />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
|
<SelectItem value="180">{{ t('dialog.user.activity.period_180') }}</SelectItem>
|
||||||
<SelectItem value="90">{{ t('dialog.user.activity.period_90') }}</SelectItem>
|
<SelectItem value="90">{{ t('dialog.user.activity.period_90') }}</SelectItem>
|
||||||
<SelectItem value="30">{{ t('dialog.user.activity.period_30') }}</SelectItem>
|
<SelectItem value="30">{{ t('dialog.user.activity.period_30') }}</SelectItem>
|
||||||
<SelectItem value="7">{{ t('dialog.user.activity.period_7') }}</SelectItem>
|
<SelectItem value="7">{{ t('dialog.user.activity.period_7') }}</SelectItem>
|
||||||
|
|||||||
@@ -1435,6 +1435,7 @@
|
|||||||
"most_active_day": "Most active day:",
|
"most_active_day": "Most active day:",
|
||||||
"most_active_time": "Peak hours:",
|
"most_active_time": "Peak hours:",
|
||||||
"period": "Period:",
|
"period": "Period:",
|
||||||
|
"period_180": "Last 180 Days",
|
||||||
"period_90": "Last 90 Days",
|
"period_90": "Last 90 Days",
|
||||||
"period_30": "Last 30 Days",
|
"period_30": "Last 30 Days",
|
||||||
"period_7": "Last 7 Days",
|
"period_7": "Last 7 Days",
|
||||||
|
|||||||
@@ -573,12 +573,14 @@ function pickActivityNormalizeConfig(isSelf, rangeDays) {
|
|||||||
self: {
|
self: {
|
||||||
7: { thresholdMinutes: 0, capPercentile: 95, mode: 'sqrt' },
|
7: { thresholdMinutes: 0, capPercentile: 95, mode: 'sqrt' },
|
||||||
30: { thresholdMinutes: 10, capPercentile: 95, mode: 'sqrt' },
|
30: { thresholdMinutes: 10, capPercentile: 95, mode: 'sqrt' },
|
||||||
90: { thresholdMinutes: 20, capPercentile: 90, mode: 'log' }
|
90: { thresholdMinutes: 20, capPercentile: 90, mode: 'log' },
|
||||||
|
180: { thresholdMinutes: 30, capPercentile: 85, mode: 'log' }
|
||||||
},
|
},
|
||||||
friend: {
|
friend: {
|
||||||
7: { thresholdMinutes: 0, capPercentile: 95, mode: 'sqrt' },
|
7: { thresholdMinutes: 0, capPercentile: 95, mode: 'sqrt' },
|
||||||
30: { thresholdMinutes: 10, capPercentile: 95, mode: 'sqrt' },
|
30: { thresholdMinutes: 10, capPercentile: 95, mode: 'sqrt' },
|
||||||
90: { thresholdMinutes: 20, capPercentile: 90, mode: 'log' }
|
90: { thresholdMinutes: 20, capPercentile: 90, mode: 'log' },
|
||||||
|
180: { thresholdMinutes: 30, capPercentile: 85, mode: 'log' }
|
||||||
}
|
}
|
||||||
}[role][rangeDays] || {
|
}[role][rangeDays] || {
|
||||||
thresholdMinutes: 10,
|
thresholdMinutes: 10,
|
||||||
@@ -591,7 +593,8 @@ function pickOverlapNormalizeConfig(rangeDays) {
|
|||||||
return {
|
return {
|
||||||
7: { thresholdMinutes: 0, capPercentile: 95, mode: 'sqrt' },
|
7: { thresholdMinutes: 0, capPercentile: 95, mode: 'sqrt' },
|
||||||
30: { thresholdMinutes: 5, capPercentile: 95, mode: 'sqrt' },
|
30: { thresholdMinutes: 5, capPercentile: 95, mode: 'sqrt' },
|
||||||
90: { thresholdMinutes: 10, capPercentile: 90, mode: 'log' }
|
90: { thresholdMinutes: 10, capPercentile: 90, mode: 'log' },
|
||||||
|
180: { thresholdMinutes: 15, capPercentile: 85, mode: 'log' }
|
||||||
}[rangeDays] || {
|
}[rangeDays] || {
|
||||||
thresholdMinutes: 5,
|
thresholdMinutes: 5,
|
||||||
capPercentile: 95,
|
capPercentile: 95,
|
||||||
|
|||||||
Reference in New Issue
Block a user