mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
25 lines
887 B
TypeScript
25 lines
887 B
TypeScript
import type { Server } from '@/types/server';
|
|
import type { ServerLog } from '@/types/server-log';
|
|
import { DataTable } from '@/components/data-table';
|
|
import { columns } from '@/pages/server-logs/components/columns';
|
|
import { usePage } from '@inertiajs/react';
|
|
import Container from '@/components/container';
|
|
import Heading from '@/components/heading';
|
|
import { PaginatedData } from '@/types';
|
|
import MetricsCards from '@/pages/monitoring/components/metrics-cards';
|
|
|
|
export default function ServerOverview() {
|
|
const page = usePage<{
|
|
server: Server;
|
|
logs: PaginatedData<ServerLog>;
|
|
}>();
|
|
|
|
return (
|
|
<Container className="max-w-5xl">
|
|
<Heading title="Overview" description="Here you can see an overview of your server" />
|
|
<MetricsCards server={page.props.server} />
|
|
<DataTable columns={columns} paginatedData={page.props.logs} />
|
|
</Container>
|
|
);
|
|
}
|