Skip to content

Commit

Permalink
Update Console.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 8, 2024
1 parent f675e32 commit 9c077db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/components/server/console/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ const terminalProps: ITerminalOptions = {
};

export default () => {
const TERMINAL_PRELUDE = `\u001b[1m\u001b[33m${settingsData.consolemessagename}: \u001b[0m`;
const ref = useRef<HTMLDivElement>(null);
const terminal = useMemo(() => new Terminal({ ...terminalProps }), []);
const fitAddon = new FitAddon();
const searchAddon = new SearchAddon();
const webLinksAddon = new WebLinksAddon();
const settingsData = useStoreState((state) => state.settings.data);
const searchBar = new SearchBarAddon({ searchAddon });
const [historyIndex, setHistoryIndex] = useState(-1);
const isConsoleDetached = location.pathname.endsWith('/console');
Expand All @@ -68,7 +68,7 @@ export default () => {
const { connected, instance } = ServerContext.useStoreState((state) => state.socket);
const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring);
const [history, setHistory] = usePersistedState<string[]>(`${serverId}:command_history`, []);
const settingsData = useStoreState((state) => state.settings.data);
const TERMINAL_PRELUDE = `\u001b[1m\u001b[33m${settingsData.consolemessagename}: \u001b[0m`;

const zIndex = `
.xterm-search-bar__addon {
Expand Down

0 comments on commit 9c077db

Please sign in to comment.