Removed console.logs _not_ gated behind ifs from .vue files

This commit is contained in:
Tamius Han 2019-05-22 01:05:32 +02:00
parent c651bb222b
commit fd5c3fc06f
9 changed files with 1 additions and 15 deletions

View File

@ -181,7 +181,6 @@ export default {
this.settingsInitialized = true;
},
showEditActionPopup(event) {
console.log("SHOW EDIT ACTION/APP:", event)
this.editActionPopupVisible = true;
this.editActionIndex = event;
this.anyOpenedPopups = true;

View File

@ -488,7 +488,7 @@ export default {
ctx.drawWindow(window,0, 0, 10, 10, "rgba(0,0,0,0)");
this.fallbackModeAvailable = true;
} catch (e) {
console.log("DrawWindow failed:", e)
// console.log("DrawWindow failed:", e)
this.fallbackModeAvailable = false;
}
},

View File

@ -133,7 +133,6 @@ export default {
}
},
created () {
console.log("Opening action edit popup. Action index:", this.actionIndex, "\nAction:", this.settings.active.actions[this.actionIndex]);
if (this.actionIndex >= 0) {
// this.currentCmdIndex = this.actionIndex;
this.action = this.settings.active.actions[this.actionIndex];
@ -189,7 +188,6 @@ export default {
this.action.label = newLabel;
},
updateScopes(scope, prop, value) {
console.log("updating scope", scope, "for prop", prop, ". New value:", value)
if(this.action.scopes[scope] === undefined) {
this.action.scopes[scope] = {};
}

View File

@ -134,7 +134,6 @@ export default {
},
watch: {
settings: (newVal, oldVal) => {
console.log("this.settings", this.settings, newVal, oldVal)
this.settings = newVal;
}
},

View File

@ -98,7 +98,6 @@ export default {
created () {
if (this.action) {
this.selectedAction = this.action.action;
console.log("THIS:ACTION", this.action)
this.selectedArgument = {
name: ActionList[this.action.action].args.find(x => x.arg === this.action.arg) || ActionList[this.action.action].args.find(x => x.customArg),
arg: this.action.arg
@ -120,13 +119,11 @@ export default {
},
methods: {
setAction(cmd) {
console.log("SETTING ACTION", cmd);
this.selectedAction = cmd;
this.selectedArgument = undefined;
this.customArgumentValue = undefined;
},
setArgument(arg) {
console.log("SETTING ARG:", arg)
this.selectedArgument = ActionList[this.selectedAction].args.find(x => x.arg == arg);
this.customArgumentValue = undefined;
},

View File

@ -47,7 +47,6 @@ export default {
}
},
created () {
console.log("Creating command block for action:", JSON.parse(JSON.stringify(this.action)), JSON.parse(JSON.stringify(ActionList)))
},
props: {
action: Object,
@ -61,13 +60,11 @@ export default {
}
},
setAction(cmd) {
console.log("SETTING ACTION", cmd);
this.selectedAction = cmd;
this.selectedArgument = undefined;
this.customArgumentValue = undefined;
},
setArgument(arg) {
console.log("SETTING ARGUMENT", cmd);
this.selectedArgument = arg;
this.customArgumentValue = undefined;
},

View File

@ -26,7 +26,6 @@ import CommandAddEdit from './CommandAddEdit';
export default {
created () {
console.log("Initializing command chain. Command:", JSON.parse(JSON.stringify(this.command)))
},
components: {
CommandBlock,

View File

@ -126,13 +126,11 @@ export default {
},
async created() {
await this.settings.init();
console.log("\n\n\n\n\n\n\nset init")
this.port.onMessage.addListener( (m,p) => this.processReceivedMessage(m,p));
this.execAction.setSettings(this.settings);
// ensure we'll clean player markings on popup close
window.addEventListener("unload", () => {
console.log("UNLOAD!!das!!")
this.port.postMessage({
cmd: 'unmark-player',
forwardToAll: true,

View File

@ -164,7 +164,6 @@ export default {
return KeyboardShortcutParser.parseShortcut(action.scopes[this.scope].shortcut[0]);
},
wipeSettings() {
console.log("WIPING SETTINGS");
settings.setDefaultSettings();
}
}