get rid of console.log
This commit is contained in:
		
							parent
							
								
									d835ffc449
								
							
						
					
					
						commit
						6a6b2e2f58
					
				| @ -38,13 +38,11 @@ export const getTutorials = () => (dispatch, getState) => { | ||||
|   axios.get(`${process.env.REACT_APP_BLOCKLY_API}/tutorial`) | ||||
|     .then(res => { | ||||
|       var tutorials = res.data.tutorials; | ||||
|       console.log(tutorials); | ||||
|       existingTutorials(tutorials, getState().tutorial.status).then(status => { | ||||
|         dispatch({ | ||||
|           type: TUTORIAL_SUCCESS, | ||||
|           payload: status | ||||
|         }); | ||||
|         console.log('zwei'); | ||||
|         dispatch(updateStatus(status)); | ||||
|         dispatch({ | ||||
|           type: GET_TUTORIALS, | ||||
| @ -167,7 +165,6 @@ export const tutorialCheck = (status, step) => (dispatch, getState) => { | ||||
|     type: status === 'success' ? TUTORIAL_SUCCESS : TUTORIAL_ERROR, | ||||
|     payload: tutorialsStatus | ||||
|   }); | ||||
|   console.log('drei'); | ||||
|   dispatch(updateStatus(tutorialsStatus)); | ||||
|   dispatch(tutorialChange()); | ||||
|   dispatch(returnSuccess('', '', 'TUTORIAL_CHECK_SUCCESS')); | ||||
|  | ||||
| @ -17,7 +17,6 @@ export const onChangeCode = () => (dispatch, getState) => { | ||||
|   var xmlDom = Blockly.Xml.workspaceToDom(workspace); | ||||
|   code.xml = Blockly.Xml.domToPrettyText(xmlDom); | ||||
|   var selectedBlock = Blockly.selected | ||||
|   console.log(selectedBlock) | ||||
|   if (selectedBlock !== null) { | ||||
|     code.helpurl = selectedBlock.helpUrl | ||||
|     code.tooltip = selectedBlock.tooltip | ||||
|  | ||||
| @ -61,7 +61,6 @@ class BlocklyWindow extends Component { | ||||
|       var xmlDom = Blockly.Xml.textToDom(xml); | ||||
|       Blockly.Xml.clearWorkspaceAndLoadFromXml(xmlDom, workspace); | ||||
|       // var toolbox = workspace.getToolbox();
 | ||||
|       // console.log(toolbox);
 | ||||
|       // workspace.updateToolbox(toolbox.toolboxDef_);
 | ||||
|     } | ||||
|     Blockly.svgResize(workspace); | ||||
|  | ||||
| @ -1148,9 +1148,7 @@ Blockly.Blocks['procedures_callnoreturn'] = { | ||||
|                     // This should only be possible programatically and may indicate a problem
 | ||||
|                     // with event grouping. If you see this message please investigate. If the
 | ||||
|                     // use ends up being valid we may need to reorder events in the undo stack.
 | ||||
|                     console.log( | ||||
|                         'Saw an existing group while responding to a definition change' | ||||
|                     ); | ||||
|                     | ||||
|                 } | ||||
|                 Blockly.Events.setGroup(event.group); | ||||
|                 if (event.newValue) { | ||||
|  | ||||
| @ -73,7 +73,6 @@ Blockly.Blocks['sensebox_osem_connection'] = { | ||||
|         * Blockly.Blocks['controls_flow_statements'].LOOP_TYPES.push('custom_loop'); | ||||
|         */ | ||||
|         selectedBox = this.getFieldValue('BoxID'); | ||||
|         console.log(selectedBox) | ||||
|         if (selectedBox !== '' && boxes) { | ||||
|             var accessToken = boxes.find(element => element._id === selectedBox).access_token | ||||
|             if (accessToken !== undefined) { | ||||
| @ -160,7 +159,6 @@ Blockly.Blocks['sensebox_send_to_osem'] = { | ||||
|                 for (var i = 0; i < box.sensors.length; i++) { | ||||
|                     dropdown.push([box.sensors[i].title, box.sensors[i]._id]) | ||||
|                 } | ||||
|                 console.log(dropdown) | ||||
|             } | ||||
|             if (dropdown.length > 1) { | ||||
|                 var options = dropdown.slice(1) | ||||
|  | ||||
| @ -68,7 +68,6 @@ Blockly.Arduino['procedures_defreturn'] = function (block) { | ||||
| }; | ||||
| 
 | ||||
| function translateType(type) { | ||||
|     console.log(type); | ||||
|     switch (type) { | ||||
| 
 | ||||
|         case 'int': | ||||
|  | ||||
| @ -33,7 +33,6 @@ Blockly.Arduino.sensebox_ws2818_led = function () { | ||||
|     var dropdown_pin = this.getFieldValue('Port'); | ||||
|     var position = Blockly.Arduino.valueToCode(this, 'POSITION', Blockly.Arduino.ORDER_ATOMIC) || '0'; | ||||
|     var color = Blockly.Arduino.valueToCode(this, 'COLOR', Blockly.Arduino.ORDER_ATOMIC) || '0' | ||||
|     console.log(color) | ||||
|     var code = `rgb_led_${dropdown_pin}.setPixelColor(${position},rgb_led_${dropdown_pin}.Color(${color}));\nrgb_led_${dropdown_pin}.show();\n`; | ||||
|     return code; | ||||
| }; | ||||
|  | ||||
| @ -15,7 +15,6 @@ class Content extends Component { | ||||
| 
 | ||||
|   componentDidMount() { | ||||
|     if (this.props.language === 'de_DE') { | ||||
|       console.log("change Language") | ||||
|       Blockly.setLocale(De); | ||||
|     } else if (this.props.language === 'en_US') { | ||||
|       Blockly.setLocale(En); | ||||
| @ -23,13 +22,10 @@ class Content extends Component { | ||||
|   } | ||||
| 
 | ||||
|   componentDidUpdate(props) { | ||||
|     console.log(this.props.language) | ||||
|     if (props.language !== this.props.language) { | ||||
|       if (this.props.language === 'de_DE') { | ||||
|         console.log("change Language") | ||||
|         Blockly.setLocale(De); | ||||
|       } else if (this.props.language === 'en_US') { | ||||
|         console.log("change Language") | ||||
|         Blockly.setLocale(En); | ||||
|       } | ||||
|     } | ||||
|  | ||||
| @ -56,8 +56,6 @@ class Project extends Component { | ||||
|   getProject = () => { | ||||
|     var id = this.props.location.pathname.replace(/\/[a-z]{1,}\//, ''); | ||||
|     var param = this.props.location.pathname.replace(`/${id}`, '').replace('/', ''); | ||||
|     console.log('param', param); | ||||
|     console.log(id); | ||||
|     this.props.getProject(param, id); | ||||
|   } | ||||
| 
 | ||||
|  | ||||
| @ -60,7 +60,6 @@ class Badge extends Component { | ||||
|         this.setState({badges: res.data.badges, badgeName: this.props.badge ? res.data.badges.filter(badge => badge._id === this.props.badge)[0].name : '' }); | ||||
|       }) | ||||
|       .catch(err => { | ||||
|         console.log(err); | ||||
|       }); | ||||
|   }; | ||||
| 
 | ||||
|  | ||||
| @ -28,7 +28,6 @@ class Tutorial extends Component { | ||||
|     // retrieve tutorial only if a potential user is loaded - authentication
 | ||||
|     // is finished (success or failed)
 | ||||
|     if(!this.props.progress){ | ||||
|       console.log(this.props); | ||||
|       this.props.getTutorial(this.props.match.params.tutorialId); | ||||
|     } | ||||
|   } | ||||
|  | ||||
| @ -38,7 +38,6 @@ export class Login extends Component { | ||||
|   } | ||||
| 
 | ||||
|   componentDidUpdate(props) { | ||||
|     console.log(this.state.redirect); | ||||
|     const { message } = this.props; | ||||
|     if (message !== props.message) { | ||||
|       if (message.id === 'LOGIN_SUCCESS') { | ||||
|  | ||||
| @ -80,7 +80,6 @@ class Compile extends Component { | ||||
|     }) | ||||
|       .then(response => response.json()) | ||||
|       .then(data => { | ||||
|         console.log(data); | ||||
|         this.setState({ id: data.data.id }, () => { | ||||
|           this.createFileName(); | ||||
|         }); | ||||
|  | ||||
| @ -127,7 +127,6 @@ class SaveProject extends Component { | ||||
|   } | ||||
| 
 | ||||
|   render() { | ||||
|     console.log(1, this.props); | ||||
|     return ( | ||||
|       <div style={this.props.style}> | ||||
|         <Tooltip title={this.state.projectType === 'project' ? Blockly.Msg.tooltip_update_project : Blockly.Msg.tooltip_save_project} arrow> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user