@@ -343,46 +343,7 @@ class IDEView extends React.Component {
343
343
allowResize = { this . props . ide . consoleIsExpanded }
344
344
className = "editor-preview-subpanel"
345
345
>
346
- < Editor
347
- lintWarning = { this . props . preferences . lintWarning }
348
- linewrap = { this . props . preferences . linewrap }
349
- lintMessages = { this . props . editorAccessibility . lintMessages }
350
- updateLintMessage = { this . props . updateLintMessage }
351
- clearLintMessage = { this . props . clearLintMessage }
352
- file = { this . props . selectedFile }
353
- updateFileContent = { this . props . updateFileContent }
354
- fontSize = { this . props . preferences . fontSize }
355
- lineNumbers = { this . props . preferences . lineNumbers }
356
- files = { this . props . files }
357
- editorOptionsVisible = { this . props . ide . editorOptionsVisible }
358
- showEditorOptions = { this . props . showEditorOptions }
359
- closeEditorOptions = { this . props . closeEditorOptions }
360
- showKeyboardShortcutModal = {
361
- this . props . showKeyboardShortcutModal
362
- }
363
- setUnsavedChanges = { this . props . setUnsavedChanges }
364
- isPlaying = { this . props . ide . isPlaying }
365
- theme = { this . props . preferences . theme }
366
- startRefreshSketch = { this . props . startRefreshSketch }
367
- stopSketch = { this . props . stopSketch }
368
- autorefresh = { this . props . preferences . autorefresh }
369
- unsavedChanges = { this . props . ide . unsavedChanges }
370
- projectSavedTime = { this . props . project . updatedAt }
371
- isExpanded = { this . props . ide . sidebarIsExpanded }
372
- expandSidebar = { this . props . expandSidebar }
373
- collapseSidebar = { this . props . collapseSidebar }
374
- isUserOwner = { isUserOwner ( this . props ) }
375
- clearConsole = { this . props . clearConsole }
376
- consoleEvents = { this . props . console }
377
- showRuntimeErrorWarning = { this . props . showRuntimeErrorWarning }
378
- hideRuntimeErrorWarning = { this . props . hideRuntimeErrorWarning }
379
- runtimeErrorWarningVisible = {
380
- this . props . ide . runtimeErrorWarningVisible
381
- }
382
- provideController = { ( ctl ) => {
383
- this . cmController = ctl ;
384
- } }
385
- />
346
+ < Editor provideController = { ( ctl ) => { this . cmController = ctl ; } } />
386
347
< Console />
387
348
</ SplitPane >
388
349
< section className = "preview-frame-holder" >
@@ -533,31 +494,25 @@ IDEView.propTypes = {
533
494
} ) . isRequired ,
534
495
saveProject : PropTypes . func . isRequired ,
535
496
ide : PropTypes . shape ( {
536
- isPlaying : PropTypes . bool . isRequired ,
537
- isAccessibleOutputPlaying : PropTypes . bool . isRequired ,
538
- consoleEvent : PropTypes . array , // eslint-disable-line
539
- modalIsVisible : PropTypes . bool . isRequired ,
540
- sidebarIsExpanded : PropTypes . bool . isRequired ,
541
- consoleIsExpanded : PropTypes . bool . isRequired ,
542
- preferencesIsVisible : PropTypes . bool . isRequired ,
543
- projectOptionsVisible : PropTypes . bool . isRequired ,
544
- newFolderModalVisible : PropTypes . bool . isRequired ,
497
+ errorType : PropTypes . string ,
498
+ keyboardShortcutVisible : PropTypes . bool . isRequired ,
545
499
shareModalVisible : PropTypes . bool . isRequired ,
546
500
shareModalProjectId : PropTypes . string . isRequired ,
547
501
shareModalProjectName : PropTypes . string . isRequired ,
548
502
shareModalProjectUsername : PropTypes . string . isRequired ,
549
- editorOptionsVisible : PropTypes . bool . isRequired ,
550
- keyboardShortcutVisible : PropTypes . bool . isRequired ,
551
- unsavedChanges : PropTypes . bool . isRequired ,
552
- infiniteLoop : PropTypes . bool . isRequired ,
553
- previewIsRefreshing : PropTypes . bool . isRequired ,
554
- infiniteLoopMessage : PropTypes . string . isRequired ,
555
- projectSavedTime : PropTypes . string ,
556
503
previousPath : PropTypes . string . isRequired ,
557
- justOpenedProject : PropTypes . bool . isRequired ,
558
- errorType : PropTypes . string ,
559
- runtimeErrorWarningVisible : PropTypes . bool . isRequired ,
504
+ previewIsRefreshing : PropTypes . bool . isRequired ,
505
+ isPlaying : PropTypes . bool . isRequired ,
506
+ isAccessibleOutputPlaying : PropTypes . bool . isRequired ,
507
+ projectOptionsVisible : PropTypes . bool . isRequired ,
508
+ preferencesIsVisible : PropTypes . bool . isRequired ,
509
+ modalIsVisible : PropTypes . bool . isRequired ,
560
510
uploadFileModalVisible : PropTypes . bool . isRequired ,
511
+ newFolderModalVisible : PropTypes . bool . isRequired ,
512
+ justOpenedProject : PropTypes . bool . isRequired ,
513
+ sidebarIsExpanded : PropTypes . bool . isRequired ,
514
+ consoleIsExpanded : PropTypes . bool . isRequired ,
515
+ unsavedChanges : PropTypes . bool . isRequired ,
561
516
} ) . isRequired ,
562
517
stopSketch : PropTypes . func . isRequired ,
563
518
project : PropTypes . shape ( {
@@ -572,11 +527,9 @@ IDEView.propTypes = {
572
527
editorAccessibility : PropTypes . shape ( {
573
528
lintMessages : PropTypes . array . isRequired , // eslint-disable-line
574
529
} ) . isRequired ,
575
- updateLintMessage : PropTypes . func . isRequired ,
576
- clearLintMessage : PropTypes . func . isRequired ,
577
530
preferences : PropTypes . shape ( {
578
- fontSize : PropTypes . number . isRequired ,
579
531
autosave : PropTypes . bool . isRequired ,
532
+ fontSize : PropTypes . number . isRequired ,
580
533
linewrap : PropTypes . bool . isRequired ,
581
534
lineNumbers : PropTypes . bool . isRequired ,
582
535
lintWarning : PropTypes . bool . isRequired ,
@@ -602,7 +555,6 @@ IDEView.propTypes = {
602
555
name : PropTypes . string . isRequired ,
603
556
content : PropTypes . string . isRequired ,
604
557
} ) ) . isRequired ,
605
- updateFileContent : PropTypes . func . isRequired ,
606
558
selectedFile : PropTypes . shape ( {
607
559
id : PropTypes . string . isRequired ,
608
560
content : PropTypes . string . isRequired ,
@@ -630,9 +582,6 @@ IDEView.propTypes = {
630
582
closeNewFileModal : PropTypes . func . isRequired ,
631
583
createFolder : PropTypes . func . isRequired ,
632
584
closeShareModal : PropTypes . func . isRequired ,
633
- showEditorOptions : PropTypes . func . isRequired ,
634
- closeEditorOptions : PropTypes . func . isRequired ,
635
- showKeyboardShortcutModal : PropTypes . func . isRequired ,
636
585
closeKeyboardShortcutModal : PropTypes . func . isRequired ,
637
586
toast : PropTypes . shape ( {
638
587
isVisible : PropTypes . bool . isRequired ,
@@ -642,22 +591,14 @@ IDEView.propTypes = {
642
591
setRouteLeaveHook : PropTypes . func ,
643
592
} ) . isRequired ,
644
593
route : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . element ] ) . isRequired ,
645
- setUnsavedChanges : PropTypes . func . isRequired ,
646
594
setTheme : PropTypes . func . isRequired ,
647
595
endSketchRefresh : PropTypes . func . isRequired ,
648
- startRefreshSketch : PropTypes . func . isRequired ,
649
596
setBlobUrl : PropTypes . func . isRequired ,
650
597
setPreviousPath : PropTypes . func . isRequired ,
651
- console : PropTypes . arrayOf ( PropTypes . shape ( {
652
- method : PropTypes . string . isRequired ,
653
- args : PropTypes . arrayOf ( PropTypes . string ) ,
654
- } ) ) . isRequired ,
655
598
clearConsole : PropTypes . func . isRequired ,
656
599
showErrorModal : PropTypes . func . isRequired ,
657
600
hideErrorModal : PropTypes . func . isRequired ,
658
601
clearPersistedState : PropTypes . func . isRequired ,
659
- showRuntimeErrorWarning : PropTypes . func . isRequired ,
660
- hideRuntimeErrorWarning : PropTypes . func . isRequired ,
661
602
startSketch : PropTypes . func . isRequired ,
662
603
openUploadFileModal : PropTypes . func . isRequired ,
663
604
closeUploadFileModal : PropTypes . func . isRequired ,
0 commit comments