core: contest: add feature whitelist for hidden contest fule

This commit is contained in:
undefined committed 2026-01-13 03:51:07 +08:00
1 parent 24f5076ddc
commit 47b18c6db5
3 files changed
+15

No files matched your search

+3
View File
@@ -422,10 +422,13 @@ export interface ScoreboardConfig {
lockAt?: Date;
}
export type Feature = 'scoreboard' | 'download';
export interface ContestRule<T = any> {
_originalRule?: Partial<ContestRule<T>>;
TEXT: string;
hidden?: boolean;
features?: Feature[];
check: (args: any) => any;
statusSort: Record<string, 1 | -1>;
submitAfterAccept: boolean;