mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-11 00:01:21 +00:00
improve server version
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
Scissors,
|
||||
XOctagon,
|
||||
AreaChart,
|
||||
Milestone,
|
||||
} from "lucide-react";
|
||||
import { Section } from "@components/layouts";
|
||||
import { RenameServer } from "./actions";
|
||||
@@ -70,19 +71,27 @@ export const ServerComponents: RequiredResourceComponents = {
|
||||
</Card>
|
||||
);
|
||||
},
|
||||
Stats: ({id}) => <Link to={`/servers/${id}/stats`}>
|
||||
<Button variant="link" className="flex gap-2 items-center p-0">
|
||||
<AreaChart className="w-4 h-4" />
|
||||
Stats
|
||||
</Button>
|
||||
</Link>
|
||||
Stats: ({ id }) => (
|
||||
<Link to={`/servers/${id}/stats`}>
|
||||
<Button variant="link" className="flex gap-2 items-center p-0">
|
||||
<AreaChart className="w-4 h-4" />
|
||||
Stats
|
||||
</Button>
|
||||
</Link>
|
||||
),
|
||||
Version: ({ id }) => {
|
||||
const version = useRead("GetPeripheryVersion", { server: id }).data
|
||||
?.version;
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
<Milestone className="w-4 h-4" />
|
||||
{version}
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
Info: {
|
||||
Version: ({id}) => {
|
||||
const version = useRead("GetPeripheryVersion", { server: id }).data?.version
|
||||
return <>{version}</>
|
||||
},
|
||||
Cpu: ({ id }) => {
|
||||
const server = useServer(id);
|
||||
const core_count =
|
||||
|
||||
Reference in New Issue
Block a user