mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
|
|
import type { ColumnDef } from '@tanstack/react-table';
|
||
|
|
|
||
|
|
export type Spec = {
|
||
|
|
name: string;
|
||
|
|
method: string;
|
||
|
|
path: string;
|
||
|
|
domain: string;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const fakeData: Spec[] = [
|
||
|
|
{
|
||
|
|
name: 'listPets',
|
||
|
|
method: 'get',
|
||
|
|
path: '/pets',
|
||
|
|
domain: 'petstore.swagger.io',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'createPets',
|
||
|
|
method: 'post',
|
||
|
|
path: '/pets',
|
||
|
|
domain: 'petstore.swagger.io',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'showPetById',
|
||
|
|
method: 'get',
|
||
|
|
path: '/pets/{petId}',
|
||
|
|
domain: 'petstore.swagger.io',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export const columns: ColumnDef<Spec>[] = [
|
||
|
|
{
|
||
|
|
header: 'Name',
|
||
|
|
accessorKey: 'name',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
header: 'Method',
|
||
|
|
accessorKey: 'method',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
header: 'Path',
|
||
|
|
accessorKey: 'path',
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// header: '',
|
||
|
|
// accessorKey: 'action',
|
||
|
|
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||
|
|
// cell: ({ row: _row }) => (
|
||
|
|
// <button className="btn relative btn-neutral h-8 rounded-lg border-token-border-light font-medium">
|
||
|
|
// <div className="flex w-full gap-2 items-center justify-center">Test</div>
|
||
|
|
// </button>
|
||
|
|
// ),
|
||
|
|
// },
|
||
|
|
];
|