Skip to content

Commit

Permalink
feat: Bind the data to the table infiniflow#1841
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Oct 8, 2024
1 parent 4bc9374 commit 48e5d00
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 328 deletions.
33 changes: 0 additions & 33 deletions gui/app/(dashboard)/database/context-menu.tsx

This file was deleted.

135 changes: 0 additions & 135 deletions gui/app/(dashboard)/database/page.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions gui/app/(dashboard)/database/table-creating-dialog.tsx

This file was deleted.

110 changes: 0 additions & 110 deletions gui/app/(dashboard)/database/table-creating-form.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion gui/app/(dashboard)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function ProductsPage({
};

return (
<div>
<div className="flex flex-col space-y-4">
<Card>
<CardHeader>
<CardTitle>Briefs</CardTitle>
Expand Down
15 changes: 6 additions & 9 deletions gui/app/(dashboard)/tables/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,19 @@ const invoices = [
}
];

function InfinityTable() {
async function InfinityTable() {
const tables = await listTable('default_db');
return (
<Table>
<TableHeader>
<TableRow>
<TableHead className="w-[100px]">Name</TableHead>
<TableHead>Type</TableHead>
<TableHead>Default</TableHead>
<TableHead className="text-center">Name</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{invoices.map((invoice) => (
<TableRow key={invoice.invoice}>
<TableCell className="font-medium">{invoice.invoice}</TableCell>
<TableCell>{invoice.paymentStatus}</TableCell>
<TableCell>{invoice.paymentMethod}</TableCell>
{tables.tables.map((table: string) => (
<TableRow key={table}>
<TableCell className="font-medium">{table}</TableCell>
</TableRow>
))}
</TableBody>
Expand Down

0 comments on commit 48e5d00

Please sign in to comment.