From a2dd1a1f29e6513d48bc7f332f9c074e43a34d1a Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 12 Oct 2025 17:31:06 -0700 Subject: add diva.net script instructions to import page --- frontend/src/components/modals/EamusementModal.tsx | 49 +++++++++++++++++++++- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/modals/EamusementModal.tsx') diff --git a/frontend/src/components/modals/EamusementModal.tsx b/frontend/src/components/modals/EamusementModal.tsx index a861315..cb5c542 100644 --- a/frontend/src/components/modals/EamusementModal.tsx +++ b/frontend/src/components/modals/EamusementModal.tsx @@ -5,13 +5,54 @@ interface EamusementUploadModalProps { isOpen: boolean; onClose: () => void; game: SupportedGame | undefined; + renderAsCard?: () => void; +} + +const scriptLinkMap = { + "dancerush": "https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/dancerush/dancerush_play_history.user.js", + "dancearound": "https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/dancearound/dancearound_play_history.user.js", } const EamusementUploadModal = ({ isOpen, onClose, game, + renderAsCard }: EamusementUploadModalProps) => { + if (renderAsCard) { + return ( +
+
+ + + +
+

+ e-amusement Play History +

+

+ Import via scraping your playdata from KONAMI e-amusement +

+ +
+ ); + } + if (!isOpen) return null; const handleClose = () => { @@ -92,8 +133,12 @@ const EamusementUploadModal = ({ {/* Additional Info */}

- This feature is currently under development. Please check back - later for the full implementation. + + {game.formattedName} Userscript Download +

-- cgit v1.2.3