From 99b2641ea2fdb18410f493f2d2eb8fa6a7289d97 Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Mon, 10 Nov 2025 10:49:51 +0700 Subject: [PATCH] Update --- BACKEND/app/services/line_connection.ts | 3 +-- FRONTEND/src/App.tsx | 4 ++-- FRONTEND/src/components/TerminalXTerm.tsx | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/BACKEND/app/services/line_connection.ts b/BACKEND/app/services/line_connection.ts index 4f9b30b..af3d7a9 100644 --- a/BACKEND/app/services/line_connection.ts +++ b/BACKEND/app/services/line_connection.ts @@ -281,8 +281,7 @@ export default class LineConnection { if ( ['show inventory', 'sh inventory', 'show inv', 'sh inv'].includes( item.command - ) && - !this.config.inventory + ) ) { this.config.inventory = JSON.parse(item.textfsm)[0] } diff --git a/FRONTEND/src/App.tsx b/FRONTEND/src/App.tsx index 0c3b2a1..28757c7 100644 --- a/FRONTEND/src/App.tsx +++ b/FRONTEND/src/App.tsx @@ -91,8 +91,8 @@ function App() { if (response.status) { if (Array.isArray(response.data)) { setStations(response.data); - if (response.data?.length > 0) - setActiveTab(response.data[0]?.id.toString()); + // if (response.data?.length > 0) + // setActiveTab(response.data[0]?.id.toString()); } } } catch (error) { diff --git a/FRONTEND/src/components/TerminalXTerm.tsx b/FRONTEND/src/components/TerminalXTerm.tsx index c23e159..631063d 100644 --- a/FRONTEND/src/components/TerminalXTerm.tsx +++ b/FRONTEND/src/components/TerminalXTerm.tsx @@ -61,8 +61,8 @@ const TerminalCLI: React.FC = ({ foreground: "#41ee4a", cursor: "#ffffff", }, - // rows: 24, - // cols: 80, + rows: 24, + cols: 80, }); const fitAddon = new FitAddon(); fitRef.current = fitAddon;