a tool for shared writing and social publishing
0
fork

Configure Feed

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

removed a bunch of stray console logs

celine e1c371eb 812cf8e7

-14
-1
actions/deleteLeaflet.ts
··· 15 15 import { revalidatePath } from "next/cache"; 16 16 17 17 export async function deleteLeaflet(permission_token: PermissionToken) { 18 - console.log("DELETING LEAFLET: " + permission_token); 19 18 const client = postgres(process.env.DB_URL as string, { idle_timeout: 5 }); 20 19 const db = drizzle(client); 21 20 await db.transaction(async (tx) => {
-3
components/Blocks/BlockCommands.tsx
··· 68 68 useEditorStates.setState((s) => { 69 69 let existingState = s.editorStates[entityID]; 70 70 if (!existingState) { 71 - console.log("no existing state???"); 72 71 return s; 73 72 } 74 73 75 74 let tr = existingState.editor.tr; 76 - console.log("deleting!"); 77 75 tr.deleteRange(1, tr.doc.content.size - 1); 78 76 return { 79 77 editorStates: { ··· 182 180 let entity = await createBlockWithType(rep, props, "image"); 183 181 setTimeout(() => { 184 182 let el = document.getElementById(elementId.block(entity).input); 185 - console.log(el); 186 183 el?.focus(); 187 184 }, 100); 188 185 },
-1
components/Blocks/DeleteBlock.tsx
··· 61 61 compact 62 62 onClick={async (e) => { 63 63 e.stopPropagation(); 64 - console.log("yooo"); 65 64 if (rep) await deleteBlock(entities, rep); 66 65 }} 67 66 >
-1
components/Blocks/TextBlock/index.tsx
··· 347 347 editor?.view?.focus(); 348 348 let tr = editorState.tr.insertText("/", 1); 349 349 tr.setSelection(TextSelection.create(tr.doc, 2)); 350 - console.log(tr); 351 350 useEditorStates.setState((s) => ({ 352 351 editorStates: { 353 352 ...s.editorStates,
-1
components/Blocks/TextBlock/keymap.ts
··· 581 581 repRef.current?.query(async (tx) => { 582 582 let allBlocks = 583 583 (await getBlocksWithType(tx, propsRef.current.parent)) || []; 584 - console.log("allBlocks", allBlocks); 585 584 useUIState.setState({ 586 585 selectedBlocks: allBlocks.map((b) => ({ 587 586 value: b.value,
-1
components/Blocks/TextBlock/useHandlePaste.ts
··· 33 33 let text = e.clipboardData.getData("text"); 34 34 let editorState = useEditorStates.getState().editorStates[entityID]; 35 35 if (!editorState) return; 36 - console.log("yo"); 37 36 if (text && betterIsUrl(text)) { 38 37 let selection = view.state.selection as TextSelection; 39 38 if (selection.empty) return;
-1
components/Canvas.tsx
··· 266 266 267 267 let widthOnDragEnd = useCallback( 268 268 (dragPosition: { x: number; y: number }) => { 269 - console.log(dragPosition, rep); 270 269 rep?.mutate.assertFact({ 271 270 entity: props.entityID, 272 271 attribute: "canvas/block/width",
-1
components/ShareOptions/getShareLink.ts
··· 8 8 token: { id: string; entity_set: string }, 9 9 rootEntity: string, 10 10 ) { 11 - console.log("Get share link"); 12 11 const client = postgres(process.env.DB_URL as string, { idle_timeout: 5 }); 13 12 const db = drizzle(client); 14 13 let link = await db.transaction(async (tx) => {
-1
components/Toast.tsx
··· 65 65 }, 66 66 [setToastState], 67 67 ); 68 - console.log(smokes); 69 68 return ( 70 69 <PopUpContext.Provider 71 70 value={{ setSmokeState: setState, setToastState: toaster }}
-2
src/hooks/useDrag.ts
··· 57 57 let currentDragDelta = useRef({ x: 0, y: 0 }); 58 58 let end = useCallback( 59 59 (e: { preventDefault: () => void }) => { 60 - console.log("end???"); 61 60 isLongPress.current = false; 62 61 if (timeout.current) { 63 62 window.clearTimeout(timeout.current); ··· 65 64 return; 66 65 } 67 66 if (args.delay) e.preventDefault(); 68 - console.log(currentDragDelta.current); 69 67 args.onDragEnd({ ...currentDragDelta.current }); 70 68 currentDragDelta.current = { x: 0, y: 0 }; 71 69 setDragStart(null);
-1
src/utils/getBlocksAsHTML.tsx
··· 187 187 } 188 188 } 189 189 } 190 - console.log(parsed); 191 190 return parsed; 192 191 } 193 192