mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
feat: move the terminal fully into the ssh-terminal plugin (B9)
This commit is contained in:
1 parent
535126fd1b
commit
79d77678c9
309 files changed
+41789
-14958
No files matched your search
@@ -36,13 +36,11 @@ import type { Tab, TabType, SplitMode } from "@/types/ui-types";
|
||||
import { SPLIT_MODES, PANE_COUNTS } from "@/lib/theme";
|
||||
|
||||
/**
|
||||
* Tabs holding a live connection that can be refreshed and shared: local
|
||||
* terminals and registered session tabs. Serial sessions are not shareable.
|
||||
* Tabs holding a live connection that can be refreshed and shared: the
|
||||
* registered session tabs. Serial sessions are not shareable.
|
||||
*/
|
||||
function isConnectionTab(type: TabType): boolean {
|
||||
return (
|
||||
type === "local-terminal" || (type !== "serial" && isSessionTabType(type))
|
||||
);
|
||||
return type !== "serial" && isSessionTabType(type);
|
||||
}
|
||||
|
||||
export function TabBar({
|
||||
@@ -689,7 +687,8 @@ export function TabBar({
|
||||
{t("nav.refreshTab")}
|
||||
</button>
|
||||
)}
|
||||
{ctxTab.type === "terminal" &&
|
||||
{typeof ctxTab.terminalRef?.current?.openFileManager ===
|
||||
"function" &&
|
||||
ctxTab.host &&
|
||||
onOpenFileManager && (
|
||||
<button
|
||||
|
||||
Reference in new issue
Block a user