src/LogsPage.tsx hinzugefügt

This commit is contained in:
ds
2026-06-28 18:37:24 +00:00
parent 1260c0794b
commit ec2337d441
+42
View File
@@ -0,0 +1,42 @@
import React, { useState } from "react";
import NamespaceSelector from "./components/NamespaceSelector";
import PodTree from "./components/PodTree";
import LogViewer from "./components/LogViewer";
import Toolbar from "./components/Toolbar";
export default function LogsPage() {
const [namespace, setNamespace] = useState("default");
const [selection, setSelection] = useState(null);
const [regex, setRegex] = useState("");
const [live, setLive] = useState(true);
return (
<div style={{ display: "flex", height: "100vh" }}>
{/* LEFT PANEL */}
<div style={{ width: "30%", padding: 10, borderRight: "1px solid #333" }}>
<h3>Logs</h3>
<NamespaceSelector value={namespace} onChange={setNamespace} />
<Toolbar
regex={regex}
setRegex={setRegex}
live={live}
setLive={setLive}
/>
<PodTree namespace={namespace} onSelect={setSelection} />
</div>
{/* RIGHT PANEL */}
<div style={{ width: "70%" }}>
<LogViewer
namespace={namespace}
selection={selection}
regex={regex}
live={live}
/>
</div>
</div>
);
}