From 46445ff6a4b328765990116535c50cf831632d67 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 5 Nov 2025 20:21:05 +0000 Subject: [PATCH] Prettier format pending files --- client/pages/Community.tsx | 45 ++++++++++++++++++++++++-------------- server/index.ts | 22 +++++++++++++++---- 2 files changed, 47 insertions(+), 20 deletions(-) diff --git a/client/pages/Community.tsx b/client/pages/Community.tsx index e1e21351..ca843a97 100644 --- a/client/pages/Community.tsx +++ b/client/pages/Community.tsx @@ -930,7 +930,10 @@ export default function Community() { title: "Email Verified", description: "Confirmed your email address.", icon: CheckCircle, - completed: Boolean(user?.email_confirmed_at || (user?.user_metadata as any)?.email_verified), + completed: Boolean( + user?.email_confirmed_at || + (user?.user_metadata as any)?.email_verified, + ), }, ]; }, [user, profile]); @@ -2019,13 +2022,18 @@ export default function Community() { {newMemberSteps.map((step) => { const Icon = step.icon; return ( -
  • -
    +
  • +
    {step.completed ? ( ) : ( @@ -2033,10 +2041,14 @@ export default function Community() { )}
    -

    +

    {step.title}

    @@ -2050,13 +2062,14 @@ export default function Community() { size="sm" className="opacity-0 group-hover:opacity-100 transition-opacity" > - - Complete - + Complete )} {step.completed && ( - + Done )} diff --git a/server/index.ts b/server/index.ts index 609e34d8..4698d6d4 100644 --- a/server/index.ts +++ b/server/index.ts @@ -13,7 +13,10 @@ const handleDiscordInteractions = ( try { const signature = req.get("x-signature-ed25519"); const timestamp = req.get("x-signature-timestamp"); - const rawBody = req.body instanceof Buffer ? req.body : Buffer.from(JSON.stringify(req.body), "utf8"); + const rawBody = + req.body instanceof Buffer + ? req.body + : Buffer.from(JSON.stringify(req.body), "utf8"); const bodyString = rawBody.toString("utf8"); const publicKey = process.env.DISCORD_PUBLIC_KEY; @@ -26,7 +29,12 @@ const handleDiscordInteractions = ( } if (!signature || !timestamp) { - console.error("[Discord] Missing headers - signature:", !!signature, "timestamp:", !!timestamp); + console.error( + "[Discord] Missing headers - signature:", + !!signature, + "timestamp:", + !!timestamp, + ); return res.status(401).json({ error: "Invalid request" }); } @@ -74,8 +82,14 @@ export function createServer() { res.setHeader("X-Frame-Options", "ALLOWALL"); // Allow Discord to access the iframe res.setHeader("Access-Control-Allow-Origin", "*"); - res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); - res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization, x-signature-ed25519, x-signature-timestamp"); + res.setHeader( + "Access-Control-Allow-Methods", + "GET, POST, PUT, DELETE, OPTIONS", + ); + res.setHeader( + "Access-Control-Allow-Headers", + "Content-Type, Authorization, x-signature-ed25519, x-signature-timestamp", + ); next(); });