Removed a bunch of console noise

This commit is contained in:
Stefan Zermatten
2020-03-05 14:05:32 +02:00
parent 66e70c8c94
commit 69e8a307fc
11 changed files with 2 additions and 31 deletions

View File

@@ -194,12 +194,9 @@ const damageProperty = new ValidatedMethod({
}
if (operation === 'set'){
let currentValue = currentProperty.value;
console.log('currentValue is ', currentValue)
console.log('target value is ', value)
// Set represents what we want the value to be after damage
// So we need the actual damage to get to that value
let damage = currentValue - value;
console.log('required damage is ', damage)
// Damage can't exceed total value
if (damage > currentValue) damage = currentValue;
// Damage must be positive

View File

@@ -90,7 +90,6 @@ const removeLibrary = new ValidatedMethod({
}).validator(),
run({_id}){
let library = Libraries.findOne(_id);
console.log({library, _id});
assertOwnership(library, this.userId);
Libraries.remove(_id);
this.unblock();

View File

@@ -53,9 +53,6 @@
return JSON.stringify(this.children, null, 2);
}
},
methods: {
log: console.log,
},
};
</script>

View File

@@ -78,9 +78,6 @@ export default {
},
debounceTime: Number,
},
methods: {
log: console.log,
}
};
</script>

View File

@@ -104,13 +104,11 @@ export default {
getPropertyName,
change({path, value, ack}){
updateProperty.call({_id: this._id, path, value}, (error, result) =>{
console.log({error, result});
ack && ack(error && error.reason || error);
});
},
push({path, value, ack}){
pushToProperty.call({_id: this._id, path, value}, (error, result) =>{
console.log({error, result});
ack && ack(error && error.reason || error);
});
},
@@ -118,7 +116,6 @@ export default {
let itemId = get(this.model, path)._id;
path.pop();
pullFromProperty.call({_id: this._id, path, itemId}, (error, result) =>{
console.log({error, result});
ack && ack(error && error.reason || error);
});
},

View File

@@ -132,7 +132,7 @@
}
let source = this.getTopElementByDataId(elementId);
if (!source){
console.log(`Can't find source for ${elementId}`);
console.warn(`Can't find source for ${elementId}`);
done();
return;
}
@@ -165,7 +165,6 @@
}, MOCK_DURATION);
},
noScroll(e){
console.log(e);
e.preventDefault();
}
},

View File

@@ -123,11 +123,6 @@ export default {
});
},
},
watch: {
expandedLibrary(value){
console.log(value)
},
},
}
</script>

View File

@@ -63,13 +63,11 @@
getPropertyName,
change({path, value, ack}){
updateLibraryNode.call({_id: this._id, path, value}, (error, result) =>{
console.log({error, result});
ack && ack(error && error.reason || error);
});
},
push({path, value, ack}){
pushToLibraryNode.call({_id: this._id, path, value}, (error, result) =>{
console.log({error, result});
ack && ack(error && error.reason || error);
});
},
@@ -77,7 +75,6 @@
let itemId = get(this.model, path)._id;
path.pop();
pullFromLibraryNode.call({_id: this._id, path, itemId}, (error, result) =>{
console.log({error, result});
ack && ack(error && error.reason || error);
});
},

View File

@@ -120,7 +120,6 @@
this.editValue = this.value;
this.$nextTick(function() {
this.$refs.editInput.focus();
console.log()
});
},
cancelEdit() {

View File

@@ -35,7 +35,7 @@ const schemaFormMixin = {
if (this.valid) this.valid = false;
errors[error.name] = this.schema.messageForError(error);
});
console.log(errors);
console.error(errors);
return errors;
},
},

View File

@@ -4,7 +4,6 @@
v-for="skill in skills"
:key="skill.name"
v-bind="skill"
@click="click"
/>
</v-list>
</template>
@@ -44,11 +43,6 @@
components: {
SkillListTile,
},
methods: {
click(){
console.log(...arguments);
},
},
}
</script>