@@ -344,46 +344,7 @@ class IDEView extends React.Component {
344
344
allowResize = { this . props . ide . consoleIsExpanded }
345
345
className = "editor-preview-subpanel"
346
346
>
347
- < Editor
348
- lintWarning = { this . props . preferences . lintWarning }
349
- linewrap = { this . props . preferences . linewrap }
350
- lintMessages = { this . props . editorAccessibility . lintMessages }
351
- updateLintMessage = { this . props . updateLintMessage }
352
- clearLintMessage = { this . props . clearLintMessage }
353
- file = { this . props . selectedFile }
354
- updateFileContent = { this . props . updateFileContent }
355
- fontSize = { this . props . preferences . fontSize }
356
- lineNumbers = { this . props . preferences . lineNumbers }
357
- files = { this . props . files }
358
- editorOptionsVisible = { this . props . ide . editorOptionsVisible }
359
- showEditorOptions = { this . props . showEditorOptions }
360
- closeEditorOptions = { this . props . closeEditorOptions }
361
- showKeyboardShortcutModal = {
362
- this . props . showKeyboardShortcutModal
363
- }
364
- setUnsavedChanges = { this . props . setUnsavedChanges }
365
- isPlaying = { this . props . ide . isPlaying }
366
- theme = { this . props . preferences . theme }
367
- startRefreshSketch = { this . props . startRefreshSketch }
368
- stopSketch = { this . props . stopSketch }
369
- autorefresh = { this . props . preferences . autorefresh }
370
- unsavedChanges = { this . props . ide . unsavedChanges }
371
- projectSavedTime = { this . props . project . updatedAt }
372
- isExpanded = { this . props . ide . sidebarIsExpanded }
373
- expandSidebar = { this . props . expandSidebar }
374
- collapseSidebar = { this . props . collapseSidebar }
375
- isUserOwner = { isUserOwner ( this . props ) }
376
- clearConsole = { this . props . clearConsole }
377
- consoleEvents = { this . props . console }
378
- showRuntimeErrorWarning = { this . props . showRuntimeErrorWarning }
379
- hideRuntimeErrorWarning = { this . props . hideRuntimeErrorWarning }
380
- runtimeErrorWarningVisible = {
381
- this . props . ide . runtimeErrorWarningVisible
382
- }
383
- provideController = { ( ctl ) => {
384
- this . cmController = ctl ;
385
- } }
386
- />
347
+ < Editor provideController = { ( ctl ) => { this . cmController = ctl ; } } />
387
348
< Console />
388
349
</ SplitPane >
389
350
< 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 ,
@@ -585,6 +538,7 @@ IDEView.propTypes = {
585
538
soundOutput : PropTypes . bool . isRequired ,
586
539
theme : PropTypes . string . isRequired ,
587
540
autorefresh : PropTypes . bool . isRequired ,
541
+
588
542
} ) . isRequired ,
589
543
closePreferences : PropTypes . func . isRequired ,
590
544
setFontSize : PropTypes . func . isRequired ,
@@ -601,7 +555,6 @@ IDEView.propTypes = {
601
555
name : PropTypes . string . isRequired ,
602
556
content : PropTypes . string . isRequired ,
603
557
} ) ) . isRequired ,
604
- updateFileContent : PropTypes . func . isRequired ,
605
558
selectedFile : PropTypes . shape ( {
606
559
id : PropTypes . string . isRequired ,
607
560
content : PropTypes . string . isRequired ,
@@ -629,9 +582,6 @@ IDEView.propTypes = {
629
582
closeNewFileModal : PropTypes . func . isRequired ,
630
583
createFolder : PropTypes . func . isRequired ,
631
584
closeShareModal : PropTypes . func . isRequired ,
632
- showEditorOptions : PropTypes . func . isRequired ,
633
- closeEditorOptions : PropTypes . func . isRequired ,
634
- showKeyboardShortcutModal : PropTypes . func . isRequired ,
635
585
closeKeyboardShortcutModal : PropTypes . func . isRequired ,
636
586
toast : PropTypes . shape ( {
637
587
isVisible : PropTypes . bool . isRequired ,
@@ -641,22 +591,14 @@ IDEView.propTypes = {
641
591
setRouteLeaveHook : PropTypes . func ,
642
592
} ) . isRequired ,
643
593
route : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . element ] ) . isRequired ,
644
- setUnsavedChanges : PropTypes . func . isRequired ,
645
594
setTheme : PropTypes . func . isRequired ,
646
595
endSketchRefresh : PropTypes . func . isRequired ,
647
- startRefreshSketch : PropTypes . func . isRequired ,
648
596
setBlobUrl : PropTypes . func . isRequired ,
649
597
setPreviousPath : PropTypes . func . isRequired ,
650
- console : PropTypes . arrayOf ( PropTypes . shape ( {
651
- method : PropTypes . string . isRequired ,
652
- args : PropTypes . arrayOf ( PropTypes . string ) ,
653
- } ) ) . isRequired ,
654
598
clearConsole : PropTypes . func . isRequired ,
655
599
showErrorModal : PropTypes . func . isRequired ,
656
600
hideErrorModal : PropTypes . func . isRequired ,
657
601
clearPersistedState : PropTypes . func . isRequired ,
658
- showRuntimeErrorWarning : PropTypes . func . isRequired ,
659
- hideRuntimeErrorWarning : PropTypes . func . isRequired ,
660
602
startSketch : PropTypes . func . isRequired ,
661
603
openUploadFileModal : PropTypes . func . isRequired ,
662
604
closeUploadFileModal : PropTypes . func . isRequired ,
0 commit comments