mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Network table
This commit is contained in:
parent
c01458e394
commit
7c47a93bd9
@ -48,7 +48,30 @@ export default function SitesPage({ username, name, siteId }: SitesPageProps) {
|
|||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm opacity-70">
|
<p className="text-sm opacity-70">
|
||||||
{site.networks?.length > 0 ? site.networks.map((network) => network.name).join(", ") : "No networks"}
|
<div className="overflow-x-auto">
|
||||||
|
<table className="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>Network Name</th>
|
||||||
|
<th>IPv4 Subnet</th>
|
||||||
|
<th>IPv6 Subnet</th>
|
||||||
|
<th>Gateway</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{site.networks?.map((network, index) => (
|
||||||
|
<tr key={index}>
|
||||||
|
<th>{index + 1}</th>
|
||||||
|
<td>{network.name}</td>
|
||||||
|
<td>{network.ipv4Subnet}</td>
|
||||||
|
<td>{network.ipv6Subnet}</td>
|
||||||
|
<td>{network.gateway}</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user