From 7be14c2cdd5f784cba16c3854fec556aa4008d3b Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 4 Sep 2025 20:53:34 +0800 Subject: [PATCH] core: add type hint for langs field --- packages/hydrooj/setting.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/hydrooj/setting.yaml b/packages/hydrooj/setting.yaml index f4087d9c8..a6dd5b679 100644 --- a/packages/hydrooj/setting.yaml +++ b/packages/hydrooj/setting.yaml @@ -32,20 +32,20 @@ langs: - ~ Compiling be be ignored if compile option wasn't set - ~ Key marked with a ? means the option is optional - (name): - disabled?: whether to disable this language - hidden?: won't show in the language selection - compile?: Compile Command - code_file?: Where to write code file when compiling, defaults to `foo.[name]` - execute: Command to execute the program - highlight?: PrismJS highlight mode - monaco?: Monaco editor mode - time_limit_rate?: Time limit rate - target?: Compiler output file, defaults to `foo` - display: Display name - compile_time_limit?: Compile time limit, in milliseconds - compile_memory_limit?: Compile memory limit, in MB - address_space_limit?: Enable address space memory limit as CCF did - process_limit?: Limit the number of thread + disabled?: (boolean) whether to disable this language + hidden?: (boolean) won't show in the language selection + compile?: (string) Compile Command + code_file?: (string) Where to write code file when compiling, defaults to `foo.[name]` + execute: (string) Command to execute the program + highlight?: (string) PrismJS highlight mode + monaco?: (string) Monaco editor mode + time_limit_rate?: (number) Time limit rate + target?: (string) Compiler output file, defaults to `foo` + display: (string) Display name + compile_time_limit?: (number) Compile time limit, in milliseconds + compile_memory_limit?: (number) Compile memory limit, in MB + address_space_limit?: (boolean) Enable address space memory limit as CCF did + process_limit?: (number) Limit the number of thread bash: display: Bash code_file: foo.sh