Skip to content

Commit ee45328

Browse files
RoderickXiiDanielGaran02Kelementz916anthonyHerrrobsinz
committed
cleanup unneccessary console.logs
Co-authored-by: Daniel Garan <[email protected]> Co-authored-by: Kevin Can <[email protected]> Co-authored-by: Anthony Herrera <[email protected]> Co-authored-by: Rob Sinzieri <[email protected]> Co-authored-by: Roderick de Leon <[email protected]>"
1 parent 72cd401 commit ee45328

File tree

7 files changed

+73
-678
lines changed

7 files changed

+73
-678
lines changed

src-electron/electron-main.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,9 @@ if (mainWindow) {
7676
//{ filePaths } destructured comes fromdialog.showOpenDialog() function.
7777
const { filePaths } = await dialog.showOpenDialog(mainWindow, options);
7878

79-
console.log("filePaths from main is", filePaths);
8079
if (!filePaths) return;
8180
const readData = await fs.readFileSync(filePaths[0], "utf8");
82-
console.log("readData is", readData);
8381
const jsonFile = JSON.parse(readData);
84-
console.log("jsonFile is", jsonFile);
8582
return { jsonFile };
8683
}
8784
});
@@ -110,16 +107,14 @@ ipcMain.handle("exportComponent", async (event, options) => {
110107

111108

112109
ipcMain.handle('writeFile', async (event, filePath, content) => { //possibly merge this with 'writeJSON' handle
113-
// console.log('writeFile filePath:', filePath, '\n content:', content);
114-
console.log("writeFile filePath:", filePath);
110+
115111
await fs.writeFile(filePath, content, (err) => {
116112
if (err) {
117113
console.log(`${err} in fs.writeFile`);
118114
} else {
119115
console.log("File written successfully");
120116
}
121117
});
122-
console.log('finished fs.writeSync')
123118
return { status: "success" };
124119

125120
});
@@ -128,16 +123,13 @@ ipcMain.handle('writeFile', async (event, filePath, content) => { //possibly mer
128123

129124
ipcMain.handle('check-file-exists', async (event, path) => {
130125
const fileExists = await fs.existsSync(path);
131-
console.log("fileExists", fileExists);
132126
if (fileExists) return { status: true };
133127
return { status: false };
134128
});
135129

136130
ipcMain.handle('mkdirSync', async (event, args: string[] ) => {
137131
const mkdirPath = await path.join(...args);
138-
console.log("mkdirPath", mkdirPath);
139132
await fs.mkdirSync(mkdirPath);
140-
console.log("finished making new directory");
141133
return { status: 'success' };
142134
});
143135

src/components/Canvas.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527
</template>
528528

529529
<script setup lang="ts">
530-
import { useExportComponent } from "./composables/useExportComponent.js";
530+
// import { useExportComponent } from "./composables/useExportComponent.js";
531531
import VueDraggableResizable from "vue-draggable-resizable/src/components/vue-draggable-resizable.vue";
532532
import VueMultiselect from "vue-multiselect";
533533
import "vue-draggable-resizable/src/components/vue-draggable-resizable.css";

0 commit comments

Comments
 (0)