diff --git a/src/App.tsx b/src/App.tsx index bbd89038..45af031a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,8 +2,6 @@ import React, {useState, useEffect} from "react" import {LeftSidebar} from "@/ui/Navigation/LeftSidebar.tsx" import {Homepage} from "@/ui/Homepage/Homepage.tsx" import {AppView} from "@/ui/Navigation/AppView.tsx" -// import {SSHTunnel} from "@/ui/SSH/Tunnel/SSHTunnel.tsx" -// import {ConfigEditor} from "@/ui/SSH/Config Editor/ConfigEditor.tsx" import {HostManager} from "@/ui/apps/Host Manager/HostManager.tsx" import {TabProvider, useTabs} from "@/ui/Navigation/Tabs/TabContext.tsx" import axios from "axios" @@ -88,7 +86,7 @@ function AppContent() { // Determine what to show based on current tab const currentTabData = tabs.find(tab => tab.id === currentTab); - const showTerminalView = currentTabData?.type === 'terminal' || currentTabData?.type === 'server' || currentTabData?.type === 'config'; + const showTerminalView = currentTabData?.type === 'terminal' || currentTabData?.type === 'server' || currentTabData?.type === 'file_manager'; const showHome = currentTabData?.type === 'home'; const showSshManager = currentTabData?.type === 'ssh_manager'; const showAdmin = currentTabData?.type === 'admin'; diff --git a/src/backend/ssh/tunnel.ts b/src/backend/ssh/tunnel.ts index 82881605..6530c921 100644 --- a/src/backend/ssh/tunnel.ts +++ b/src/backend/ssh/tunnel.ts @@ -78,7 +78,7 @@ interface SSHHost { keyType?: string; enableTerminal: boolean; enableTunnel: boolean; - enableConfigEditor: boolean; + enableFileManager: boolean; defaultPath: string; tunnelConnections: TunnelConnection[]; createdAt: string; diff --git a/src/ui/Navigation/AppView.tsx b/src/ui/Navigation/AppView.tsx index 1d01c7f0..c0cac7de 100644 --- a/src/ui/Navigation/AppView.tsx +++ b/src/ui/Navigation/AppView.tsx @@ -17,7 +17,7 @@ export function AppView({ isTopbarOpen = true }: TerminalViewProps): React.React const {tabs, currentTab, allSplitScreenTab} = useTabs() as any; const { state: sidebarState } = useSidebar(); - const terminalTabs = tabs.filter((tab: any) => tab.type === 'terminal' || tab.type === 'server' || tab.type === 'config'); + const terminalTabs = tabs.filter((tab: any) => tab.type === 'terminal' || tab.type === 'server' || tab.type === 'file_manager'); const containerRef = useRef(null); const panelRefs = useRef>({}); diff --git a/src/ui/Navigation/Hosts/FolderCard.tsx b/src/ui/Navigation/Hosts/FolderCard.tsx index 967bec0b..380bd4c0 100644 --- a/src/ui/Navigation/Hosts/FolderCard.tsx +++ b/src/ui/Navigation/Hosts/FolderCard.tsx @@ -21,7 +21,7 @@ interface SSHHost { keyType?: string; enableTerminal: boolean; enableTunnel: boolean; - enableConfigEditor: boolean; + enableFileManager: boolean; defaultPath: string; tunnelConnections: any[]; createdAt: string; diff --git a/src/ui/Navigation/Hosts/Host.tsx b/src/ui/Navigation/Hosts/Host.tsx index 952c61f4..8c13dffd 100644 --- a/src/ui/Navigation/Hosts/Host.tsx +++ b/src/ui/Navigation/Hosts/Host.tsx @@ -22,7 +22,7 @@ interface SSHHost { keyType?: string; enableTerminal: boolean; enableTunnel: boolean; - enableConfigEditor: boolean; + enableFileManager: boolean; defaultPath: string; tunnelConnections: any[]; createdAt: string; diff --git a/src/ui/Navigation/LeftSidebar.tsx b/src/ui/Navigation/LeftSidebar.tsx index ff5a762a..be29fc0b 100644 --- a/src/ui/Navigation/LeftSidebar.tsx +++ b/src/ui/Navigation/LeftSidebar.tsx @@ -67,7 +67,7 @@ interface SSHHost { keyType?: string; enableTerminal: boolean; enableTunnel: boolean; - enableConfigEditor: boolean; + enableFileManager: boolean; defaultPath: string; tunnelConnections: any[]; createdAt: string; diff --git a/src/ui/Navigation/Tabs/Tab.tsx b/src/ui/Navigation/Tabs/Tab.tsx index f9b793f0..50632d85 100644 --- a/src/ui/Navigation/Tabs/Tab.tsx +++ b/src/ui/Navigation/Tabs/Tab.tsx @@ -31,9 +31,9 @@ export function Tab({tabType, title, isActive, onActivate, onClose, onSplit, can ); } - if (tabType === "terminal" || tabType === "server" || tabType === "config") { + if (tabType === "terminal" || tabType === "server" || tabType === "file_manager") { const isServer = tabType === 'server'; - const isConfig = tabType === 'config'; + const isFileManager = tabType === 'file_manager'; return ( {canSplit && (
- enableConfigEditor - Show in Config Editor tab (boolean, default: true) - + enableFileManager - Show in File Manager tab (boolean, default: true) +
defaultPath - Default directory path (string) @@ -558,7 +558,7 @@ EXAMPLE STRUCTURE: "pin": true, "enableTerminal": true, "enableTunnel": false, - "enableConfigEditor": true, + "enableFileManager": true, "defaultPath": "/var/www" } ] @@ -709,10 +709,10 @@ EXAMPLE STRUCTURE: )} )} - {host.enableConfigEditor && ( + {host.enableFileManager && ( - Config + File Manager )}
diff --git a/src/ui/apps/Server/Server.tsx b/src/ui/apps/Server/Server.tsx index 3fbc0177..89f8734e 100644 --- a/src/ui/apps/Server/Server.tsx +++ b/src/ui/apps/Server/Server.tsx @@ -145,7 +145,7 @@ export function Server({ hostConfig, title, isVisible = true, isTopbarOpen = tru
- {currentHostConfig?.enableConfigEditor && ( + {currentHostConfig?.enableFileManager && (