a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove log

-5
-1
components/ImageBlock.tsx
··· 7 7 export function ImageBlock(props: BlockProps) { 8 8 let rep = useReplicache(); 9 9 let image = useEntity(props.entityID, "block/image"); 10 - console.log(image); 11 10 if (image?.data.local && image.data.local !== rep.rep?.clientID) 12 11 return ( 13 12 <div
-3
components/TextBlock/index.tsx
··· 136 136 let currentPosition = propsRef.current.position; 137 137 nodes.content.forEach((node, _, index) => { 138 138 if (index === 0) return; 139 - console.log(node); 140 139 let newEntityID = crypto.randomUUID(); 141 140 currentPosition = generateKeyBetween( 142 141 propsRef.current.position, 143 142 propsRef.current.nextPosition, 144 143 ); 145 - console.log(repRef.current); 146 144 repRef.current?.mutate.addBlock({ 147 145 newEntityID, 148 146 parent: propsRef.current.parent, ··· 154 152 if (block) { 155 153 let tr = block.editor.tr; 156 154 let newNode = schema.nodeFromJSON(node.toJSON()); 157 - console.log(newNode); 158 155 tr.replaceWith(0, tr.doc.content.size, newNode.content); 159 156 let newState = block.editor.apply(tr); 160 157 setEditorState(newEntityID, {
-1
components/TextBlock/keymap.ts
··· 78 78 repRef: MutableRefObject<Replicache<ReplicacheMutators> | null>, 79 79 ) => 80 80 (state: EditorState) => { 81 - console.log("yo"); 82 81 if (!propsRef.current.previousBlock) { 83 82 return false; 84 83 }