From cba05d6b862786942d47993f6d95abbc6e3bd239 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:09 -0400 Subject: [PATCH] Formatting stuff --- app/routes/hammer.tsx | 2 +- components/AppealCard.tsx | 4 +--- functions/permissions.ts | 9 +++++++-- public/app.webmanifest | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/routes/hammer.tsx b/app/routes/hammer.tsx index c3712cc..107243f 100644 --- a/app/routes/hammer.tsx +++ b/app/routes/hammer.tsx @@ -40,7 +40,7 @@ export default function () { /> - + } spacing="6"> diff --git a/components/AppealCard.tsx b/components/AppealCard.tsx index 2331fd2..9b3811e 100644 --- a/components/AppealCard.tsx +++ b/components/AppealCard.tsx @@ -90,9 +90,7 @@ export default function (props: AppealCardProps) { - - Appeal for {props.user.username} - + Appeal for {props.user.username} ID: {props.user.id} diff --git a/functions/permissions.ts b/functions/permissions.ts index 53fc9c7..c3b66f8 100644 --- a/functions/permissions.ts +++ b/functions/permissions.ts @@ -1,4 +1,8 @@ -export default async function (userid: string, roles?: string[], context?: RequestContext): Promise { +export default async function ( + userid: string, + roles?: string[], + context?: RequestContext +): Promise { let permissions = 0; if (roles?.includes("374851061233614849")) permissions |= 1 << 0; // Administration @@ -9,7 +13,8 @@ export default async function (userid: string, roles?: string[], context?: Reque if ( ["165594923586945025", "289372404541554689", "396347223736057866"].includes( userid - ) || (Boolean(await context?.env.DATA.get(`gamemod_${userid}`))) + ) || + Boolean(await context?.env.DATA.get(`gamemod_${userid}`)) ) permissions |= 1 << 5; if ( diff --git a/public/app.webmanifest b/public/app.webmanifest index 00a4927..8c1dafe 100644 --- a/public/app.webmanifest +++ b/public/app.webmanifest @@ -22,4 +22,4 @@ "display": "standalone", "theme_color": "#00a8f8", "background_color": "#ffffff" -} \ No newline at end of file +}