mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 06:09:08 +03:00
* Reinstate API docs files and pages * Add API side panel back to feature preview * Nav bar to link to api page if feature is not toggled * Hide API docs button behind feature preview for auth users, storage and edge functions * Use new API side panel for table editor, and update the language selector to make it more apparent * Fix feature preview modal styling * Merge master resolve conflicts * Add URL to graphiql in API docs side panel, which links to /api/graphiql without the docs layout menu * Add auth enabled flag for user management section in Docs * Add realtime enabled flag for subscribe to changes section in Docs * Add realtime enabled flag for API docs side panel * Update redirect next config
24 lines
629 B
TypeScript
24 lines
629 B
TypeScript
import { AutoApiService } from 'data/config/project-api-query'
|
|
import Snippets from 'components/interfaces/Docs/Snippets'
|
|
import CodeSnippet from './CodeSnippet'
|
|
|
|
interface Props {
|
|
autoApiService: AutoApiService
|
|
selectedLang: 'bash' | 'js'
|
|
}
|
|
|
|
export default function Introduction({ autoApiService, selectedLang }: Props) {
|
|
return (
|
|
<>
|
|
<div className="doc-section doc-section--client-libraries">
|
|
<article className="code">
|
|
<CodeSnippet
|
|
selectedLang={selectedLang}
|
|
snippet={Snippets.init(autoApiService.endpoint)}
|
|
/>
|
|
</article>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|