Skip to content

Commit e6df581

Browse files
committed
commented out all unused console.logs
1 parent 195d579 commit e6df581

File tree

14 files changed

+32
-31
lines changed

14 files changed

+32
-31
lines changed

src-electron/main-process/electron-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function sendTokenRequest() {
7979
if (decoded.error) {
8080
return slackErrorHandler(decoded.error)
8181
}
82-
console.log('Is there an error? ', !!decoded.error, 'if true, this shouldnt be logging')
82+
// console.log('Is there an error? ', !!decoded.error, 'if true, this shouldnt be logging')
8383
mainWindow.webContents.send("tokenReceived", decoded);
8484
// getSlackUser(decoded.access_token, decoded.authed_user.id)
8585
});

src/components/ComponentDisplay.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ export default {
141141
window.addEventListener('copy', () => {
142142
// if there is an activeComponent, copy info to state using dispatch
143143
if (this.activeComponent) {
144-
console.log('copied!', this.activeComponent);
144+
// console.log('copied!', this.activeComponent);
145145
this.$store.dispatch("copyActiveComponent");
146146
}
147147
});
148148
149149
window.addEventListener('paste', () => {
150150
this.$store.dispatch("pasteActiveComponent");
151-
console.log('pasted');
151+
// console.log('pasted');
152152
})
153153
},
154154
@@ -352,7 +352,7 @@ export default {
352352
353353
// unhighlights all inactive components
354354
onActivated(componentData) {
355-
console.log('onActivated - comp display, componentData', componentData)
355+
// console.log('onActivated - comp display, componentData', componentData)
356356
if (this.$refs.boxes) {
357357
this.$refs.boxes.forEach(element => {
358358
if (element.$attrs.id !== componentData.componentName) {
@@ -389,7 +389,7 @@ export default {
389389
390390
// user can change component's layer order
391391
handleLayer(e) {
392-
console.log('handeLayer\'s e: ', e)
392+
// console.log('handeLayer\'s e: ', e)
393393
e.preventDefault();
394394
const payload = {
395395
activeComponent: this.activeComponent,
@@ -411,7 +411,7 @@ export default {
411411
412412
// event handler for copying (ctrl+C)
413413
copyActiveComponent() {
414-
console.log('copied');
414+
// console.log('copied');
415415
}
416416
417417
},

src/components/dashboard_items/CodeSnippet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default {
121121
// eslint-disable-next-line no-unused-vars
122122
for (let el of htmlArr) {
123123
if (!el.text) {
124-
console.log(htmlArr)
124+
// console.log(htmlArr)
125125
outputStr += ` <${el}/>\n`
126126
} else {
127127
outputStr += ` `

src/components/dashboard_items/Tree.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export default {
7070
nodes[component.name].children.push(nodes[child])
7171
})
7272
})
73-
console.log(nodes)
74-
console.log(result)
73+
// console.log(nodes)
74+
// console.log(result)
7575
return result
7676
},
7777
// Called by computedTree, calls transformToTree

src/components/file_system_interface/ExportProject.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ export default {
236236
// add import mapstate and mapactions if they exist
237237
const currentComponent = this.componentMap[componentName]
238238
const routes = Object.keys(this.routes)
239-
console.log(componentName)
240-
console.log(currentComponent)
239+
// console.log(componentName)
240+
// console.log(currentComponent)
241241
if (!routes.includes(componentName)) {
242242
let imports = ''
243243
if (currentComponent.actions.length || currentComponent.state.length) {

src/components/file_system_interface/SaveProjectComponent.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
// console.log(deleteKey, 'Key is cleared!')
7676
})
7777
.catch(function (err) {
78-
console.log(err)
78+
// console.log(err)
7979
})
8080
8181
let fileName = this.parseFileName(data)
@@ -115,8 +115,9 @@ export default {
115115
116116
// console.log('PROJECT SAVED AS A JSON OBJECT!')
117117
localforage.getItem('slackWebhookURL', (err, value) => {
118+
// TODO: handle error
118119
console.log('error: ', err)
119-
console.log('slackWebhookURL: ', value)
120+
// console.log('slackWebhookURL: ', value)
120121
if (value) this.notifySlack(fileName, value)
121122
})
122123
}

src/components/home_sidebar_items/ComponentTab/AddProps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default {
8888
// Prevent Delete on changes to searchable multiselect
8989
stopDelete (e) {
9090
if (e.code === 'Backspace') e.stopPropogation()
91-
console.log(e)
91+
// console.log(e)
9292
},
9393
9494
// Create's a new prop that will be stored in the userProps array within store, and it will be added to the props drop-down menu

src/components/home_sidebar_items/ComponentTab/ComponentActions.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default {
103103
// Prevent Delete on changes to searchable multiselect
104104
stopDelete (e) {
105105
if (e.code === 'Backspce') e.stopPropogation();
106-
console.log(e);
106+
// console.log(e);
107107
},
108108
// adds an action to the currently selected component
109109
addActionToComp () {
@@ -112,7 +112,7 @@ export default {
112112
// delete selected action from active component
113113
deleteAction (action) {
114114
this.deleteActionFromComponent(action);
115-
console.log(this.activeComponentObj);
115+
// console.log(this.activeComponentObj);
116116
},
117117
118118
}

src/components/home_sidebar_items/ComponentTab/ComponentState.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default {
103103
// Prevent Delete on changes to searchable multiselet
104104
stopDelete (e) {
105105
if (e.code === 'Backspce') e.stopPropogation();
106-
console.log(e);
106+
// console.log(e);
107107
},
108108
// adds a state to the currently selected component
109109
addStateToComp () {
@@ -112,7 +112,7 @@ export default {
112112
// delete selected state from active component
113113
deleteState (state) {
114114
this.deleteStateFromComponent(state);
115-
console.log(this.activeComponentObj);
115+
// console.log(this.activeComponentObj);
116116
},
117117
118118
}

src/components/home_sidebar_items/ComponentTab/EditDeleteComponents.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export default {
459459
)
460460
this.editComponentName(name);
461461
this.setActiveComponent(this.activeComponent);
462-
console.log(this.componentMap);
462+
// console.log(this.componentMap);
463463
},
464464
},
465465
watch: {

0 commit comments

Comments
 (0)