Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian committed Dec 5, 2024
2 parents 27ed1c2 + d7995c1 commit cdba012
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion client/src/features/editor/hooks/useCopyAndPaste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions client/src/features/editor/hooks/useEditorOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions client/src/stores/useSocketStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,11 @@ export const useSocketStore = create<SocketStore>((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) {
Expand Down

0 comments on commit cdba012

Please sign in to comment.