upgrade dep:

css-loader 0.28->3.5
del 4.1->5.1
eslint 5.18->6.8
eslint-config-airbnb 17.1->18.1
eslint-loader 2.1->4.0
file-loader 2.0->6.0
fs.extra 8.0->9.0
gulp 2.0->3.0
gulp-nunjucks 4.0->5.0
json-loader 0.5->Removed
style-loader 0.23->1.1
uglifyjs-webpack-plugin 1.3->2.2
yargs 13.2->15.3
katex 0.10->0.11
react-monaco-editor 0.35->0.36
timeage-react 1.2->3.0
timeago.js 3.0->4.0
uuid 3.3->7.0
This commit is contained in:
masnn committed 2020-04-15 12:47:55 +08:00
1 parent 9cb68397b9
commit f9468536de
55 files changed
+776 -1032

No files matched your search

+6 -6
View File
@@ -23,7 +23,7 @@ panes: [{
function buildNestedPane([a, ...panes]) {
const elements = [
a,
...panes.filter(p => p.props.visible),
...panes.filter((p) => p.props.visible),
];
if (elements.length === 1) {
return a;
@@ -43,11 +43,11 @@ function buildNestedPane([a, ...panes]) {
));
}
const mapStateToProps = state => ({
const mapStateToProps = (state) => ({
ui: state.ui,
});
const mapDispatchToProps = dispatch => ({
const mapDispatchToProps = (dispatch) => ({
changeUiSize: _.debounce((uiElement, size) => {
dispatch({
type: 'SCRATCHPAD_UI_CHANGE_SIZE',
@@ -73,7 +73,7 @@ export default class ScratchpadContainer extends React.PureComponent {
minSize={250}
split="vertical"
primary="second"
onChange={size => this.handleChangeSize('main', size)}
onChange={(size) => this.handleChangeSize('main', size)}
>
<Dom className="scratchpad__problem" childDom={$('.problem-content').get(0)} />
{buildNestedPane([
@@ -83,12 +83,12 @@ export default class ScratchpadContainer extends React.PureComponent {
</SplitPaneFillOverlay>,
{
props: this.props.ui.pretest,
onChange: size => this.handleChangeSize('pretest', size),
onChange: (size) => this.handleChangeSize('pretest', size),
element: <ScratchpadPretest key="pretest" />,
},
{
props: this.props.ui.records,
onChange: size => this.handleChangeSize('records', size),
onChange: (size) => this.handleChangeSize('records', size),
element: <ScratchpadRecords key="records" />,
},
])}