import type { SupportedGame } from "../../types/game"; interface TaikoEGTSModalProps { isOpen: boolean; onClose: () => void; game: SupportedGame | undefined; renderAsCard?: () => void; } const TaikoEGTSModal = ({ isOpen, onClose, game, renderAsCard, }: TaikoEGTSModalProps) => { if (renderAsCard) { return (

EGTS/TaikoLocalServer Import

Import Play History from EGTS Legacy WebUI or a local TaikoLocalServer instance

); } if (!isOpen) return null; const handleClose = () => { onClose(); }; if (game === undefined) { return "Sorry, due to some extreme error the game you're looking for doesn't seem to exist..."; } return (
{/* Backdrop */}
{/* Modal */}
{/* Header */}

Import {game.formattedName} EGTS Data

Follow the instructions below to import your data

{/* Warning */}

Before exporting ensure that the display language of Songs is set to Japanese, or is consistent with your other imports so that your data is consistent.

{/* Instructions */}

Instructions:

  1. Log into your the WebUI. Its assumed you already know the link if you're using this import method
  2. Install the appropriate userscript to your browser (use an extension such as Tampermonkey).
  3. {/* Additional Info */}
  4. On the WebUI, navigate to the "Play History" page and refresh.
  5. A button will appear on the page that you can click to start the scraping process.
  6. Upload the resulting JSON file into Mirage using the Batch-Manual Upload functionality
  7. Verify that all data has been imported correctly
{/* Actions */}
); }; export default TaikoEGTSModal;