1. Adjusted gitignore path

2. Formatted files
This commit is contained in:
gbuomprisco
2025-03-06 07:47:32 +07:00
parent 723fb1743e
commit 08cd6983f4
5 changed files with 19 additions and 16 deletions

View File

@@ -105,7 +105,8 @@ class ConnectivityService {
if (data.length === 0) {
return {
status: 'error' as const,
message: 'No accounts found in Supabase Admin. The data may not be seeded. Please run `pnpm run supabase:web:reset` to reset the database.',
message:
'No accounts found in Supabase Admin. The data may not be seeded. Please run `pnpm run supabase:web:reset` to reset the database.',
};
}

View File

@@ -17,8 +17,8 @@
"clean": "git clean -xdf node_modules dist .next",
"clean:workspaces": "turbo clean",
"dev": "cross-env FORCE_COLOR=1 turbo dev --parallel",
"format": "turbo format --cache-dir=.turbo --continue -- --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"./.gitignore\"",
"format:fix": "turbo format --cache-dir=.turbo --continue -- --write --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"./gitignore\"",
"format": "turbo format --cache-dir=.turbo --continue -- --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"../../.gitignore\"",
"format:fix": "turbo format --cache-dir=.turbo --continue -- --write --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"../../.gitignore\"",
"lint": "turbo lint --cache-dir=.turbo --affected --continue -- --cache --cache-location \"node_modules/.cache/.eslintcache\" && manypkg check",
"lint:fix": "turbo lint --cache-dir=.turbo --affected --continue -- --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" && manypkg fix",
"typecheck": "turbo typecheck --affected --cache-dir=.turbo",

View File

@@ -1,9 +1,4 @@
import {
BadgeX,
Ban,
ShieldPlus,
VenetianMask,
} from 'lucide-react';
import { BadgeX, Ban, ShieldPlus, VenetianMask } from 'lucide-react';
import { Tables } from '@kit/supabase/database';
import { getSupabaseServerAdminClient } from '@kit/supabase/server-admin-client';
@@ -258,7 +253,7 @@ async function SubscriptionsTable(props: { accountId: string }) {
<If
condition={subscription}
fallback={
<span className={'text-sm text-muted-foreground'}>
<span className={'text-muted-foreground text-sm'}>
This account does not currently have a subscription.
</span>
}

View File

@@ -14,7 +14,12 @@ const SendOtpEmailSchema = z.object({
// Purpose of the OTP (e.g., 'email-verification', 'password-reset')
purpose: z.string().min(1).max(1000),
// how long the OTP should be valid for. Defaults to 1 hour. Max is 7 days. Min is 30 seconds.
expiresInSeconds: z.number().min(30).max(86400 * 7).default(3600).optional(),
expiresInSeconds: z
.number()
.min(30)
.max(86400 * 7)
.default(3600)
.optional(),
});
/**
@@ -35,7 +40,9 @@ export const sendOtpEmailAction = enhanceAction(
// this is highly unlikely to happen, but we want to make sure the client-side code is correct in
// sending the correct user email
if (data.email !== email) {
throw new Error('User email does not match the email provided. This is likely an error in the client.');
throw new Error(
'User email does not match the email provided. This is likely an error in the client.',
);
}
try {

View File

@@ -17,8 +17,8 @@ export default tsEsLint.config(
languageOptions: {
parserOptions: {
warnOnUnsupportedTypeScriptVersion: false,
}
}
},
},
},
{
rules: {