cleanup: remove imgscore as nobody uses it

This commit is contained in:
zkldi
2022-12-22 14:43:22 +00:00
parent c971ab14ac
commit a7fe1286c0
4 changed files with 2 additions and 35 deletions
-3
View File
@@ -36,9 +36,6 @@ Other configuration variables are as follows:
# Stop react from launching a browser when you run pnpm start.
BROWSER="none"
# Where IMGScores should be generated from.
REACT_APP_IMGSCORE_URL=""
# KAI API Client IDs.
REACT_APP_EAG_CLIENT_ID=""
REACT_APP_MIN_CLIENT_ID=""
-1
View File
@@ -3,7 +3,6 @@ REACT_APP_TCHIC_MODE="omni"
REACT_APP_SERVER_URL="https://127.0.0.1:8080"
REACT_APP_CDN_URL="https://127.0.0.1:8080/cdn"
REACT_APP_GIT_REPO="GitHub:TNG-dev/Tachi"
REACT_APP_IMGSCORE_URL=""
REACT_APP_EAG_CLIENT_ID=""
REACT_APP_MIN_CLIENT_ID=""
REACT_APP_FLO_CLIENT_ID=""
@@ -1,24 +0,0 @@
import QuickTooltip from "components/layout/misc/QuickTooltip";
import ExternalLink from "components/util/ExternalLink";
import Icon from "components/util/Icon";
import React from "react";
import { Game, ScoreDocument } from "tachi-common";
const SUPPORTED_IMG_SCORES: Game[] = ["usc"];
export default function ImgScoreButton({ score }: { score: ScoreDocument }) {
if (!SUPPORTED_IMG_SCORES.includes(score.game)) {
return <></>;
}
return (
<QuickTooltip tooltipContent="Get an image for this score!">
<ExternalLink
className="btn btn-outline-secondary"
href={`${process.env.REACT_APP_IMGSCORE_URL}/scores/${score.scoreID}`}
>
<Icon noPad type="camera" />
</ExternalLink>
</QuickTooltip>
);
}
@@ -3,12 +3,9 @@ import QuickTooltip from "components/layout/misc/QuickTooltip";
import Icon from "components/util/Icon";
import { UserContext } from "context/UserContext";
import React, { useContext, useEffect, useRef, useState } from "react";
import { Game, ScoreDocument } from "tachi-common";
import { Button, Modal, Form } from "react-bootstrap";
import { Button, Form, Modal } from "react-bootstrap";
import { ScoreDocument } from "tachi-common";
import { SetState } from "types/react";
import LinkButton from "components/util/LinkButton";
import ExternalLink from "components/util/ExternalLink";
import ImgScoreButton from "./ImgScoreButton";
export default function ScoreEditButtons({
score,
@@ -95,8 +92,6 @@ export default function ScoreEditButtons({
)}
</>
)}
<ImgScoreButton score={score} />
</div>
<CommentModal
show={show}