mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-02 08:35:24 +00:00
feat: convert tmux monitoring into a plugin (B10)
This commit is contained in:
1 parent
79d77678c9
commit
708eedb861
145 files changed
+30308
-4458
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import type { StandaloneViewProps } from "@termix/plugin-sdk/frontend";
|
||||
import { TmuxMonitor } from "./TmuxMonitor";
|
||||
|
||||
/** `?view=tmux_monitor` full-screen links. */
|
||||
function TmuxMonitorApp({ hostId }: StandaloneViewProps) {
|
||||
const parsed = hostId ? parseInt(hostId, 10) : NaN;
|
||||
return (
|
||||
<div className="h-screen w-screen overflow-hidden">
|
||||
<TmuxMonitor
|
||||
initialHostId={Number.isFinite(parsed) ? parsed : undefined}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default TmuxMonitorApp;
|
||||
Reference in new issue
Block a user