List certificates
This commit is contained in:
parent
a3a94f127f
commit
e242d229e4
5 changed files with 666 additions and 10 deletions
20
src/app.jsx
20
src/app.jsx
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* This file is part of Cockpit.
|
||||
*
|
||||
* Copyright (C) 2017 Red Hat, Inc.
|
||||
* Copyright (C) 2020 Red Hat, Inc.
|
||||
*
|
||||
* Cockpit is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -17,9 +17,13 @@
|
|||
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import cockpit from 'cockpit';
|
||||
import React from 'react';
|
||||
import './app.scss';
|
||||
import cockpit from "cockpit";
|
||||
import React from "react";
|
||||
import "./app.scss";
|
||||
|
||||
// import { Accordion, AccordionItem, AccordionContent, AccordionToggle } from "@patternfly/react-core";
|
||||
|
||||
import CertificateList from "./certificateList.jsx";
|
||||
|
||||
const _ = cockpit.gettext;
|
||||
|
||||
|
|
@ -28,20 +32,16 @@ export class Application extends React.Component {
|
|||
super();
|
||||
this.state = { hostname: _("Unknown") };
|
||||
|
||||
cockpit.file('/etc/hostname').watch(content => {
|
||||
cockpit.file("/etc/hostname").watch(content => {
|
||||
this.setState({ hostname: content.trim() });
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
const path = getRequests();
|
||||
|
||||
return (
|
||||
<div className="container-fluid">
|
||||
<h2>Certificates</h2>
|
||||
<p>
|
||||
{ cockpit.format(_("Running on $0"), path) }
|
||||
</p>
|
||||
<CertificateList />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue