| 1 |
/* |
| 2 |
* Copyright (C) 2017 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
import '../lib/patternfly/patternfly-6-cockpit.scss'; |
| 7 |
import 'cockpit-dark-theme'; // once per page |
| 8 |
|
| 9 |
import React from 'react'; |
| 10 |
import { createRoot } from "react-dom/client"; |
| 11 |
import { Application } from './metrics.jsx'; |
| 12 |
|
| 13 |
document.addEventListener("DOMContentLoaded", function () { |
| 14 |
const root = createRoot(document.getElementById("app")); |
| 15 |
root.render(React.createElement(Application, {})); |
| 16 |
}); |