| 1 |
/* |
| 2 |
* Copyright (C) 2020 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
import React from "react"; |
| 7 |
import { createRoot } from 'react-dom/client'; |
| 8 |
|
| 9 |
import '../lib/patternfly/patternfly-6-cockpit.scss'; |
| 10 |
import "page.scss"; |
| 11 |
|
| 12 |
import { LogsPanel } from "cockpit-components-logs-panel.jsx"; |
| 13 |
|
| 14 |
document.addEventListener("DOMContentLoaded", function() { |
| 15 |
const cur_unit_id = "certmonger.service"; |
| 16 |
const match = [ |
| 17 |
"_SYSTEMD_UNIT=" + cur_unit_id, "+", |
| 18 |
"COREDUMP_UNIT=" + cur_unit_id, "+", |
| 19 |
"UNIT=" + cur_unit_id |
| 20 |
]; |
| 21 |
const root = createRoot(document.getElementById('journal-box')); |
| 22 |
root.render(<LogsPanel title="Logs!" match={match} max={10} />); |
| 23 |
}); |