Skip to content

Commit

Permalink
Remove Steam url to connect to server since it's broken for some time…
Browse files Browse the repository at this point in the history
… now (Valve, pls fix)
  • Loading branch information
JensForstmann committed Apr 21, 2024
1 parent 63f843a commit 194e5da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
14 changes: 0 additions & 14 deletions frontend/src/assets/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ export const SvgCopyAll: Component<ComponentProps<'svg'>> = (props) => (
</svg>
);

export const SvgOpenInNew: Component<ComponentProps<'svg'>> = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 0 24 24"
width="24px"
fill="currentColor"
{...props}
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" />
</svg>
);

export const SvgNavigateBefore: Component<ComponentProps<'svg'>> = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
7 changes: 1 addition & 6 deletions frontend/src/components/GameServerCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from 'solid-js';
import { IMatchResponse } from '../../../common';
import { SvgCopyAll, SvgOpenInNew } from '../assets/Icons';
import { SvgCopyAll } from '../assets/Icons';
import { t } from '../utils/locale';
import { Card } from './Card';
import { copyToClipboard } from '../utils/copyToClipboard';
Expand All @@ -9,7 +9,6 @@ export const GameServerCard: Component<{
match: IMatchResponse;
}> = (props) => {
const ipPort = () => `${props.match.gameServer.ip}:${props.match.gameServer.port}`;
const steamUrl = () => `steam://connect/${ipPort()}/${props.match.serverPassword}`;
const command = () =>
(props.match.serverPassword ? `password "${props.match.serverPassword}"; ` : '') +
`connect ${ipPort()}`;
Expand All @@ -18,10 +17,6 @@ export const GameServerCard: Component<{
<Card class="text-center">
<h2 class="text-lg font-bold">{t('Game Server')}</h2>
<p>
<a href={steamUrl()}>
{steamUrl()} <SvgOpenInNew class="inline-block" />
</a>
<br />
<span class="align-middle">{command()}</span>
<button class="ml-1 align-middle" onClick={() => copyToClipboard(command())}>
<SvgCopyAll />
Expand Down

0 comments on commit 194e5da

Please sign in to comment.