mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
290 lines
6.2 KiB
TypeScript
290 lines
6.2 KiB
TypeScript
export type ConnectionType = {
|
|
key: string
|
|
icon: string
|
|
label: string
|
|
guideLink?: string
|
|
children: ConnectionType[]
|
|
}
|
|
|
|
export const FRAMEWORKS: ConnectionType[] = [
|
|
{
|
|
key: 'nextjs',
|
|
label: 'Next.js',
|
|
icon: 'nextjs',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/nextjs',
|
|
children: [
|
|
{
|
|
key: 'app',
|
|
label: 'App Router',
|
|
icon: '',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'supabase-js',
|
|
icon: 'supabase',
|
|
children: [],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'pages',
|
|
label: 'Pages Router',
|
|
icon: '',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'remix',
|
|
label: 'Remix',
|
|
icon: 'remix',
|
|
guideLink:
|
|
'https://supabase.com/docs/guides/auth/server-side/creating-a-client?framework=remix&environment=remix-loader',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'react',
|
|
label: 'React',
|
|
icon: 'react',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/reactjs',
|
|
children: [
|
|
{
|
|
key: 'create-react-app',
|
|
label: 'Create React App',
|
|
icon: 'react',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'supabase-js',
|
|
icon: 'supabase',
|
|
children: [],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'vite',
|
|
label: 'Vite',
|
|
icon: 'vite',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'nuxt',
|
|
label: 'Nuxt',
|
|
icon: 'nuxt',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'vuejs',
|
|
label: 'Vue.JS',
|
|
icon: 'vuejs',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/vue',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
|
|
{
|
|
key: 'sveltekit',
|
|
label: 'SvelteKit',
|
|
icon: 'sveltekit',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'solidjs',
|
|
label: 'Solid.js',
|
|
icon: 'solidjs',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/solidjs',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'astro',
|
|
label: 'Astro',
|
|
icon: 'astro',
|
|
guideLink: 'https://docs.astro.build/en/guides/backend/supabase/',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'refine',
|
|
label: 'refine',
|
|
icon: 'refine',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/refine',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
export const MOBILES: ConnectionType[] = [
|
|
{
|
|
key: 'exporeactnative',
|
|
label: 'Expo React Native',
|
|
icon: 'expo',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-expo-react-native',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'flutter',
|
|
label: 'Flutter',
|
|
icon: 'flutter',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-flutter',
|
|
children: [
|
|
{
|
|
key: 'supabaseflutter',
|
|
label: 'supabase-flutter',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'ionicreact',
|
|
label: 'Ionic React',
|
|
icon: 'react',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-react',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'swift',
|
|
label: 'Swift',
|
|
icon: 'swift',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-swift',
|
|
children: [
|
|
{
|
|
key: 'supabaseswift',
|
|
label: 'supabase-swift',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'androidkotlin',
|
|
label: 'Android Kotlin',
|
|
icon: 'kotlin',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-kotlin',
|
|
children: [
|
|
{
|
|
key: 'supabasekt',
|
|
label: 'supabase-kt',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'ionicangular',
|
|
label: 'Ionic Angular',
|
|
icon: 'ionic-angular',
|
|
guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-angular',
|
|
children: [
|
|
{
|
|
key: 'supabasejs',
|
|
label: 'Supabase-js',
|
|
children: [],
|
|
icon: 'supabase',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
export const ORMS: ConnectionType[] = [
|
|
{
|
|
key: 'prisma',
|
|
label: 'Prisma',
|
|
icon: 'prisma',
|
|
guideLink: 'https://supabase.com/partners/integrations/prisma',
|
|
children: [],
|
|
},
|
|
{
|
|
key: 'drizzle',
|
|
label: 'Drizzle',
|
|
icon: 'drizzle',
|
|
guideLink:
|
|
'https://supabase.com/docs/guides/database/connecting-to-postgres#connecting-with-drizzle',
|
|
children: [],
|
|
},
|
|
]
|
|
|
|
export const CONNECTION_TYPES = [
|
|
{ key: 'frameworks', label: 'App Frameworks', obj: FRAMEWORKS },
|
|
{ key: 'mobiles', label: 'Mobile Frameworks', obj: MOBILES },
|
|
{ key: 'orms', label: 'ORMs', obj: ORMS },
|
|
]
|