get rid of console.log

This commit is contained in:
Mario Pesch
2021-03-24 17:07:23 +01:00
parent d835ffc449
commit 6a6b2e2f58
14 changed files with 1 additions and 23 deletions
-1
View File
@@ -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);
+1 -3
View File
@@ -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;
};
-4
View File
@@ -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);
}
}
-2
View File
@@ -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);
}
-1
View File
@@ -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);
});
};
-1
View File
@@ -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);
}
}
-1
View File
@@ -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') {
-1
View File
@@ -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();
});
-1
View File
@@ -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>