mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* Bump @supabase/shared-types. * Add scopes parameter to all queries and mutations. * Refactor the publish app side panel to include scopes. * Refactor the authorize page to show the app scopes. * Remove a console.log. * Address all feedback. * Simplify the scope rendering. * Simplify the scopes wording when creating an app. * Make the modal a bit wider so that some of the text doesn't overflow. * Add docs url to oauth scopes --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
import Divider from 'components/ui/Divider'
|
|
import { BASE_PATH } from 'lib/constants'
|
|
import { useTheme } from 'next-themes'
|
|
import Head from 'next/head'
|
|
import Image from 'next/image'
|
|
import { PropsWithChildren } from 'react'
|
|
|
|
export interface APIAuthorizationLayoutProps {}
|
|
|
|
const APIAuthorizationLayout = ({ children }: PropsWithChildren<APIAuthorizationLayoutProps>) => {
|
|
const { resolvedTheme } = useTheme()
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Authorize API access | Supabase</title>
|
|
</Head>
|
|
<main className="flex-grow flex flex-col w-full h-full overflow-y-auto">
|
|
<div>
|
|
<div className="mx-auto px-4 sm:px-6">
|
|
<div className="max-w-xl flex justify-between items-center mx-auto py-4">
|
|
<div className="flex justify-start lg:w-0 lg:flex-1">
|
|
<div>
|
|
<span className="sr-only">Supabase</span>
|
|
<Image
|
|
src={
|
|
resolvedTheme === 'dark'
|
|
? `${BASE_PATH}/img/supabase-dark.svg`
|
|
: `${BASE_PATH}/img/supabase-light.svg`
|
|
}
|
|
alt="Supabase Logo"
|
|
height={20}
|
|
width={105}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<Divider light />
|
|
<div className="flex flex-col justify-center flex-grow mx-auto w-[90vw] max-w-[600px] h-full space-y-4">
|
|
{children}
|
|
</div>
|
|
</main>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default APIAuthorizationLayout
|