mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
judge: support generate testdata (#695)
Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
1 parent
b83b2e792e
commit
55b4e1aaf0
27 files changed
+454
-68
No files matched your search
@@ -100,7 +100,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
}
|
||||
|
||||
render() {
|
||||
let canUsePretest = ['default', 'fileio'].includes(UiContext.pdoc.config?.type);
|
||||
let canUsePretest = UiContext.pdoc.config?.type === 'default';
|
||||
const langInfo = availableLangs[this.props.editorLang];
|
||||
if (UiContext.pdoc.config?.type === 'remote_judge' && langInfo) {
|
||||
if (langInfo.pretest) canUsePretest = true;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { i18n } from 'vj/utils';
|
||||
|
||||
export default function reducer(state = {
|
||||
pretest: {
|
||||
visible: ['default', 'fileio'].includes(UiContext.pdoc.config?.type)
|
||||
visible: UiContext.pdoc.config?.type === 'default'
|
||||
? localStorage.getItem('scratchpad/pretest') === 'true'
|
||||
: false,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user