mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: contest: add feature whitelist for hidden contest fule
This commit is contained in:
3 files changed
+15
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user