将题目纳入rating计算系统

This commit is contained in:
undefined committed 2020-07-17 16:59:39 +08:00
1 parent bf29661eaa
commit 17b38cbf4e
19 files changed
+290 -271

No files matched your search

+1 -11
View File
@@ -1,4 +1,4 @@
.ReactCodeMirror
.ScratchpadMonacoEditor
flex: 1
position: relative
overflow: hidden
@@ -12,13 +12,3 @@
font-family: $code-font-family
font-size: rem($font-size-secondary)
line-height: 1.2
&.CodeMirror-focused .CodeMirror-selected
background: #cee4f2
.CodeMirror-gutters
border-right: 0
background: none
.CodeMirror-linenumber
color: #DDD
@@ -1,63 +0,0 @@
@import './var.inc.styl'
.scratchpad__panel-tab
margin-top: rem(-($panel-header-height))
&.rc-tabs-top
border: 0
&.rc-tabs-top .rc-tabs-bar
border: 0
.rc-tabs-bar
padding-left: rem(120px)
.rc-tabs-ink-bar
background: $tab-color
.rc-tabs-tab-prev-icon, .rc-tabs-tab-next-icon
display: none
font-family: $icon-font-name !important
line-height: rem($panel-header-height)
font-size: rem($font-size)
color: #FFF
.rc-tabs-tab-arrow-show
display: block
&.rc-tabs-top .rc-tabs-tab-prev-icon:before
content: $icon-chevron_left
&.rc-tabs-top .rc-tabs-tab-next-icon:before
content: $icon-chevron_right
.rc-tabs-content
flex: 1
.rc-tabs-tabpane
display: flex
flex-direction: column
&.rc-tabs-top .rc-tabs-tab
padding: rem(0 5px)
line-height: rem($panel-header-height)
margin: 0
margin-right: rem(5px)
color: rgba(#FFF, 0.8)
&.rc-tabs-top .rc-tabs-tab-active
&, &:hover
color: #FFF
.rc-tabs-bar, .rc-tabs-nav-container
line-height: 1
font-size: rem($font-size-small)
.rc-tabs-tab-btn-disabled
color: rgba(#FFF, 0.7)
.rc-tabs-tabpane-hidden
display: none
.rc-tabs-tabpane
overflow: auto
@@ -30,6 +30,7 @@ export default class ScratchpadEditorContainer extends React.PureComponent {
<MonacoEditor
language={languageEnum.LANG_MONACO_MODES[this.props.lang]}
theme="vs-dark"
class="ScratchpadMonacoEditor"
value={this.props.code}
options={getOptions(this.props.lang)}
ref="editor"
+1
View File
@@ -64,6 +64,7 @@ export default class ScratchpadContainer extends React.PureComponent {
handleChangeSize(uiElement, size) {
this.props.changeUiSize(uiElement, size);
$('#scratchpad').trigger('vjScratchpadRelayout');
this.forceUpdate();
}
render() {