Made app more modular.
Fixed some bugs. Added some functionality.
This commit is contained in:
5
types.ts
5
types.ts
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user