Configure CI (#2)
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #2
Co-authored-by: Pierre HUBERT <pierre.git@communiquons.org>
Co-committed-by: Pierre HUBERT <pierre.git@communiquons.org>
This commit is contained in:
2024-04-05 18:58:30 +00:00
committed by Pierre Hubert
parent 9b55f1f29c
commit 1ed23317cb
9 changed files with 3097 additions and 3534 deletions

File diff suppressed because it is too large Load Diff

View File

@ -39,6 +39,9 @@ let config: ServerConfig | null = null;
export interface ServerSystemInfo {
hypervisor: HypervisorInfo;
system: SystemInfo;
components: SysComponent;
disks: DiskInfo[];
networks: NetworkInfo[];
}
interface HypervisorInfo {
@ -77,10 +80,6 @@ interface SystemInfo {
total_swap: number;
free_swap: number;
used_swap: number;
components: SysComponent;
users: [];
disks: DiskInfo[];
networks: NetworkInfo[];
uptime: number;
boot_time: number;
load_average: SysLoadAverage;

View File

@ -51,7 +51,7 @@ export function SysInfoRoute(): React.ReactElement {
export function SysInfoRouteInner(p: {
info: ServerSystemInfo;
}): React.ReactElement {
const sumDiskUsage = p.info.system.disks.reduce(
const sumDiskUsage = p.info.disks.reduce(
(prev, disk) => {
return {
used: prev.used + disk.total_space - disk.available_space,
@ -227,8 +227,8 @@ export function SysInfoRouteInner(p: {
]}
/>
<DiskDetailsTable disks={p.info.system.disks} />
<NetworksDetailsTable networks={p.info.system.networks} />
<DiskDetailsTable disks={p.info.disks} />
<NetworksDetailsTable networks={p.info.networks} />
</VirtWebRouteContainer>
);
}