The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
added LogTable component
TzeYiing8cf111ba8eb0
diff --git a/studio/components/ui/Logs/LogTable.tsx b/studio/components/ui/Logs/LogTable.tsxnew file mode 100644index 00000000000..e207bd16c22--- /dev/null+++ b/studio/components/ui/Logs/LogTable.tsx@@ -0,0 +1,33 @@+import React from 'react'+import Table from 'components/to-be-cleaned/Table'+import { Tab } from '@headlessui/react'++interface Props {+ data: LogData[]+}++interface LogData extends LogDataCommon {+ [key: string]: string | number+}+interface LogDataCommon {+ timestamp: number+ event_message: string+}+++/**+ * Logs table view+ */+const LogTable = ({ data=[] }: Props) => {+ const columns = ["timestamp", "event_message"]+ return (+ <Table containerClassName="mx-auto container"+ head={columns.map(c => <Table.th>{c}</Table.th>)}+ body={data.map(d => (+ <Table.tr>+ {columns.map(c => <Table.td>{d[c]}</Table.td>)}+ </Table.tr>))}+ />+ )+}+export default LogTable\ No newline at end of file