-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reconfigure prettier and login page styles
- Loading branch information
Showing
29 changed files
with
7,035 additions
and
2,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,4 +131,4 @@ module.exports = { | |
}, | ||
}, | ||
], | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,5 @@ export function SocialLogin({ label }: { label: string }) { | |
</button> | ||
</div> | ||
</> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { Outlet } from '@remix-run/react'; | ||
import { Outlet } from '@remix-run/react' | ||
|
||
export default function AuthLayout() { | ||
return ( | ||
<div className='flex h-full min-h-screen items-center bg-gray-50 dark:bg-gray-950'> | ||
<Outlet /> | ||
</div> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import type { LoaderFunctionArgs } from '@remix-run/node'; | ||
import type { LoaderFunctionArgs } from '@remix-run/node' | ||
|
||
export async function loader({ request }: LoaderFunctionArgs) { | ||
const host = request.headers.get('X-Forwarded-Host') ?? request.headers.get('host'); | ||
const host = request.headers.get('X-Forwarded-Host') ?? request.headers.get('host') | ||
|
||
try { | ||
const url = new URL('/', `http://${host}`); | ||
const url = new URL('/', `http://${host}`) | ||
// if we can connect to the database and make a simple query | ||
// and make a HEAD request to ourselves, then we're good. | ||
await Promise.all([ | ||
// TODO: add database check here | ||
fetch(url.toString(), { method: 'HEAD' }).then((r) => { | ||
if (!r.ok) return Promise.reject(r); | ||
if (!r.ok) return Promise.reject(r) | ||
}), | ||
]); | ||
return new Response('OK'); | ||
]) | ||
return new Response('OK') | ||
} catch (error: unknown) { | ||
console.error('healthcheck ❌', { error }); | ||
return new Response('ERROR', { status: 500 }); | ||
console.error('healthcheck ❌', { error }) | ||
return new Response('ERROR', { status: 500 }) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { ClassValue, clsx } from 'clsx'; | ||
import { twMerge } from 'tailwind-merge'; | ||
import { ClassValue, clsx } from 'clsx' | ||
import { twMerge } from 'tailwind-merge' | ||
|
||
export function cn(...inputs: ClassValue[]) { | ||
return twMerge(clsx(inputs)); | ||
return twMerge(clsx(inputs)) | ||
} |
Oops, something went wrong.