From ecc0b44cc6246282937b3d9680e3c777a86fd152 Mon Sep 17 00:00:00 2001
From: zkldi <20380519+zkldi@users.noreply.github.com>
Date: Tue, 8 Feb 2022 23:08:05 +0000
Subject: [PATCH] Last touches -- add wacca site import instructions.
---
.../app/pages/dashboard/import/ImportPage.tsx | 9 +++++++
.../dashboard/import/WACCASiteImportPage.tsx | 26 +++++++++++++++++++
client/src/app/routes/ImportRoutes.tsx | 11 ++++----
3 files changed, 40 insertions(+), 6 deletions(-)
create mode 100644 client/src/app/pages/dashboard/import/WACCASiteImportPage.tsx
diff --git a/client/src/app/pages/dashboard/import/ImportPage.tsx b/client/src/app/pages/dashboard/import/ImportPage.tsx
index 4a0c0773a..d9757e478 100644
--- a/client/src/app/pages/dashboard/import/ImportPage.tsx
+++ b/client/src/app/pages/dashboard/import/ImportPage.tsx
@@ -231,6 +231,15 @@ function ImportInfoDisplayer({ game }: { game: Game }) {
key="Beatoraja IR"
/>
);
+ } else if (game === "wacca") {
+ Content.unshift(
+
+ );
}
return (
diff --git a/client/src/app/pages/dashboard/import/WACCASiteImportPage.tsx b/client/src/app/pages/dashboard/import/WACCASiteImportPage.tsx
new file mode 100644
index 000000000..56d5d99de
--- /dev/null
+++ b/client/src/app/pages/dashboard/import/WACCASiteImportPage.tsx
@@ -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 (
+
+
What Is The WACCA Site Importer?
+
+ The WACCA Site Importer is a script that will scrape your profile on the WACCA
+ website and imports it to {TachiConfig.name}.
+
+
+
Setup Instructions
+ Instructions are available on{" "}
+
+ the GitHub repository
+
+ .
+
+ );
+}
diff --git a/client/src/app/routes/ImportRoutes.tsx b/client/src/app/routes/ImportRoutes.tsx
index e80f0274e..65bcef6ee 100644
--- a/client/src/app/routes/ImportRoutes.tsx
+++ b/client/src/app/routes/ImportRoutes.tsx
@@ -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() {
-
-
-
-
-
-
@@ -176,6 +171,10 @@ export default function ImportRoutes() {
game="sdvx"
/>
+
+
+
+
>
)}