mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 06:26:16 +00:00
#591 - ssh-keys
This commit is contained in:
38
resources/js/pages/ssh-keys/index.tsx
Normal file
38
resources/js/pages/ssh-keys/index.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import SettingsLayout from '@/layouts/settings/layout';
|
||||
import { Head, usePage } from '@inertiajs/react';
|
||||
import Container from '@/components/container';
|
||||
import Heading from '@/components/heading';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { DataTable } from '@/components/data-table';
|
||||
import React from 'react';
|
||||
import { SSHKey } from '@/types/ssh-key';
|
||||
import { columns } from '@/pages/ssh-keys/components/columns';
|
||||
import AddSshKey from '@/pages/ssh-keys/components/add-ssh-key';
|
||||
|
||||
type Page = {
|
||||
sshKeys: {
|
||||
data: SSHKey[];
|
||||
};
|
||||
};
|
||||
|
||||
export default function SshKeys() {
|
||||
const page = usePage<Page>();
|
||||
|
||||
return (
|
||||
<SettingsLayout>
|
||||
<Head title="SSH Keys" />
|
||||
<Container className="max-w-5xl">
|
||||
<div className="flex items-start justify-between">
|
||||
<Heading title="SSH Keys" description="Here you can manage all of your ssh keys" />
|
||||
<div className="flex items-center gap-2">
|
||||
<AddSshKey>
|
||||
<Button>Add</Button>
|
||||
</AddSshKey>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<DataTable columns={columns} data={page.props.sshKeys.data} />
|
||||
</Container>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user