From 643fcf965b6ef0fe8f0d976360dbcd8dba9411de Mon Sep 17 00:00:00 2001 From: pipisebastian Date: Thu, 5 Dec 2024 14:48:14 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=81=B4=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=EC=96=B8=ED=8A=B8=20=EB=A1=9C=EA=B7=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #303 --- client/src/features/editor/hooks/useCopyAndPaste.ts | 1 - client/src/features/editor/hooks/useEditorOperation.ts | 4 +--- client/src/stores/useSocketStore.ts | 5 +---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/client/src/features/editor/hooks/useCopyAndPaste.ts b/client/src/features/editor/hooks/useCopyAndPaste.ts index 36ab6d4..acc8d8a 100644 --- a/client/src/features/editor/hooks/useCopyAndPaste.ts +++ b/client/src/features/editor/hooks/useCopyAndPaste.ts @@ -139,7 +139,6 @@ export const useCopyAndPaste = ({ ); const textList = text.split("\n"); textList.forEach((line, index) => { - console.log(line); if (index === 0) { line.split("").forEach((char, index) => { const charNode = block.crdt.localInsert(index, char, block.id, pageId); diff --git a/client/src/features/editor/hooks/useEditorOperation.ts b/client/src/features/editor/hooks/useEditorOperation.ts index 8fd4616..6cf9cdf 100644 --- a/client/src/features/editor/hooks/useEditorOperation.ts +++ b/client/src/features/editor/hooks/useEditorOperation.ts @@ -181,9 +181,7 @@ export const useEditorOperation = ({ [pageId, editorCRDT], ); - const handleRemoteCursor = useCallback((position: any) => { - console.log(position, "커서위치 수신"); - }, []); + const handleRemoteCursor = useCallback((position: any) => {}, []); const addNewBlock = () => { if (!editorCRDT) return; diff --git a/client/src/stores/useSocketStore.ts b/client/src/stores/useSocketStore.ts index e48e227..3d74447 100644 --- a/client/src/stores/useSocketStore.ts +++ b/client/src/stores/useSocketStore.ts @@ -166,14 +166,11 @@ export const useSocketStore = create((set, get) => ({ set({ socket }); }); - socket.on("disconnect", () => { - console.log("Disconnected from server"); - }); + socket.on("disconnect", () => {}); socket.on("workspace/list", (workspaces: WorkspaceListItem[]) => { set({ availableWorkspaces: workspaces }); const { availableWorkspaces } = get(); - console.log(availableWorkspaces); const { workspace } = get(); const currentWorkspace = availableWorkspaces.find((ws) => ws.id === workspace!.id); if (currentWorkspace) {