mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: point core frontend snippets pickers at the plugin (B2)
This commit is contained in:
1 parent
e07221eaf3
commit
1eac0f54b0
22 files changed
+170
-2968
No files matched your search
@@ -26,7 +26,6 @@ const CORE_CAPTURABLE = new Set([
|
||||
"homepage",
|
||||
"termix-id",
|
||||
"session-logs",
|
||||
"snippets",
|
||||
"macros",
|
||||
"history",
|
||||
"ssh-tools",
|
||||
@@ -39,7 +38,6 @@ const CORE_SINGLETON = new Set([
|
||||
"homepage",
|
||||
"termix-id",
|
||||
"session-logs",
|
||||
"snippets",
|
||||
"macros",
|
||||
"history",
|
||||
"ssh-tools",
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
Clock,
|
||||
Fingerprint,
|
||||
Hammer,
|
||||
Play,
|
||||
ScrollText,
|
||||
Presentation,
|
||||
} from "lucide-react";
|
||||
@@ -91,9 +90,6 @@ const SessionLogsPanel = lazy(() =>
|
||||
default: m.SessionLogsPanel,
|
||||
})),
|
||||
);
|
||||
const SnippetsPanel = lazy(() =>
|
||||
import("@/sidebar/SnippetsPanel").then((m) => ({ default: m.SnippetsPanel })),
|
||||
);
|
||||
const MacrosPanel = lazy(() =>
|
||||
import("@/sidebar/MacrosPanel").then((m) => ({ default: m.MacrosPanel })),
|
||||
);
|
||||
@@ -197,8 +193,6 @@ export function tabIcon(type: TabType) {
|
||||
return <Fingerprint className="size-3.5" />;
|
||||
case "session-logs":
|
||||
return <ScrollText className="size-3.5" />;
|
||||
case "snippets":
|
||||
return <Play className="size-3.5" />;
|
||||
case "macros":
|
||||
return <Braces className="size-3.5" />;
|
||||
case "history":
|
||||
@@ -371,17 +365,6 @@ export function renderTabContent(tab: Tab, context: TabRenderContext) {
|
||||
case "split-screen":
|
||||
return null;
|
||||
|
||||
case "snippets":
|
||||
return withTabSuspense(
|
||||
<PanelTabFrame>
|
||||
<SnippetsPanel
|
||||
terminalTabs={panelProps?.terminalTabs ?? []}
|
||||
activeTabId={panelProps?.targetTerminalTabId ?? ""}
|
||||
storageMode={panelProps?.storageMode ?? "local"}
|
||||
/>
|
||||
</PanelTabFrame>,
|
||||
);
|
||||
|
||||
case "macros":
|
||||
return withTabSuspense(
|
||||
<PanelTabFrame>
|
||||
|
||||
Reference in new issue
Block a user