mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: move terminal settings, look and ssh tools into ssh-terminal plugin
This commit is contained in:
1 parent
ffa872ebd3
commit
d9bba10612
242 files changed
+25071
-7207
No files matched your search
@@ -23,10 +23,10 @@ import { listPanes, mapTabIds } from "./split/split-tree";
|
||||
* purpose: the shell always keeps one alive as the fallback tab, so it is
|
||||
* not a meaningful part of an arrangement.
|
||||
*/
|
||||
const CORE_CAPTURABLE = new Set(["macros", "ssh-tools"]);
|
||||
const CORE_CAPTURABLE = new Set(["macros"]);
|
||||
|
||||
/** Core types reopened as singletons, with an optional preselected host. */
|
||||
const CORE_SINGLETON = new Set(["macros", "ssh-tools"]);
|
||||
const CORE_SINGLETON = new Set(["macros"]);
|
||||
|
||||
/** Core tab types that are never part of a saved arrangement. */
|
||||
const CORE_UNSAVED = new Set([
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
Server,
|
||||
Settings,
|
||||
User,
|
||||
Hammer,
|
||||
} from "lucide-react";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -34,9 +33,6 @@ const MacrosPanel = lazy(() =>
|
||||
import("@/sidebar/MacrosPanel").then((m) => ({ default: m.MacrosPanel })),
|
||||
);
|
||||
|
||||
const SshToolsPanel = lazy(() =>
|
||||
import("@/sidebar/SshToolsPanel").then((m) => ({ default: m.SshToolsPanel })),
|
||||
);
|
||||
/** Download a likely next tab without starting a connection or mounting UI. */
|
||||
export function preloadTabSurface(type: TabType): void {
|
||||
const loader = getTabType(type)?.preload;
|
||||
@@ -107,8 +103,6 @@ export function tabIcon(type: TabType) {
|
||||
case "macros":
|
||||
return <Braces className="size-3.5" />;
|
||||
|
||||
case "ssh-tools":
|
||||
return <Hammer className="size-3.5" />;
|
||||
case "split-screen":
|
||||
return <LayoutPanelLeft className="size-3.5" />;
|
||||
default: {
|
||||
@@ -221,16 +215,6 @@ export function renderTabContent(tab: Tab, context: TabRenderContext) {
|
||||
</PanelTabFrame>,
|
||||
);
|
||||
|
||||
case "ssh-tools":
|
||||
return withTabSuspense(
|
||||
<PanelTabFrame>
|
||||
<SshToolsPanel
|
||||
terminalTabs={panelProps?.terminalTabs ?? []}
|
||||
activeTabId={panelProps?.targetTerminalTabId ?? ""}
|
||||
/>
|
||||
</PanelTabFrame>,
|
||||
);
|
||||
|
||||
case "host-manager":
|
||||
case "user-profile":
|
||||
case "admin-settings":
|
||||
|
||||
Reference in new issue
Block a user