mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 16:19:10 +03:00
* feat: sql-to-rest poc * feat: sql-to-supabase-js poc * chore: upgrade to libpg-query@15 * feat: sql-to-rest docs tool * docs(sql-to-rest): add introduction * docs: wording improvements * fix: theme * chore: tailwind placeholder * feat(sql-to-rest): limit, offset, and range * feat(sql-to-rest): sort by * fix(sql-to-rest): ui theme * feat(sql-to-rest): casts * feat(sql-to-rest): dynamic faqs in ui * feat(sql-to-rest): improve ui responsiveness * feat(sql-to-rest): more advanced faqs in ui * feat(sql-to-rest): http and curl syntax highlighting * feat(sql-to-rest): baseUrl in http/curl rendering * docs(sql-to-rest): clarification on curl flags * feat(sql-to-rest): more faqs * refactor(sql-to-rest): split faqs into own file * refactor(sql-to-rest): move formatters to sql-to-rest package * docs(sql-to-rest): move page to new tools section * feat(sql-to-rest): joins and resource embeddings * chore(sql-to-rest): rename 'convert' to 'translate' * feat(sql-to-rest): add faqs * feat(sql-to-rest): ui improvements * feat(sql-to-rest): faq title adjustment * feat(sql-to-rest): link to client lib docs * feat(sql-to-rest): assumptions * feat(sql-to-rest): friendly 'not supported yet' errors * feat(sql-to-rest): json columns * feat(sql-to-rest): remove curl -G flag if unused * feat(sql-to-rest): better error handling * chore: revert accidental rls ai work * fix: build errors * fix(sql-to-rest): theme * feat(sql-to-rest): change base url * feat(sql-to-rest): basic aggregate poc * feat(sql-to-rest): group by * feat(sql-to-rest): more group by checks * feat(sql-to-rest): count(*) special case * fix(sql-to-rest): tests * feat(sql-to-rest): faq on 'and' operator * fix(sql-to-rest): error messages * fix(sql-to-rest): multiple filters on same column * refactor(sql-to-rest): error hints * feat(sql-to-rest): match and imatch * feat(sql-to-rest): in operator * feat(sql-to-rest): parsing error hints * feat(sql-to-rest): default language to curl * feat(sql-to-rest): format on cmd+s * feat(sql-to-rest): format initial value * fix(sql-to-rest): turn off tab query group * feat(sql-to-rest): improve wording in error messages * feat(sql-to-rest): animated code blocks * feat(sql-to-rest): more error hints * fix(sql-to-rest): strip primary relation prefix from columns * feat(sql-to-rest): json column in order by clause * feat(sql-to-rest): validate all referenced relations exist in from clause * refactor(sql-to-rest): split core sql-to-rest lib into separate repo * feat(sql-to-rest): upgrade to v0.1.1 * feat(sql-to-rest): upgrade to v0.1.2 * feat(sql-to-rest): upgrade to v0.1.4 * chore: upgrade libpg-query * feat: update 'create a pr' link * fix: app builds * fix: prettier * fix: typecheck * fix: studio tests * chore: remove console.log Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * docs(sql-to-rest): remove broken link to client libraries --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
171 lines
4.7 KiB
TypeScript
171 lines
4.7 KiB
TypeScript
/**
|
|
* This entire file could do with a cleanup and better code-splitting, but one thing at a time.
|
|
*/
|
|
|
|
// Basic UI things
|
|
import Link from 'next/link'
|
|
import { Accordion, Admonition, Alert, Button, CodeBlock, markdownComponents } from 'ui'
|
|
import { GlassPanel } from 'ui-patterns/GlassPanel'
|
|
import { IconPanel } from 'ui-patterns/IconPanel'
|
|
import { ThemeImage } from 'ui-patterns/ThemeImage'
|
|
import { TabPanel, Tabs } from '~/components/Tabs'
|
|
|
|
// Common components
|
|
import { CH } from '@code-hike/mdx/components'
|
|
import StepHikeCompact from '~/components/StepHikeCompact'
|
|
import ButtonCard from './ButtonCard'
|
|
import { Heading } from './CustomHTMLElements'
|
|
|
|
// Reference guide specific
|
|
// [Charis] I think we can factor these out so they aren't in the bundle for absolutely everything
|
|
import CliGlobalFlagsHandler from '~/components/reference/enrichments/cli/CliGlobalFlagsHandler'
|
|
import RefSubLayout from '~/layouts/ref/RefSubLayout'
|
|
import RefHeaderSection from './reference/RefHeaderSection'
|
|
|
|
// Other components
|
|
import AuthProviders from '~/components/AuthProviders'
|
|
import { CostWarning } from '~/components/AuthSmsProviderConfig/AuthSmsProviderConfig.Warnings'
|
|
import Options from '~/components/Options'
|
|
import Param from '~/components/Params'
|
|
import { ProjectConfigVariables } from '~/components/ProjectConfigVariables'
|
|
|
|
// Data wrappers
|
|
import { NavData } from './NavData'
|
|
import { SharedData } from './SharedData'
|
|
|
|
// Partials
|
|
import HuggingFaceDeployment from './MDX/ai/quickstart_hf_deployment.mdx'
|
|
import AuthRateLimits from './MDX/auth_rate_limits.mdx'
|
|
import DatabaseSetup from './MDX/database_setup.mdx'
|
|
import GetSessionWarning from './MDX/get_session_warning.mdx'
|
|
import KotlinProjectSetup from './MDX/kotlin_project_setup.mdx'
|
|
import MigrationWarnings from './MDX/migration_warnings.mdx'
|
|
import OAuthPkceFlow from './MDX/oauth_pkce_flow.mdx'
|
|
import ProjectSetup from './MDX/project_setup.mdx'
|
|
import QuickstartIntro from './MDX/quickstart_intro.mdx'
|
|
import SocialProviderSettingsSupabase from './MDX/social_provider_settings_supabase.mdx'
|
|
import SocialProviderSetup from './MDX/social_provider_setup.mdx'
|
|
|
|
// Icons
|
|
import { IconArrowDown, IconCheck } from 'ui'
|
|
import {
|
|
IconMenuApi,
|
|
IconMenuAuth,
|
|
IconMenuCli,
|
|
IconMenuCsharp,
|
|
IconMenuDatabase,
|
|
IconMenuEdgeFunctions,
|
|
IconMenuFlutter,
|
|
IconMenuGettingStarted,
|
|
IconMenuHome,
|
|
IconMenuIntegrations,
|
|
IconMenuJavascript,
|
|
IconMenuKotlin,
|
|
IconMenuPlatform,
|
|
IconMenuPython,
|
|
IconMenuRealtime,
|
|
IconMenuResources,
|
|
IconMenuRestApis,
|
|
IconMenuSelfHosting,
|
|
IconMenuStorage,
|
|
IconMenuSwift,
|
|
} from './Navigation/NavigationMenu/HomeMenuIcons'
|
|
|
|
// Heavy/rare (lazy-loaded)
|
|
import SqlToRest from '@ui-patterns/SqlToRest'
|
|
import { AppleSecretGenerator } from './AppleSecretGenerator'
|
|
import { AuthSmsProviderConfig } from './AuthSmsProviderConfig'
|
|
import { Extensions } from './Extensions'
|
|
import { JwtGenerator } from './JwtGenerator'
|
|
import { Mermaid } from './Mermaid'
|
|
import { RealtimeLimitsEstimator } from './RealtimeLimitsEstimator'
|
|
|
|
const components = {
|
|
...markdownComponents,
|
|
Accordion,
|
|
Admonition,
|
|
Alert: (props: any) => (
|
|
<Alert {...props} className="not-prose">
|
|
{props.children}
|
|
</Alert>
|
|
),
|
|
AppleSecretGenerator,
|
|
AuthProviders,
|
|
AuthRateLimits,
|
|
AuthSmsProviderConfig,
|
|
Button,
|
|
ButtonCard,
|
|
CH,
|
|
CliGlobalFlagsHandler: () => <CliGlobalFlagsHandler />,
|
|
CodeBlock,
|
|
CostWarning,
|
|
DatabaseSetup,
|
|
Extensions,
|
|
GetSessionWarning,
|
|
GlassPanel,
|
|
h2: (props: any) => (
|
|
<Heading tag="h2" {...props}>
|
|
{props.children}
|
|
</Heading>
|
|
),
|
|
h3: (props: any) => (
|
|
<Heading tag="h3" {...props}>
|
|
{props.children}
|
|
</Heading>
|
|
),
|
|
h4: (props: any) => (
|
|
<Heading tag="h4" {...props}>
|
|
{props.children}
|
|
</Heading>
|
|
),
|
|
HuggingFaceDeployment,
|
|
IconCheck,
|
|
IconMenuApi,
|
|
IconArrowDown,
|
|
IconMenuAuth,
|
|
IconMenuCli,
|
|
IconMenuCsharp,
|
|
IconMenuDatabase,
|
|
IconMenuEdgeFunctions,
|
|
IconMenuFlutter,
|
|
IconMenuGettingStarted,
|
|
IconMenuHome,
|
|
IconMenuIntegrations,
|
|
IconMenuJavascript,
|
|
IconMenuKotlin,
|
|
IconMenuPlatform,
|
|
IconMenuPython,
|
|
IconMenuRealtime,
|
|
IconMenuResources,
|
|
IconMenuRestApis,
|
|
IconMenuSelfHosting,
|
|
IconMenuStorage,
|
|
IconMenuSwift,
|
|
IconPanel,
|
|
Image: (props: any) => <ThemeImage fill className="object-contain" {...props} />,
|
|
JwtGenerator,
|
|
KotlinProjectSetup,
|
|
Link,
|
|
Mermaid,
|
|
MigrationWarnings,
|
|
NavData,
|
|
OAuthPkceFlow,
|
|
Options,
|
|
Param,
|
|
ProjectConfigVariables,
|
|
ProjectSetup,
|
|
QuickstartIntro,
|
|
RealtimeLimitsEstimator,
|
|
RefHeaderSection: (props: any) => <RefHeaderSection {...props} />,
|
|
RefSubLayout,
|
|
SharedData,
|
|
SocialProviderSettingsSupabase,
|
|
SocialProviderSetup,
|
|
SqlToRest,
|
|
StepHikeCompact,
|
|
TabPanel,
|
|
Tabs,
|
|
}
|
|
|
|
export default components
|