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; this.settingsInitialized = true;
}, },
showEditActionPopup(event) { showEditActionPopup(event) {
console.log("SHOW EDIT ACTION/APP:", event)
this.editActionPopupVisible = true; this.editActionPopupVisible = true;
this.editActionIndex = event; this.editActionIndex = event;
this.anyOpenedPopups = true; this.anyOpenedPopups = true;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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