Files
Airframe-React/app/routes/Dashboards/System/System.js
2022-12-03 18:46:13 +01:00

114 lines
3.0 KiB
JavaScript
Executable File

import React from 'react';
import { faker } from '@faker-js/faker/locale/fr';
import {
Container,
Row,
Table,
Col
} from './../../../components';
import { HeaderMain } from "../../components/HeaderMain";
import {
CardSystem
} from "./components/CardSystem"
import {
TrSystem
} from "./components/trSystem"
const TrColors = [
{
fill: "primary-02",
stroke: "primary"
},
{
fill: "purple-02",
stroke: "purple"
},
{
fill: "success-02",
stroke: "success"
},
{
fill: "yellow-02",
stroke: "yellow"
}
]
const System = () => (
<Container>
<Row className="mb-5">
<Col lg={ 12 }>
<HeaderMain
title="System"
className="mb-4 mb-lg-5"
/>
</Col>
<Col lg={ 3 } md={ 6 }>
<CardSystem
title="Memory"
badgeColor="primary"
pieColor="primary"
/>
</Col>
<Col lg={ 3 } md={ 6 }>
<CardSystem
title="CPU"
unit="Mb"
badgeColor="purple"
pieColor="purple"
/>
</Col>
<Col lg={ 3 } md={ 6 }>
<CardSystem
title="Traffic"
unit="Kb"
badgeColor="success"
pieColor="success"
/>
</Col>
<Col lg={ 3 } md={ 6 }>
<CardSystem
title="Disk I/O"
unit="Kb"
pieColor="yellow"
/>
</Col>
<Col lg={ 12 }>
<h6 className="mt-5">Processes</h6>
<p className="pb-3">
{ faker.lorem.paragraphs() }
</p>
<Table responsive>
<thead>
<tr>
<th>Name</th>
<th>Memory</th>
<th>CPU</th>
<th>Traffic</th>
<th>Disk I/O</th>
</tr>
</thead>
<tbody>
<TrSystem
colors={TrColors}
/>
<TrSystem
colors={TrColors}
/>
<TrSystem
colors={TrColors}
/>
<TrSystem
colors={TrColors}
/>
<TrSystem
colors={TrColors}
/>
</tbody>
</Table>
</Col>
</Row>
</Container>
);
export default System;