|
|
|
@ -146,23 +146,25 @@ class TPICodeSetting extends Component {
|
|
|
|
|
{/* <a href="https://github.com/Microsoft/monaco-editor/wiki/Monaco-Editor-Accessibility-Guide"></a> */}
|
|
|
|
|
</h3>
|
|
|
|
|
<div className="-padding-24 " style={{ marginBottom: '40px' }}>
|
|
|
|
|
<Tooltip title={ task_pass ? "允许学员跳关挑战实训" : "禁止学员跳关挑战实训"} disableFocusListener={true}>
|
|
|
|
|
<Tooltip title={ task_pass ? "允许学员跳关挑战" : "不允许学员跳关挑战"} disableFocusListener={true}>
|
|
|
|
|
<div className="-layout-h -center -justify-between">
|
|
|
|
|
<div className="ide-settings--item-key">跳关</div>
|
|
|
|
|
<div className="ide-settings--item-value">{ task_pass ? '允许' : '不允许'}</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Tooltip title={ test_set_permission ? "允许学员通过金币解锁查看测试集内容"
|
|
|
|
|
: "禁止学员通过金币解锁查看测试集内容"} disableFocusListener={true}>
|
|
|
|
|
: "不允许学员通过金币解锁查看测试集内容"} disableFocusListener={true}>
|
|
|
|
|
<div className="-layout-h -center -justify-between">
|
|
|
|
|
<div className="ide-settings--item-key">测试集解锁</div>
|
|
|
|
|
<div className="ide-settings--item-value">{ test_set_permission ? '允许' : '不允许'}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
<Tooltip title={ forbid_copy ? "禁用页面复制和粘贴功能"
|
|
|
|
|
: "启用页面复制和粘贴功能"} disableFocusListener={true}>
|
|
|
|
|
<Tooltip title={ forbid_copy ? "不允许学员复制和粘贴代码"
|
|
|
|
|
: "允许学员复制和粘贴代码"} disableFocusListener={true}>
|
|
|
|
|
|
|
|
|
|
<div className="-layout-h -center -justify-between">
|
|
|
|
|
<div className="ide-settings--item-key">代码复制粘贴</div>
|
|
|
|
|