Made app more modular.

Fixed some bugs.
Added some functionality.
This commit is contained in:
m0rph3us1987
2026-01-21 18:59:14 +01:00
parent 5802b80d61
commit 40f496c3f2
18 changed files with 1709 additions and 1535 deletions

View File

@@ -13,11 +13,14 @@ export interface Challenge {
difficulty: Difficulty;
description: string;
initialPoints: number;
minimumPoints: number; // Lowest possible points
decaySolves: number; // Solves to reach minimum
flag: string;
files: ChallengeFile[];
solves: string[]; // Team IDs
port?: number;
connectionType?: 'nc' | 'http';
overrideIp?: string;
}
export interface Team {
@@ -32,7 +35,7 @@ export interface Solve {
teamId: string;
challengeId: string;
timestamp: number;
pointsEarned: number; // Stored at time of solve, but usually recalculated dynamically
pointsEarned: number; // Not used for dynamic calc but stored for history
}
export interface BlogPost {