1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-04-05 03:12:25 +02:00

contentwraps: remove unused code

This commit is contained in:
Kushagra Gour 2019-07-16 17:03:22 +05:30
parent 5c417e5d2f
commit b4f4b5d0b7
2 changed files with 4 additions and 22 deletions

View File

@ -876,6 +876,7 @@ export default class ContentWrap extends Component {
toggleConsole={this.toggleConsole}
onEvalInputKeyup={this.evalConsoleExpr}
/>
<CssSettingsModal
show={this.state.isCssSettingsModalOpen}
closeHandler={() =>

View File

@ -443,28 +443,6 @@ export default class ContentWrapFiles extends Component {
// );
// return handleModeRequirements(value);
}
updateCssMode(value) {
// this.props.onCodeModeChange('css', value);
// this.props.currentItem.cssMode = value;
this.cm.setOption('mode', modes[value].cmMode);
this.cm.setOption('readOnly', modes[value].cmDisable);
/* window.cssSettingsBtn.classList[
modes[value].hasSettings ? 'remove' : 'add'
]('hide'); */
CodeMirror.autoLoadMode(
this.cm,
modes[value].cmPath || modes[value].cmMode
);
return handleModeRequirements(value);
}
updateJsMode(value) {
this.cm.setOption('mode', modes[value].cmMode);
CodeMirror.autoLoadMode(
this.cm,
modes[value].cmPath || modes[value].cmMode
);
return handleModeRequirements(value);
}
getDemoFrame(callback) {
callback(this.frame);
@ -679,8 +657,11 @@ export default class ContentWrapFiles extends Component {
id="demo-frame"
allowfullscreen
/>
<iframe src={`${PREVIEW_FRAME_HOST}/talk.html`} id="talkFrame" />
<PreviewDimension ref={comp => (this.previewDimension = comp)} />
<Console
logs={this.state.logs}
isConsoleOpen={this.state.isConsoleOpen}