mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: add secret config key
This commit is contained in:
1 parent
37ce0a4f66
commit
e334c5e56b
11 files changed
+35
-12
No files matched your search
@@ -53,6 +53,7 @@ const problemConfigSchema = {
|
||||
type: 'object',
|
||||
def: problemConfigSchemaDef,
|
||||
properties: {
|
||||
key: { type: 'string', pattern: '[0-9a-f]{32}' },
|
||||
type: { enum: ['default', 'interactive', 'submit_answer', 'subjective'] },
|
||||
checker_type: { enum: ['default', 'lemon', 'syzoj', 'testlib', 'strict', 'qduoj'] },
|
||||
checker: { type: 'string', pattern: '\\.' },
|
||||
|
||||
@@ -36,7 +36,10 @@ export default class SubjectiveContainer extends React.PureComponent {
|
||||
Textbox(args, name) {
|
||||
return (
|
||||
<label htmlFor={`textbox${name}`}>
|
||||
{name}. {args.desc}
|
||||
{name}. {args.desc.split('\n').map((i, index) => {
|
||||
if (index) return <><br />{i}</>;
|
||||
return i;
|
||||
})}
|
||||
<div name={`form_item_${name}`} className="textbox-container">
|
||||
<input type="text" name={name} id={`textbox${name}`} className="textbox" onChange={this.onChange}></input>
|
||||
</div>
|
||||
@@ -47,7 +50,10 @@ export default class SubjectiveContainer extends React.PureComponent {
|
||||
Radio(args, name) {
|
||||
return (
|
||||
<>
|
||||
{name}. {args.desc}
|
||||
{name}. {args.desc.split('\n').map((i, index) => {
|
||||
if (index) return <><br />{i}</>;
|
||||
return i;
|
||||
})}
|
||||
{args.choices.map((i) => (
|
||||
<label className="radiobox" htmlFor={`radio${name}${i}`} key={i}>
|
||||
<input type="radio" name={name} id={`radio${name}${i}`} value={i} onChange={this.onChange} /> {i} <br />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.11.36",
|
||||
"version": "4.11.37",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
@@ -26,7 +26,7 @@
|
||||
"@blueprintjs/core": "^3.45.0",
|
||||
"@blueprintjs/icons": "^3.26.1",
|
||||
"@blueprintjs/select": "^3.16.4",
|
||||
"@hydrooj/utils": "workspace:packages/utils",
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"@types/json-schema": "^7.0.7",
|
||||
"@types/katex": "^0.11.0",
|
||||
"@undefined-moe/monaco-yaml": "^2.5.0",
|
||||
|
||||
Reference in new issue
Block a user