add styles and adjust the monacoEditorMock to show backend challenges
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
5869ea4b33
commit
aaafd215da
@ -1,4 +1,18 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export default () => React.createElement('div');
|
export default (props) => {
|
||||||
|
const { width = '100%', height = '100%' } = props;
|
||||||
|
const fixedWidth = width.toString().indexOf('%') !== -1 ?
|
||||||
|
width : `${width}px`;
|
||||||
|
const fixedHeight = height.toString().indexOf('%') !== -1 ?
|
||||||
|
height : `${height}px`;
|
||||||
|
const style = {
|
||||||
|
width: fixedWidth,
|
||||||
|
height: fixedHeight
|
||||||
|
}; return (
|
||||||
|
<div
|
||||||
|
style={style}
|
||||||
|
className="react-monaco-editor-container" />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
@ -10,6 +10,7 @@ import ChallengeDescription from '../components/Challenge-Description';
|
|||||||
import TestSuite from '../components/Test-Suite';
|
import TestSuite from '../components/Test-Suite';
|
||||||
import Output from '../components/Output';
|
import Output from '../components/Output';
|
||||||
import CompletionModal from '../components/CompletionModal';
|
import CompletionModal from '../components/CompletionModal';
|
||||||
|
import HelpModal from '../components/HelpModal';
|
||||||
import ProjectToolPanel from '../project/Tool-Panel';
|
import ProjectToolPanel from '../project/Tool-Panel';
|
||||||
import {
|
import {
|
||||||
executeChallenge,
|
executeChallenge,
|
||||||
@ -29,6 +30,11 @@ import {
|
|||||||
import Spacer from '../../../components/util/Spacer';
|
import Spacer from '../../../components/util/Spacer';
|
||||||
import { createGuideUrl } from '../utils';
|
import { createGuideUrl } from '../utils';
|
||||||
|
|
||||||
|
import '../components/tool-panel.css';
|
||||||
|
import '../components/preview.css';
|
||||||
|
import '../components/test-suite.css';
|
||||||
|
import '../classic/classic.css';
|
||||||
|
|
||||||
// provided by redux form
|
// provided by redux form
|
||||||
const reduxFormPropTypes = {
|
const reduxFormPropTypes = {
|
||||||
fields: PropTypes.object,
|
fields: PropTypes.object,
|
||||||
@ -157,6 +163,7 @@ export class BackEnd extends PureComponent {
|
|||||||
<Spacer />
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
<CompletionModal />
|
<CompletionModal />
|
||||||
|
<HelpModal />
|
||||||
</Row>
|
</Row>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user