From 000e9799122ff1ec16643dd10baa83090ee228a2 Mon Sep 17 00:00:00 2001 From: kokofixcomputers koko Date: Tue, 8 Oct 2024 22:26:21 +0000 Subject: [PATCH] fix --- .github/workflows/release.yaml | 4 ++-- VERSION | 2 +- resources/scripts/components/server/console/Console.tsx | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7082e5150..b732dcb18 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -48,8 +48,8 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: - tag_name: v1.2.2 # Change this to your desired version/tag - name: "Release v1.2.2" # Change this to your desired release name + tag_name: v1.2.3 # Change this to your desired version/tag + name: "Release v1.2.3" # Change this to your desired release name files: release/kokofixcomputers/panel.tar.gz # Specify the file to attach draft: false # Set to true if you want to create a draft release prerelease: false # Set to true if this is a pre-release diff --git a/VERSION b/VERSION index 23aa83906..0495c4a88 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.2 +1.2.3 diff --git a/resources/scripts/components/server/console/Console.tsx b/resources/scripts/components/server/console/Console.tsx index 6afc6d713..ccdd07375 100644 --- a/resources/scripts/components/server/console/Console.tsx +++ b/resources/scripts/components/server/console/Console.tsx @@ -18,6 +18,8 @@ import { usePersistedState } from '@/plugins/usePersistedState'; import { SocketEvent, SocketRequest } from '@/components/server/events'; import 'xterm/css/xterm.css'; import Tooltip from '@/components/elements/tooltip/Tooltip'; +import { useStoreState } from 'easy-peasy'; + const theme = { background: th`colors.black`.toString(), @@ -52,12 +54,12 @@ const terminalProps: ITerminalOptions = { }; export default () => { - const TERMINAL_PRELUDE = `\u001b[1m\u001b[33m${settingsData.consolemessagename}: \u001b[0m`; const ref = useRef(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'); @@ -66,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(`${serverId}:command_history`, []); - const settingsData = useStoreState((state) => state.settings.data); + const TERMINAL_PRELUDE = `\u001b[1m\u001b[33m${settingsData?.consolemessagename ?? 'Jexactyl-fork'}: \u001b[0m`; const zIndex = ` .xterm-search-bar__addon {