Skip to content

Commit

Permalink
chore: Remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Feb 20, 2025
1 parent 4e9f158 commit 1da9802
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 13 deletions.
7 changes: 1 addition & 6 deletions frontend/src/components/AlertDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@

<script lang="ts" setup>
import Dialog from "@/components/Controls/Dialog.vue";
import { onMounted, ref } from "vue";
import { ref } from "vue";
const props = defineProps(["title", "message", "onClick"]);
const showDialog = ref(true);
showDialog.value = true;
console.log("AlertDialog mounted");
onMounted(() => {
console.log("AlertDialog mounted");
});
const hide = () => {
showDialog.value = false;
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/BuilderCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function searchBlock(searchTerm: string, targetBlock: null | Block) {
if (!targetBlock) {
targetBlock = getRootBlock();
}
console.log("searching block", targetBlock);
const blockObject = getBlockObject(targetBlock);
const children = blockObject.children || [];
delete blockObject.children;
Expand All @@ -234,7 +234,6 @@ function searchBlock(searchTerm: string, targetBlock: null | Block) {
if (blockId) {
const block = findBlock(blockId);
if (block) {
console.log("found block", block);
return scrollBlockIntoView(block);
}
} else {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/Controls/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const showConfirmationDialog = async () => {
waitingForResponse = true;
if (attrs.isDirty) {
return await confirm("You have unsaved changes. Are you sure you want to leave?").then((res) => {
console.log("res", res);
if (res) {
emit("update:modelValue", false);
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/EditableSpan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function handleBlur() {
if (text === props.modelValue) return;
if (!text) {
editableRef.value!.innerText = props.modelValue;
console.log("text is empty");
return;
}
if (props.onChange) {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/utils/realtimeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default class RealTimeHandler {

doc_subscribe(doctype: string, docname: string) {
if (this.subscribing) {
console.log("throttled");
return;
}
if (this.open_docs.has(`${doctype}:${docname}`)) {
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/utils/useCanvasDropZone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ export function useCanvasDropZone(
} else {
newParent.insertBefore(placeholder, children[index]);
}
console.log("newParent", parentBlock);
store.dropTarget.parentBlock = parentBlock;
store.dropTarget.index = index;
store.dropTarget.x = ev.x;
Expand Down Expand Up @@ -229,7 +228,6 @@ export function useCanvasDropZone(

const handleFileDrop = (files: File[], ev: DragEvent) => {
let { parentBlock, index } = store.dropTarget;
console.log("parentBlock", parentBlock);
uploadImage(files[0]).then((fileDoc: { fileURL: string; fileName: string }) => {
if (!parentBlock) return;

Expand Down

0 comments on commit 1da9802

Please sign in to comment.