Add challenges preview + makefile

This commit is contained in:
2025-12-14 03:23:50 +07:00
parent 5343a8f2c3
commit bb9e9a6e1d
7 changed files with 590 additions and 37 deletions

View File

@@ -104,6 +104,23 @@ export interface Challenge {
created_at: string
}
export interface ChallengePreview {
game_id: number
game_title: string
title: string
description: string
type: string
difficulty: Difficulty
points: number
estimated_time: number | null
proof_type: ProofType
proof_hint: string | null
}
export interface ChallengesPreviewResponse {
challenges: ChallengePreview[]
}
// Assignment types
export type AssignmentStatus = 'active' | 'completed' | 'dropped'