Skip to content

Commit

Permalink
feat: more chunithm import methods (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nxie authored Nov 29, 2023
1 parent da80175 commit ce2d3e9
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
27 changes: 27 additions & 0 deletions client/src/app/pages/dashboard/import/AquaArtemisExportPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 AquaArtemisExport() {
useSetSubheader(["Import Scores", "Aqua/ARTEMiS Exporter"]);

return (
<div>
<h1 className="text-center mb-4">What is the Aqua/ARTEMiS Exporter?</h1>
<div>
The Aqua/Artemis Exporter is a script that will export your CHUNITHM scores from an
Aqua/ARTEMiS instance to a BATCH-MANUAL JSON for import to {TachiConfig.name}. You
will need direct access to the server instance.
</div>
<Divider />
<h1 className="text-center my-4">Setup Instructions</h1>
Instructions are available on{" "}
<ExternalLink href="https://gist.github.com/beerpiss/52b0d0c85e20262ae3ab9b2c65effdda">
the GitHub gist
</ExternalLink>
.
</div>
);
}
26 changes: 26 additions & 0 deletions client/src/app/pages/dashboard/import/ChunithmMYTExportPage.tsx
Original file line number Diff line number Diff line change
@@ -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 ChunithmMYTExport() {
useSetSubheader(["Import Scores", "CHUNITHM MYT Exporter"]);

return (
<div>
<h1 className="text-center mb-4">What is the CHUNITHM Mythos Exporter?</h1>
<div>
The CHUNITHM Mythos Exporter is an userscript that will export your CHUNITHM scores
from MYT to a BATCH-MANUAL JSON for import to {TachiConfig.name}.
</div>
<Divider />
<h1 className="text-center my-4">Setup Instructions</h1>
Instructions are available on{" "}
<ExternalLink href="https://gist.github.com/beerpiss/90e7df9c6aacc5a295eb5a90dbd8d537">
the GitHub gist
</ExternalLink>
.
</div>
);
}
23 changes: 23 additions & 0 deletions client/src/app/pages/dashboard/import/ImportPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,29 @@ function ImportInfoDisplayer({ game }: { game: Game }) {
moreInfo="If you are currently playing on CHUNITHM International, you can import play data from it here."
key="CHUNITHM Site Importer"
/>,
<ImportInfoCard
name="Aqua/ARTEMiS Exporter"
href="aqua-artemis-exporter"
desc="Export your scores from an Aqua/ARTEMiS instance."
moreInfo={
<>
This is a script that exports scores from an Aqua/ARTEMiS instance. <br />
Note: You will need direct access to the server instance.
</>
}
key="Aqua/ARTEMiS Exporter"
/>,
<ImportInfoCard
name="MYT Exporter"
href="chunithm-myt-exporter"
desc="Export your scores from MYT."
moreInfo={
<>
This is an userscript that exports scores from the MYT web interface.
</>
}
key="MYT Exporter"
/>,
<ImportInfoCard
name="Chunitachi"
href="chunitachi"
Expand Down
10 changes: 10 additions & 0 deletions client/src/app/routes/ImportRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import ITGHookPage from "app/pages/dashboard/import/ITGHookPage";
import MaimaiDXSiteImportPage from "app/pages/dashboard/import/MaimaiDXSiteImportPage";
import ChunithmSiteImportPage from "app/pages/dashboard/import/ChunithmSiteImportPage";
import SaekawaPage from "app/pages/dashboard/import/SaekawaPage";
import AquaArtemisExport from "app/pages/dashboard/import/AquaArtemisExportPage";
import ChunithmMYTExport from "app/pages/dashboard/import/ChunithmMYTExportPage";

export default function ImportRoutes() {
const { user } = useContext(UserContext);
Expand Down Expand Up @@ -132,6 +134,14 @@ export default function ImportRoutes() {
<SaekawaPage />
</Route>

<Route exact path="/import/aqua-artemis-exporter">
<AquaArtemisExport />
</Route>

<Route exact path="/import/chunithm-myt-exporter">
<ChunithmMYTExport />
</Route>

<Route exact path="/import/iidx-flo">
<KAIIntegrationPage
hash="6f64b82107cea90aa4c51a33705cd57c1883c8cdc22a634730ca461a431744b3"
Expand Down

0 comments on commit ce2d3e9

Please sign in to comment.