From ace501aed5ae5c49d2af5db7f48f01f2f95f3e82 Mon Sep 17 00:00:00 2001 From: JensForstmann <19289807+JensForstmann@users.noreply.github.com> Date: Tue, 23 Apr 2024 01:27:34 +0200 Subject: [PATCH] Re-add Steam connect url since sometimes it does indeed work --- frontend/src/assets/Icons.tsx | 14 ++++++++++++++ frontend/src/components/GameServerCard.tsx | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/frontend/src/assets/Icons.tsx b/frontend/src/assets/Icons.tsx index fefe834..daa22eb 100644 --- a/frontend/src/assets/Icons.tsx +++ b/frontend/src/assets/Icons.tsx @@ -104,6 +104,20 @@ export const SvgCopyAll: Component> = (props) => ( ); +export const SvgOpenInNew: Component> = (props) => ( + + + + +); + export const SvgNavigateBefore: Component> = (props) => ( = (props) => { const ipPort = () => `${props.match.gameServer.ip}:${props.match.gameServer.port}`; + const steamUrl = () => `steam://connect/${ipPort()}?appid=730/${props.match.serverPassword}`; const command = () => (props.match.serverPassword ? `password "${props.match.serverPassword}"; ` : '') + `connect ${ipPort()}`; @@ -17,6 +18,10 @@ export const GameServerCard: Component<{

{t('Game Server')}

+ + {steamUrl()} + +
{command()}