mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
* Add flags for policies, third party auth, and manual linking + providers in sign in page * Add flag for rate limitm page * Add UnknownInterface components * Update comment * Flip flags to true * Add flags for realtime policies and reports page * Temp * Add flag for sign in providers page * Add flag for stripe wrapper * Add flag for custom domains * Add flag for dedicated ipv4 address addon * Add empty state for realtime policies * Add empty state for reports page * Add flag for disable legacy JWT keys section * Add flag for legacy jwt keys * nit * Remove ConnectionStringMoved call out * Add flag for project settings log drains * Add flag for subscription link in project settings * Deprecate settings/auth page and redirect directly to auth page * Flip back flags * Add flags for account preferences analytics marketing and account deleetion * Remove 'table_editor:enable_rls_toggle' flag and revert UI changes * Remove 'authentication:policies' flag and revert UI changes * Add flags for cmd K routes * Add flags for instance size in infra settings * Small refactor to DisplayApiSettings, decouple ToggleLegacyApiKeysPanel from it * Have project_connection:javascript_example toggle code example title to TS * add flag for templates dropdown in logs explorer * UsesOverview only show link to providers page if providers is enabled * API Docs UserManagement to only include docs on third party auth if providers is enabled * Hide instance size on project card if flag is off * Fix cmd k for roles, update redirect link from settings/auth to auth/providers
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import Authentication from 'components/interfaces/Docs/Authentication'
|
|
import Introduction from 'components/interfaces/Docs/Introduction'
|
|
import RpcIntroduction from 'components/interfaces/Docs/Pages/Rpc/Introduction'
|
|
import TablesIntroduction from 'components/interfaces/Docs/Pages/Tables/Introduction'
|
|
import { UserManagement } from 'components/interfaces/Docs/Pages/UserManagement'
|
|
|
|
interface GeneralContentProps {
|
|
page?: string
|
|
selectedLang: 'bash' | 'js'
|
|
showApiKey: string
|
|
}
|
|
|
|
const GeneralContent = ({ selectedLang, page, showApiKey }: GeneralContentProps) => {
|
|
let selected = page?.toLowerCase()
|
|
if (selected == 'intro' || selected == null) return <Introduction selectedLang={selectedLang} />
|
|
if (selected == 'auth')
|
|
return <Authentication selectedLang={selectedLang} showApiKey={showApiKey} />
|
|
if (selected == 'users-management')
|
|
return <UserManagement selectedLang={selectedLang} showApiKey={showApiKey} />
|
|
if (selected == 'tables-intro') return <TablesIntroduction selectedLang={selectedLang} />
|
|
if (selected == 'rpc-intro') return <RpcIntroduction />
|
|
else
|
|
return (
|
|
<div>
|
|
<h2 className="m-4">Not found</h2>
|
|
<p className="m-4"> Looks like you went somewhere that nobody knows.</p>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default GeneralContent
|