mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
feat: turn session recording into a plugin (B13)
This commit is contained in:
1 parent
a276f6898c
commit
0af2c94983
147 files changed
+25915
-2074
No files matched your search
@@ -21,7 +21,6 @@ import { getTabType } from "./tab-registry";
|
||||
const CORE_CAPTURABLE = new Set([
|
||||
"homepage",
|
||||
"termix-id",
|
||||
"session-logs",
|
||||
"macros",
|
||||
"ssh-tools",
|
||||
]);
|
||||
@@ -30,7 +29,6 @@ const CORE_CAPTURABLE = new Set([
|
||||
const CORE_SINGLETON = new Set([
|
||||
"homepage",
|
||||
"termix-id",
|
||||
"session-logs",
|
||||
"macros",
|
||||
"ssh-tools",
|
||||
]);
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
User,
|
||||
Fingerprint,
|
||||
Hammer,
|
||||
ScrollText,
|
||||
} from "lucide-react";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -41,11 +40,6 @@ const HomepageCanvas = lazy(() =>
|
||||
const TermixIdPanel = lazy(() =>
|
||||
import("@/sidebar/TermixIdPanel").then((m) => ({ default: m.TermixIdPanel })),
|
||||
);
|
||||
const SessionLogsPanel = lazy(() =>
|
||||
import("@/sidebar/SessionLogsPanel").then((m) => ({
|
||||
default: m.SessionLogsPanel,
|
||||
})),
|
||||
);
|
||||
const MacrosPanel = lazy(() =>
|
||||
import("@/sidebar/MacrosPanel").then((m) => ({ default: m.MacrosPanel })),
|
||||
);
|
||||
@@ -124,8 +118,6 @@ export function tabIcon(type: TabType) {
|
||||
return <LayoutGrid className="size-3.5" />;
|
||||
case "termix-id":
|
||||
return <Fingerprint className="size-3.5" />;
|
||||
case "session-logs":
|
||||
return <ScrollText className="size-3.5" />;
|
||||
case "macros":
|
||||
return <Braces className="size-3.5" />;
|
||||
|
||||
@@ -229,13 +221,6 @@ export function renderTabContent(tab: Tab, context: TabRenderContext) {
|
||||
</PanelTabFrame>,
|
||||
);
|
||||
|
||||
case "session-logs":
|
||||
return withTabSuspense(
|
||||
<PanelTabFrame>
|
||||
<SessionLogsPanel />
|
||||
</PanelTabFrame>,
|
||||
);
|
||||
|
||||
case "split-screen":
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user