Last touches -- add wacca site import instructions.

This commit is contained in:
zkldi
2022-02-09 02:59:13 +00:00
parent 77c60e8e68
commit ecc0b44cc6
3 changed files with 40 additions and 6 deletions
@@ -231,6 +231,15 @@ function ImportInfoDisplayer({ game }: { game: Game }) {
key="Beatoraja IR"
/>
);
} else if (game === "wacca") {
Content.unshift(
<ImportInfoCard
name="WACCA Site Importer"
href="wacca-site"
desc="Scrape your scores from the WACCA website."
key="WACCA Site Importer"
/>
);
}
return (
@@ -0,0 +1,26 @@
import useSetSubheader from "components/layout/header/useSetSubheader";
import Divider from "components/util/Divider";
import ExternalLink from "components/util/ExternalLink";
import { TachiConfig } from "lib/config";
import React from "react";
export default function WACCASiteImportPage() {
useSetSubheader(["Import Scores", "WACCA Site Importer"]);
return (
<div>
<h1 className="text-center mb-4">What Is The WACCA Site Importer?</h1>
<div>
The WACCA Site Importer is a script that will scrape your profile on the WACCA
website and imports it to {TachiConfig.name}.
</div>
<Divider />
<h1 className="text-center my-4">Setup Instructions</h1>
Instructions are available on{" "}
<ExternalLink href="https://github.com/cg505/kt-wacca-site-importer">
the GitHub repository
</ExternalLink>
.
</div>
);
}
+5 -6
View File
@@ -15,6 +15,7 @@ import SilentHookPage from "app/pages/dashboard/import/SilentHookPage";
import SSSXMLPage from "app/pages/dashboard/import/SSSXMLPage";
import USCDBPage from "app/pages/dashboard/import/USCDBPage";
import USCIRPage from "app/pages/dashboard/import/USCIRPage";
import WACCASiteImportPage from "app/pages/dashboard/import/WACCASiteImportPage";
import ARCImportPage from "components/imports/ARCImportPage";
import KAIIntegrationPage from "components/imports/KAIIntegrationPage";
import Divider from "components/util/Divider";
@@ -100,12 +101,6 @@ export default function ImportRoutes() {
<SSSXMLPage />
</Route>
<Route exact path="/dashboard/import/beatoraja-db">
<BeatorajaDBPage />
</Route>
<Route exact path="/dashboard/import/lr2-db">
<LR2DBPage />
</Route>
<Route exact path="/dashboard/import/fervidex">
<FervidexPage />
</Route>
@@ -176,6 +171,10 @@ export default function ImportRoutes() {
game="sdvx"
/>
</Route>
<Route exact path="/dashboard/import/wacca-site">
<WACCASiteImportPage />
</Route>
</>
)}
</Switch>