Skip to content

Commit 594cb5b

Browse files
authored
refactor: unwanted logs and warnings removed from console (#287)
* console logs removed * fix: removed one transition warning * removed unused code
1 parent 68b7608 commit 594cb5b

File tree

23 files changed

+1
-85
lines changed

23 files changed

+1
-85
lines changed

src/components/ContextMenu/ContextMenu.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export default {
5858
menuItemClicked(event) {
5959
this.hideContextMenu()
6060
const id = event.target.dataset.index
61-
console.log('Hello From Context Menu' + id)
6261
if (id == 0) {
6362
document.execCommand('copy')
6463
} else if (id == 1) {

src/components/DialogBox/BooleanTable.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ const props = defineProps({
2020
tableHeader: { type: Array, default: () => [] },
2121
tableBody: { type: Array, default: () => [] },
2222
})
23-
console.log(props.tableHeader)
24-
console.log(props.tableBody)
2523
</script>

src/components/DialogBox/CombinationalAnalysis.vue

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,11 @@ function clearData() {
130130
131131
function dialogBoxConformation(selectedOption, circuitItem) {
132132
// SimulatorState.dialogBox.combinationalanalysis_dialog = false
133-
console.log(inputArr.value)
134-
console.log(selectedOption)
135133
// use the above value to show tables and later clear it all
136134
if (selectedOption == 'showLogicTable') {
137135
createLogicTable()
138136
}
139137
if (selectedOption == 'closeMessageBox') {
140-
// console.log('Circuit was not closed')
141138
for (var ind = 0; ind < inputArr.value.length; ind++) {
142139
if (inputArr.value[ind].type == 'text') {
143140
inputArr.value[ind].val = ''
@@ -150,14 +147,12 @@ function dialogBoxConformation(selectedOption, circuitItem) {
150147
SimulatorState.dialogBox.combinationalanalysis_dialog = false
151148
}
152149
if (selectedOption == 'generateCircuit') {
153-
console.log('Generate Cirucit')
154150
SimulatorState.dialogBox.combinationalanalysis_dialog = false
155151
generateCircuit()
156152
clearData()
157153
SimulatorState.dialogBox.combinationalanalysis_dialog = false
158154
}
159155
if (selectedOption == 'printTruthTable') {
160-
console.log('Print Truth Table')
161156
printBooleanTable()
162157
clearData()
163158
SimulatorState.dialogBox.combinationalanalysis_dialog = false
@@ -175,9 +170,6 @@ function createLogicTable() {
175170
outputList = outputList.filter((e) => e)
176171
booleanExpression = booleanExpression.replace(/ /g, '')
177172
booleanExpression = booleanExpression.toUpperCase()
178-
console.log(inputList)
179-
console.log(outputList)
180-
console.log(booleanExpression)
181173
182174
var booleanInputVariables = []
183175
for (var i = 0; i < booleanExpression.length; i++) {
@@ -189,10 +181,6 @@ function createLogicTable() {
189181
}
190182
booleanInputVariables.sort()
191183
192-
console.log(inputList)
193-
console.log(outputList)
194-
console.log(booleanExpression)
195-
196184
if (
197185
inputList.length > 0 &&
198186
outputList.length > 0 &&
@@ -260,11 +248,9 @@ function createBooleanPrompt(inputList, outputList, scope = globalScope) {
260248
}
261249
if (output.value == null) {
262250
for (var i = 0; i < outputListNames.value.length; i++) {
263-
console.log(outputListNames.value[i])
264251
tableHeader.value.push(outputListNames.value[i])
265252
}
266253
} else {
267-
console.log(outputListNames.value)
268254
tableHeader.value.push(outputListNames.value)
269255
}
270256
@@ -295,8 +281,6 @@ function createBooleanPrompt(inputList, outputList, scope = globalScope) {
295281
output.value[j]
296282
}
297283
}
298-
console.log(tableHeader.value)
299-
console.log(tableBody.value)
300284
// display Message Box
301285
SimulatorState.dialogBox.combinationalanalysis_dialog = true
302286
buttonArr.value = [
@@ -333,7 +317,6 @@ function drawCombinationalAnalysis(
333317
outputList,
334318
scope = globalScope
335319
) {
336-
console.log('inside draw CA')
337320
findDimensions(scope)
338321
var inputCount = inputList.length
339322
var maxTerms = 0
@@ -641,12 +624,10 @@ function solveBooleanFunction(inputListNames, booleanExpression) {
641624
return ''
642625
}
643626
}
644-
console.log(output.value)
645627
}
646628
647629
function generateCircuit() {
648630
var data = generateBooleanTableData(outputListNamesInteger.value)
649-
console.log(data)
650631
var minimizedCircuit = []
651632
let inputCount = inputListNames.value.length
652633
for (const output in data) {
@@ -668,7 +649,6 @@ function generateCircuit() {
668649
minimizedCircuit.push(temp.result)
669650
}
670651
}
671-
console.log(output.value)
672652
if (output.value == null) {
673653
drawCombinationalAnalysis(
674654
minimizedCircuit,
@@ -677,7 +657,6 @@ function generateCircuit() {
677657
globalScope
678658
)
679659
} else {
680-
console.log('HI')
681660
drawCombinationalAnalysis(
682661
minimizedCircuit,
683662
inputListNames.value,
@@ -688,10 +667,7 @@ function generateCircuit() {
688667
}
689668
690669
function printBooleanTable() {
691-
console.log($('.messageBox .v-card-text')[0])
692670
var sTable = $('.messageBox .v-card-text')[0].innerHTML
693-
console.log('This is the table')
694-
console.log(sTable)
695671
696672
var style =
697673
`<style>

src/components/DialogBox/CustomShortcut.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,11 @@ function updateEdit(e: KeyboardEvent) {
222222
}
223223
224224
async function resetKeybinding() {
225-
console.log('Reset Keybinding')
226225
if (await confirmOption('Remove all custom keys & set the default keys?'))
227226
setDefault()
228227
}
229228
230229
function saveKeybinding() {
231-
console.log('Save Keybinding')
232230
submit()
233231
SimulatorState.dialogBox.customshortcut_dialog = false
234232
}

src/components/DialogBox/ImportProject.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ function addDropFile(e: DragEvent) {
110110
const fileExtension = droppedFile.name.split('.').pop()
111111
112112
if (fileExtension === 'cv') {
113-
console.log('file dropped')
114113
file.value[0] = droppedFile
115114
document
116115
.querySelector('.fileInput')

src/components/DialogBox/OpenOffline.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,14 @@ onMounted(() => {
7272
})
7373
7474
onUpdated(() => {
75-
console.log('on updated')
7675
var data = localStorage.getItem('projectList')
77-
console.log(data)
7876
projectList.value = JSON.parse(localStorage.getItem('projectList')) || {}
79-
console.log(toRaw(projectList.value))
80-
if (JSON.stringify(projectList.value) == '{}') {
81-
console.log('true')
82-
} else {
83-
console.log('false')
84-
}
8577
})
8678
8779
function deleteOfflineProject(id) {
88-
console.log('Hello from ok')
8980
localStorage.removeItem(id)
9081
const temp = JSON.parse(localStorage.getItem('projectList')) || {}
9182
delete temp[id]
92-
console.log(temp)
9383
projectList.value = temp
9484
localStorage.setItem('projectList', JSON.stringify(temp))
9585
}

src/components/DialogBox/Themes/ApplyThemes.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,11 @@ onMounted(() => {
165165
selectedTheme.value = localStorage.getItem('theme')
166166
themes.value = Object.keys(themeOptions)
167167
themes.value.splice(-1, 1)
168-
console.log(themes.value)
169168
customThemesList.value = CreateAbstraction(themeOptions['Custom Theme'])
170169
customThemes.value = Object.keys(customThemesList.value)
171-
console.log(customThemesList.value)
172-
console.log(customThemes.value)
173170
})
174171
175172
function changeTheme(e) {
176-
console.log(e)
177173
e.preventDefault()
178174
$('.selected').removeClass('selected')
179175
let themeCard = $(e.target.parentElement)
@@ -186,8 +182,6 @@ function changeTheme(e) {
186182
}
187183
188184
function changeCustomTheme(e) {
189-
console.log('update custom theme')
190-
console.log(e)
191185
customThemesList.value[e.target.name].color = e.target.value
192186
customThemesList.value[e.target.name].ref.forEach((property) => {
193187
themeOptions['Custom Theme'][property] = e.target.value
@@ -197,7 +191,6 @@ function changeCustomTheme(e) {
197191
}
198192
199193
function applyTheme() {
200-
console.log('Apply Theme')
201194
if (iscustomTheme.value == false) {
202195
if ($('.selected label').text()) {
203196
localStorage.removeItem('Custom Theme')
@@ -219,7 +212,6 @@ function applyTheme() {
219212
}
220213
function applyCustomTheme() {
221214
iscustomTheme.value = true
222-
console.log('Apply Custom Theme')
223215
updateThemeForStyle(localStorage.getItem('theme'))
224216
updateBG()
225217
localStorage.setItem('theme', 'Custom Theme')
@@ -250,7 +242,6 @@ function receivedText(e) {
250242
}
251243
252244
function importCustomTheme() {
253-
console.log('Import Custom Theme')
254245
$('#importThemeFile').click()
255246
256247
$('#importThemeFile').on('change', (event) => {
@@ -267,7 +258,6 @@ function importCustomTheme() {
267258
})
268259
}
269260
function exportCustomTheme() {
270-
console.log('Export Custom Theme')
271261
const dlAnchorElem = document.getElementById('downloadThemeFile')
272262
dlAnchorElem.setAttribute(
273263
'href',

src/components/Dropdown/DropDown.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,5 @@ const props = defineProps({
5454
dropDownHeader: { type: String, default: '' },
5555
dropDownType: { type: String, default: '' },
5656
})
57-
console.log(props.dropDownHeader)
58-
console.log(props.listItems)
5957
const userId = useAuthStore().getUserId
6058
</script>

src/components/Panels/PropertiesPanel/ModuleProperty/ProjectProperty/ProjectProperty.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ type SimulatorStateType = {
150150
// () => {
151151
// circuitName.value = SimulatorState.activeCircuit.name
152152
// circuitId.value = SimulatorState.activeCircuit.id
153-
// console.log(circuitName.value, circuitId.value)
154153
// },
155154
// { deep: true }
156155
// )

src/components/Panels/TimingDiagramPanel/TimingDiagramPanel.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ const plotRef = ref<HTMLElement | null>(null)
6868
const cycleUnits = ref(1000)
6969
7070
function handleButtonClick(button: string) {
71-
console.log('clicked', button)
7271
if (button === 'smaller') {
7372
if (plotRef.value) {
7473
plotRef.value.style.width = `${Math.max(

0 commit comments

Comments
 (0)