mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
* infinite list * infinite list block * registration * add missing supportedFrameworks * Add tables to the supabase project. Generate the types for it. * Refactor the infinite list query to be just a hook. * Clean up the block. Add comments. * Regenerate the registry. * Fix the docs, the block is not framework-dependent. * Set the package versions to * to be defined by other packages. * Minor fixes to the block. * Fix the examples. * Fix the docs for the new hook. * Fix the demo. * Add more migrations to the db. * Fix various issues with the query. Rewrote it to useSyncExternalStore. * Fix the SSR for the hook. * More fixes. * Try initializing the store in a useEffect. * Fix the pnpm-lock file. * Minor fixes in the docs. * Put the infinite list under a reusable components section. * Update apps/ui-library/registry/default/blocks/infinite-query-hook/hooks/use-infinite-query.ts * Change the example DB to use todos. * Update the docs to be about Todos quickstart. * List edits * Fix link * Regenerate the registry. * Add query hook to the landing page. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Terry Sutton <saltcod@gmail.com>
93 lines
2.0 KiB
TypeScript
93 lines
2.0 KiB
TypeScript
import { type Registry } from 'shadcn/registry'
|
|
|
|
export const examples: Registry['items'] = [
|
|
{
|
|
name: 'dropzone-demo',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/dropzone-demo.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'realtime-cursor-demo',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/realtime-cursor-demo.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'password-based-auth-demo',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/password-based-auth.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'current-user-avatar-demo',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/current-user-avatar-demo.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'current-user-avatar-preview',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/current-user-avatar-preview.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'realtime-avatar-stack-demo',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/realtime-avatar-stack-demo.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'realtime-avatar-stack-preview',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/realtime-avatar-stack-preview.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'infinite-query-hook-demo',
|
|
type: 'registry:example',
|
|
registryDependencies: [],
|
|
files: [
|
|
{
|
|
path: 'registry/default/examples/infinite-query-hook-demo.tsx',
|
|
type: 'registry:example',
|
|
},
|
|
],
|
|
},
|
|
]
|