An easy-to-use platform for EEG experimentation in the classroom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

small left over changes

+12 -29
+11 -14
app/components/DesignComponent/CustomDesignComponent.tsx
··· 73 73 } 74 74 75 75 export default class CustomDesign extends Component<Props, State> { 76 - // handleStartExperiment: (Object) => void; 77 - 78 - // handlePreview: () => void; 79 - // handleSaveParams: () => void; 80 - // handleProgressBar: (Object, Object) => void; 81 76 constructor(props: Props) { 82 77 super(props); 83 78 this.state = { ··· 640 635 verticalAlign="middle" 641 636 className={styles.previewWindow} 642 637 > 643 - <PreviewExperimentComponent 644 - {...loadProtocol(this.props.paradigm)} 645 - isPreviewing={this.state.isPreviewing} 646 - onEnd={this.endPreview} 647 - type={this.props.type} 648 - paradigm={this.props.paradigm} 649 - previewParams={this.props.params} 650 - title={this.props.title} 651 - /> 638 + {this.props.type && ( 639 + <PreviewExperimentComponent 640 + {...loadProtocol(this.props.type)} 641 + isPreviewing={this.state.isPreviewing} 642 + onEnd={this.endPreview} 643 + type={this.props.type} 644 + paradigm={this.props.type} 645 + previewParams={this.props.params} 646 + title={this.props.title} 647 + /> 648 + )} 652 649 </Grid.Column> 653 650 654 651 <Grid.Column width={2} verticalAlign="top">
-6
app/components/DesignComponent/index.tsx
··· 16 16 import { EXPERIMENTS, SCREENS } from '../../constants/constants'; 17 17 import { readWorkspaces } from '../../utils/filesystem/storage'; 18 18 import { 19 - MainTimeline, 20 19 Trial, 21 20 ExperimentParameters, 22 21 ExperimentDescription, ··· 59 58 paradigm: EXPERIMENTS; 60 59 title: string; 61 60 params: ExperimentParameters; 62 - mainTimeline: MainTimeline; 63 - trials: { 64 - [key: string]: Trial; 65 - }; 66 - timelines: {}; 67 61 ExperimentActions: typeof ExperimentActions; 68 62 description: ExperimentDescription; 69 63 isEEGEnabled: boolean;
-2
app/components/EEGExplorationComponent.tsx
··· 37 37 } 38 38 39 39 export default class Home extends Component<Props, State> { 40 - // handleConnectModalClose: () => void; 41 - // handleStartConnect: () => void; 42 40 constructor(props: Props) { 43 41 super(props); 44 42 this.state = {
+1 -7
app/constants/interfaces.ts
··· 47 47 randomize?: 'random' | 'sequential'; 48 48 selfPaced?: boolean; 49 49 presentationTime?: number; 50 + taskHelp?: string; 50 51 }; 51 52 52 53 export type ExperimentDescription = { ··· 62 63 eventCallback: (e: Event, time: number) => void; 63 64 on_finish: (csv: any) => void; 64 65 } 65 - 66 - // --------------------------------------------------- 67 - // jsPsych 68 - // TODO: figure out if this is still being used 69 - 70 - // Array of timeline and trial ids that will be presented in experiment 71 - export type MainTimeline = Array<string>; 72 66 73 67 // jsPsych trial presented as part of an experiment 74 68 export interface Trial {