mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 22:29:11 +03:00
Rename Remix to React Router.
This commit is contained in:
1 parent
362b7cd2d9
commit
ed5db385ec
9 files changed
+39
-39
No files matched your search
@@ -88,8 +88,8 @@ export const Index: Record<string, any> = {
|
||||
subcategory: 'undefined',
|
||||
chunks: [],
|
||||
},
|
||||
'dropzone-remix': {
|
||||
name: 'dropzone-remix',
|
||||
'dropzone-react-router': {
|
||||
name: 'dropzone-react-router',
|
||||
type: 'registry:component',
|
||||
registryDependencies: ['button', 'tooltip', 'progress'],
|
||||
component: React.lazy(
|
||||
@@ -99,8 +99,8 @@ export const Index: Record<string, any> = {
|
||||
files: [
|
||||
'registry/default/blocks/dropzone/components/dropzone.tsx',
|
||||
'registry/default/blocks/dropzone/hooks/use-supabase-upload.ts',
|
||||
'registry/default/clients/remix/lib/supabase.client.ts',
|
||||
'registry/default/clients/remix/lib/supabase.server.ts',
|
||||
'registry/default/clients/react-router/lib/supabase.client.ts',
|
||||
'registry/default/clients/react-router/lib/supabase.server.ts',
|
||||
],
|
||||
category: 'undefined',
|
||||
subcategory: 'undefined',
|
||||
@@ -162,8 +162,8 @@ export const Index: Record<string, any> = {
|
||||
subcategory: 'undefined',
|
||||
chunks: [],
|
||||
},
|
||||
'realtime-cursor-remix': {
|
||||
name: 'realtime-cursor-remix',
|
||||
'realtime-cursor-react-router': {
|
||||
name: 'realtime-cursor-react-router',
|
||||
type: 'registry:component',
|
||||
registryDependencies: [],
|
||||
component: React.lazy(
|
||||
@@ -174,8 +174,8 @@ export const Index: Record<string, any> = {
|
||||
'registry/default/blocks/realtime-cursor/components/cursor.tsx',
|
||||
'registry/default/blocks/realtime-cursor/components/realtime-cursors.tsx',
|
||||
'registry/default/blocks/realtime-cursor/hooks/use-realtime-cursors.ts',
|
||||
'registry/default/clients/remix/lib/supabase.client.ts',
|
||||
'registry/default/clients/remix/lib/supabase.server.ts',
|
||||
'registry/default/clients/react-router/lib/supabase.client.ts',
|
||||
'registry/default/clients/react-router/lib/supabase.server.ts',
|
||||
],
|
||||
category: 'undefined',
|
||||
subcategory: 'undefined',
|
||||
@@ -230,17 +230,17 @@ export const Index: Record<string, any> = {
|
||||
subcategory: 'undefined',
|
||||
chunks: [],
|
||||
},
|
||||
'supabase-client-remix': {
|
||||
name: 'supabase-client-remix',
|
||||
'supabase-client-react-router': {
|
||||
name: 'supabase-client-react-router',
|
||||
type: 'registry:lib',
|
||||
registryDependencies: [],
|
||||
component: React.lazy(
|
||||
() => import('@/registry/default/clients/remix/lib/supabase.client.ts')
|
||||
() => import('@/registry/default/clients/react-router/lib/supabase.client.ts')
|
||||
),
|
||||
source: '',
|
||||
files: [
|
||||
'registry/default/clients/remix/lib/supabase.client.ts',
|
||||
'registry/default/clients/remix/lib/supabase.server.ts',
|
||||
'registry/default/clients/react-router/lib/supabase.client.ts',
|
||||
'registry/default/clients/react-router/lib/supabase.server.ts',
|
||||
],
|
||||
category: 'undefined',
|
||||
subcategory: 'undefined',
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dropzone-remix",
|
||||
"name": "dropzone-react-router",
|
||||
"type": "registry:component",
|
||||
"title": "Dropzone (File Upload)",
|
||||
"description": "Displays a control for easier uploading of files directly to Supabase Storage.",
|
||||
@@ -26,12 +26,12 @@
|
||||
"type": "registry:hook"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"content": "import { createBrowserClient } from '@supabase/ssr'\n\n// Use this function to create a client for the browser. You should pass the env variables through a loader and use them\n// to instantiate the client.\nexport function createClient(supabaseUrl: string, supabaseAnonKey: string) {\n return createBrowserClient(supabaseUrl, supabaseAnonKey)\n}\n",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"content": "import { createServerClient, parseCookieHeader, serializeCookieHeader } from '@supabase/ssr'\n\nexport function createClient(request: Request) {\n const headers = new Headers()\n\n const supabase = createServerClient(process.env.SUPABASE_URL!, process.env.SUPABASE_ANON_KEY!, {\n cookies: {\n getAll() {\n return parseCookieHeader(request.headers.get('Cookie') ?? '') as {\n name: string\n value: string\n }[]\n },\n setAll(cookiesToSet) {\n cookiesToSet.forEach(({ name, value, options }) =>\n headers.append('Set-Cookie', serializeCookieHeader(name, value, options))\n )\n },\n },\n })\n\n return { supabase, headers }\n}\n",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "realtime-cursor-remix",
|
||||
"name": "realtime-cursor-react-router",
|
||||
"type": "registry:component",
|
||||
"title": "Realtime Cursor",
|
||||
"description": "Component which renders realtime cursors from other users in a room.",
|
||||
@@ -26,12 +26,12 @@
|
||||
"type": "registry:hook"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"content": "import { createBrowserClient } from '@supabase/ssr'\n\n// Use this function to create a client for the browser. You should pass the env variables through a loader and use them\n// to instantiate the client.\nexport function createClient(supabaseUrl: string, supabaseAnonKey: string) {\n return createBrowserClient(supabaseUrl, supabaseAnonKey)\n}\n",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"content": "import { createServerClient, parseCookieHeader, serializeCookieHeader } from '@supabase/ssr'\n\nexport function createClient(request: Request) {\n const headers = new Headers()\n\n const supabase = createServerClient(process.env.SUPABASE_URL!, process.env.SUPABASE_ANON_KEY!, {\n cookies: {\n getAll() {\n return parseCookieHeader(request.headers.get('Cookie') ?? '') as {\n name: string\n value: string\n }[]\n },\n setAll(cookiesToSet) {\n cookiesToSet.forEach(({ name, value, options }) =>\n headers.append('Set-Cookie', serializeCookieHeader(name, value, options))\n )\n },\n },\n })\n\n return { supabase, headers }\n}\n",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "supabase-client-remix",
|
||||
"name": "supabase-client-react-router",
|
||||
"type": "registry:lib",
|
||||
"title": "Supabase Client for Remix",
|
||||
"title": "Supabase Client for React Router",
|
||||
"description": "",
|
||||
"dependencies": [
|
||||
"@supabase/ssr@latest"
|
||||
@@ -10,12 +10,12 @@
|
||||
"registryDependencies": [],
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"content": "import { createBrowserClient } from '@supabase/ssr'\n\n// Use this function to create a client for the browser. You should pass the env variables through a loader and use them\n// to instantiate the client.\nexport function createClient(supabaseUrl: string, supabaseAnonKey: string) {\n return createBrowserClient(supabaseUrl, supabaseAnonKey)\n}\n",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"content": "import { createServerClient, parseCookieHeader, serializeCookieHeader } from '@supabase/ssr'\n\nexport function createClient(request: Request) {\n const headers = new Headers()\n\n const supabase = createServerClient(process.env.SUPABASE_URL!, process.env.SUPABASE_ANON_KEY!, {\n cookies: {\n getAll() {\n return parseCookieHeader(request.headers.get('Cookie') ?? '') as {\n name: string\n value: string\n }[]\n },\n setAll(cookiesToSet) {\n cookiesToSet.forEach(({ name, value, options }) =>\n headers.append('Set-Cookie', serializeCookieHeader(name, value, options))\n )\n },\n },\n })\n\n return { supabase, headers }\n}\n",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
@@ -160,7 +160,7 @@
|
||||
},
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dropzone-remix",
|
||||
"name": "dropzone-react-router",
|
||||
"type": "registry:component",
|
||||
"title": "Dropzone (File Upload)",
|
||||
"description": "Displays a control for easier uploading of files directly to Supabase Storage.",
|
||||
@@ -176,11 +176,11 @@
|
||||
"type": "registry:hook"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
]
|
||||
@@ -276,7 +276,7 @@
|
||||
},
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "realtime-cursor-remix",
|
||||
"name": "realtime-cursor-react-router",
|
||||
"type": "registry:component",
|
||||
"title": "Realtime Cursor",
|
||||
"description": "Component which renders realtime cursors from other users in a room.",
|
||||
@@ -296,11 +296,11 @@
|
||||
"type": "registry:hook"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
]
|
||||
@@ -376,19 +376,19 @@
|
||||
},
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "supabase-client-remix",
|
||||
"name": "supabase-client-react-router",
|
||||
"type": "registry:lib",
|
||||
"title": "Supabase Client for Remix",
|
||||
"title": "Supabase Client for React Router",
|
||||
"description": "",
|
||||
"registryDependencies": [],
|
||||
"dependencies": ["@supabase/ssr@latest"],
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type Registry } from 'shadcn/registry'
|
||||
import nextjs from './default/clients/nextjs/registry-item.json' assert { type: 'json' }
|
||||
import reactRouter from './default/clients/react-router/registry-item.json' assert { type: 'json' }
|
||||
import react from './default/clients/react/registry-item.json' assert { type: 'json' }
|
||||
import remix from './default/clients/remix/registry-item.json' assert { type: 'json' }
|
||||
import tanstack from './default/clients/tanstack/registry-item.json' assert { type: 'json' }
|
||||
|
||||
export const clients = [nextjs, react, remix, tanstack] as Registry['items']
|
||||
export const clients = [nextjs, react, reactRouter, tanstack] as Registry['items']
|
||||
File renamed without changes.
File renamed without changes.
+4
-4
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "supabase-client-remix",
|
||||
"name": "supabase-client-react-router",
|
||||
"type": "registry:lib",
|
||||
"title": "Supabase Client for Remix",
|
||||
"title": "Supabase Client for React Router",
|
||||
"description": "",
|
||||
"registryDependencies": [],
|
||||
"dependencies": ["@supabase/ssr@latest"],
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.client.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.client.ts",
|
||||
"type": "registry:lib"
|
||||
},
|
||||
{
|
||||
"path": "registry/default/clients/remix/lib/supabase.server.ts",
|
||||
"path": "registry/default/clients/react-router/lib/supabase.server.ts",
|
||||
"type": "registry:lib"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user