mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
* First * Fix the parsing of SQL. * Get thread data action * Remove old page * Wait for data to complete * SSR everywhere * Remove unused * Add monaco settings * update loaders * Add sorting * supress hydration warnings * Fix profile layout * more server action action * fixes * Update page.tsx * Update actions.ts * Update AssistantChatForm.tsx * init * add polling * Update actions.ts * redirect to message id * init * Update SchemaFlow.tsx * Add latest message to thread record * Fix object object on new thread load * Fix build * Prettier * Fix type errors for build * Add proper loaders * Remove badger --------- Co-authored-by: Terry Sutton <saltcod@gmail.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
33 lines
872 B
TypeScript
33 lines
872 B
TypeScript
import { Loader2 } from 'lucide-react'
|
|
// output numbers from 1-6 in a span tag
|
|
// const numbers = Array.from({ length: 6 }, (_, i) => i + 1)
|
|
|
|
const GraphLoader = async () => {
|
|
return (
|
|
<div className="h-full w-full text-muted justify-start border-l">
|
|
<div className="flex gap-4">
|
|
<LineNumbers />
|
|
<div>
|
|
<div className="mt-4 flex items-center gap-2">
|
|
<Loader2 className="animate-spin opacity-100" size={16} strokeWidth={1} />
|
|
<span className="text-sm">Loading...</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default GraphLoader
|
|
|
|
const LineNumbers = () => {
|
|
const lines = [1, 2, 3, 4, 5, 6]
|
|
return (
|
|
<div className="grid gap-2 border-r py-4 px-4 text-sm font-mono text-muted">
|
|
{lines.map((line) => (
|
|
<span key={line}>{line}</span>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|