Fix site
This commit is contained in:
@@ -1418,9 +1418,28 @@ export function PlayPage() {
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-3 mb-6 flex-wrap">
|
||||
<span className="px-3 py-1.5 bg-green-500/20 text-green-400 rounded-lg text-sm font-medium border border-green-500/30">
|
||||
+{currentAssignment.playthrough_info?.points} очков
|
||||
</span>
|
||||
{/* Points - calculated from tracked time if available */}
|
||||
{currentAssignment.tracked_time_minutes !== undefined && currentAssignment.tracked_time_minutes > 0 ? (
|
||||
<span className="px-3 py-1.5 bg-green-500/20 text-green-400 rounded-lg text-sm font-medium border border-green-500/30">
|
||||
~{Math.floor(currentAssignment.tracked_time_minutes / 60 * 30)} очков
|
||||
</span>
|
||||
) : (
|
||||
<span className="px-3 py-1.5 bg-green-500/20 text-green-400 rounded-lg text-sm font-medium border border-green-500/30">
|
||||
+{currentAssignment.playthrough_info?.points} очков
|
||||
</span>
|
||||
)}
|
||||
{/* Time tracker indicator */}
|
||||
{currentAssignment.tracked_time_minutes !== undefined && currentAssignment.tracked_time_minutes > 0 ? (
|
||||
<span className="px-3 py-1.5 bg-neon-500/20 text-neon-400 rounded-lg text-sm font-medium border border-neon-500/30 flex items-center gap-1.5">
|
||||
<Clock className="w-4 h-4" />
|
||||
{Math.floor(currentAssignment.tracked_time_minutes / 60)}ч {currentAssignment.tracked_time_minutes % 60}м
|
||||
</span>
|
||||
) : (
|
||||
<span className="px-3 py-1.5 bg-gray-500/20 text-gray-400 rounded-lg text-sm font-medium border border-gray-500/30 flex items-center gap-1.5">
|
||||
<Clock className="w-4 h-4" />
|
||||
Установите трекер
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{currentAssignment.playthrough_info?.proof_hint && (
|
||||
|
||||
@@ -270,6 +270,7 @@ export interface Assignment {
|
||||
proof_comment: string | null
|
||||
points_earned: number
|
||||
streak_at_completion: number | null
|
||||
tracked_time_minutes?: number // Time tracked by desktop app (for playthroughs)
|
||||
started_at: string
|
||||
completed_at: string | null
|
||||
drop_penalty: number
|
||||
|
||||
Reference in New Issue
Block a user