| 1 |
/* |
| 2 |
* Copyright (C) 2019 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
import React from 'react'; |
| 7 |
import { Card, CardBody, CardFooter, CardTitle } from "@patternfly/react-core/dist/esm/components/Card/index.js"; |
| 8 |
|
| 9 |
import cockpit from "cockpit"; |
| 10 |
import { PageStatusNotifications } from "../page-status.jsx"; |
| 11 |
import { InsightsStatus } from "./insights.jsx"; |
| 12 |
import { ShutDownStatus } from "./shutdownStatus.jsx"; |
| 13 |
import { UncleanShutdownStatus } from "./uncleanShutdownStatus.jsx"; |
| 14 |
import LastLogin from "./lastLogin.jsx"; |
| 15 |
import { CryptoPolicyStatus } from "./cryptoPolicies.jsx"; |
| 16 |
|
| 17 |
import "./healthCard.scss"; |
| 18 |
import { SmartOverviewStatus } from './smart-status.jsx'; |
| 19 |
|
| 20 |
const _ = cockpit.gettext; |
| 21 |
|
| 22 |
export const HealthCard = () => |
| 23 |
<Card className="system-health"> |
| 24 |
<CardTitle>{_("Health")}</CardTitle> |
| 25 |
<CardBody> |
| 26 |
<ul className="system-health-events"> |
| 27 |
<PageStatusNotifications /> |
| 28 |
<InsightsStatus /> |
| 29 |
<CryptoPolicyStatus /> |
| 30 |
<ShutDownStatus /> |
| 31 |
<UncleanShutdownStatus /> |
| 32 |
<SmartOverviewStatus /> |
| 33 |
<LastLogin /> |
| 34 |
</ul> |
| 35 |
</CardBody> |
| 36 |
<CardFooter /> |
| 37 |
</Card>; |