diff --git a/actions/createPublicationDraft.ts b/actions/createPublicationDraft.ts index d8ffbfa2..12d67938 100644 --- a/actions/createPublicationDraft.ts +++ b/actions/createPublicationDraft.ts @@ -11,10 +11,10 @@ export async function createPublicationDraft(publication_uri: string) { redirectUser: false, firstBlockType: "text", }); - console.log( - await supabaseServerClient - .from("leaflets_in_publications") - .insert({ publication: publication_uri, leaflet: newLeaflet, doc: null }), - ); + + await supabaseServerClient + .from("leaflets_in_publications") + .insert({ publication: publication_uri, leaflet: newLeaflet, doc: null }); + return newLeaflet; } diff --git a/actions/emailAuth.ts b/actions/emailAuth.ts index 539dd567..1746ca95 100644 --- a/actions/emailAuth.ts +++ b/actions/emailAuth.ts @@ -74,19 +74,16 @@ export async function confirmEmailAuthToken(tokenId: string, code: string) { .where(eq(email_auth_tokens.id, tokenId)); if (!token || !token.email) { - console.log("no token?"); client.end(); return null; } if (token.confirmation_code !== code) { - console.log("wrong code???"); client.end(); return null; } if (token.confirmed) { - console.log("already confirmed?????"); client.end(); return null; } @@ -100,7 +97,6 @@ export async function confirmEmailAuthToken(tokenId: string, code: string) { if (existingToken) { if (existingToken.identities?.email) { - console.log("wat"); } await db .update(identities) diff --git a/actions/publishToPublication.ts b/actions/publishToPublication.ts index 84401b58..39732692 100644 --- a/actions/publishToPublication.ts +++ b/actions/publishToPublication.ts @@ -109,12 +109,10 @@ export async function publishToPublication({ validate: false, //TODO publish the lexicon so we can validate! }); - console.log( - await supabaseServerClient.from("documents").upsert({ - uri: result.uri, - data: record as Json, - }), - ); + await supabaseServerClient.from("documents").upsert({ + uri: result.uri, + data: record as Json, + }); await Promise.all([ //Optimistically put these in! supabaseServerClient.from("documents_in_publications").upsert({ @@ -305,7 +303,6 @@ function YJSFragmentToFacets( let facets: PubLeafletRichtextFacet.Main[] = []; let delta = node.toDelta() as Delta[]; let byteStart = 0; - console.log(delta); for (let d of delta) { let unicodestring = new UnicodeString(d.insert); let facet: PubLeafletRichtextFacet.Main = { diff --git a/app/api/link_previews/route.ts b/app/api/link_previews/route.ts index 38843aa9..ebc92e2e 100644 --- a/app/api/link_previews/route.ts +++ b/app/api/link_previews/route.ts @@ -61,14 +61,12 @@ async function get_link_image_preview(url: string) { let key = await hash(url); if (image.status === 200) { - console.log( - await supabase.storage - .from("url-previews") - .upload(key, await image.arrayBuffer(), { - contentType: image.headers.get("content-type") || undefined, - upsert: true, - }), - ); + await supabase.storage + .from("url-previews") + .upload(key, await image.arrayBuffer(), { + contentType: image.headers.get("content-type") || undefined, + upsert: true, + }); } else { console.log("an error occured rendering the website", await image.text()); } diff --git a/app/api/oauth/[route]/route.ts b/app/api/oauth/[route]/route.ts index ac114d3b..00eff387 100644 --- a/app/api/oauth/[route]/route.ts +++ b/app/api/oauth/[route]/route.ts @@ -46,7 +46,6 @@ export async function GET( } case "callback": { const params = new URLSearchParams(req.url.split("?")[1]); - console.log(params); //TODO remember to reset this to a better default! let redirectPath = "/lish"; diff --git a/app/lish/createPub/CreatePubForm.tsx b/app/lish/createPub/CreatePubForm.tsx index 9b790f34..a3e5f640 100644 --- a/app/lish/createPub/CreatePubForm.tsx +++ b/app/lish/createPub/CreatePubForm.tsx @@ -171,7 +171,6 @@ function DomainInput(props: { let status = await callRPC("get_leaflet_subdomain_status", { domain: props.domain, }); - console.log(status); if (status.error === "Not Found") props.setDomainState({ status: "valid" }); else props.setDomainState({ status: "invalid" }); diff --git a/app/lish/createPub/createPublication.ts b/app/lish/createPub/createPublication.ts index ac3bbfbf..345abc43 100644 --- a/app/lish/createPub/createPublication.ts +++ b/app/lish/createPub/createPublication.ts @@ -87,7 +87,6 @@ export async function createPublication({ // Create the custom domain if (isProductionDomain()) { - console.log("Creating domain! " + domain); await vercel.projects.addProjectDomain({ idOrName: "prj_9jX4tmYCISnm176frFxk07fF74kG", teamId: "team_42xaJiZMTw9Sr7i0DcLTae9d", diff --git a/components/ActionBar/ActionButton.tsx b/components/ActionBar/ActionButton.tsx index 7195c88d..83543489 100644 --- a/components/ActionBar/ActionButton.tsx +++ b/components/ActionBar/ActionButton.tsx @@ -21,7 +21,6 @@ export const ActionButton = forwardRef< let inOpenPopover = useContext(PopoverOpenContext); useEffect(() => { if (inOpenPopover) { - console.log("inOpenPopover"); sidebar.setChildForceOpen(true); return () => { sidebar.setChildForceOpen(false); diff --git a/components/Blocks/BlueskyPostBlock/BlueskyEmpty.tsx b/components/Blocks/BlueskyPostBlock/BlueskyEmpty.tsx index 7374b840..7b2c37e7 100644 --- a/components/Blocks/BlueskyPostBlock/BlueskyEmpty.tsx +++ b/components/Blocks/BlueskyPostBlock/BlueskyEmpty.tsx @@ -103,7 +103,6 @@ export const BlueskyPostEmpty = (props: BlockProps) => { urlValue !== "" ) { e.preventDefault(); - console.log("hello!"); } }} /> diff --git a/components/Pages/useCardBorderHidden.ts b/components/Pages/useCardBorderHidden.ts index b21d7eaf..404a58cd 100644 --- a/components/Pages/useCardBorderHidden.ts +++ b/components/Pages/useCardBorderHidden.ts @@ -8,7 +8,6 @@ export function useCardBorderHidden(entityID: string) { let cardBorderHidden = useEntity(entityID, "theme/card-border-hidden") || rootCardBorderHidden; - console.log(cardBorderHidden, rootCardBorderHidden); if (!cardBorderHidden && !rootCardBorderHidden) { if (data?.[0]) return true; return false; diff --git a/components/ThemeManager/PageThemePickers.tsx b/components/ThemeManager/PageThemePickers.tsx index 6617b11d..149eb0b4 100644 --- a/components/ThemeManager/PageThemePickers.tsx +++ b/components/ThemeManager/PageThemePickers.tsx @@ -133,7 +133,6 @@ export const PageBorderHider = (props: { entityID: string }) => { attribute: "theme/card-border-hidden", data: { type: "boolean", value: !pageBorderHidden }, }); - console.log(pageBorderHidden); }} > No Page Borders diff --git a/src/utils/focusBlock.ts b/src/utils/focusBlock.ts index a97c4f57..6665aef4 100644 --- a/src/utils/focusBlock.ts +++ b/src/utils/focusBlock.ts @@ -30,7 +30,6 @@ export function focusBlock( // focus the editor using the mouse position if needed let nextBlockID = block.value; let nextBlock = useEditorStates.getState().editorStates[nextBlockID]; - console.log(nextBlock); if (!nextBlock || !nextBlock.view) return; let nextBlockViewClientRect = nextBlock.view.dom.getBoundingClientRect(); let tr = nextBlock.editor.tr; diff --git a/src/utils/isBot.ts b/src/utils/isBot.ts index 1bea53a7..1f1a8222 100644 --- a/src/utils/isBot.ts +++ b/src/utils/isBot.ts @@ -1,7 +1,7 @@ import { cookies, headers, type UnsafeUnwrappedHeaders } from "next/headers"; export function getIsBot() { - const userAgent = (headers() as unknown as UnsafeUnwrappedHeaders).get("user-agent") || ""; - console.log("User agent: ", userAgent); + const userAgent = + (headers() as unknown as UnsafeUnwrappedHeaders).get("user-agent") || ""; const botPatterns = [ /bot/i, /crawler/i, diff --git a/src/utils/isProductionDeployment.ts b/src/utils/isProductionDeployment.ts index f696a108..b74a3b58 100644 --- a/src/utils/isProductionDeployment.ts +++ b/src/utils/isProductionDeployment.ts @@ -1,5 +1,4 @@ export function isProductionDomain() { let vercel_env = process.env.NEXT_PUBLIC_VERCEL_ENV || process.env.VERCEL_ENV; - console.log({ vercel_env }); return process.env.NODE_ENV === "production" && vercel_env === "production"; }