From babaaa631d8c3a46be3b9fe23e643b971333937b Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 26 Oct 2025 14:47:50 -0700 Subject: generalize eamusement userscript method into 1 template modal --- .../src/components/modals/DanceAroundModal.tsx | 159 --------------------- 1 file changed, 159 deletions(-) delete mode 100644 frontend/src/components/modals/DanceAroundModal.tsx (limited to 'frontend/src/components/modals/DanceAroundModal.tsx') diff --git a/frontend/src/components/modals/DanceAroundModal.tsx b/frontend/src/components/modals/DanceAroundModal.tsx deleted file mode 100644 index 43c71eb..0000000 --- a/frontend/src/components/modals/DanceAroundModal.tsx +++ /dev/null @@ -1,159 +0,0 @@ -import type { SupportedGame } from "../../types/game"; - -interface DanceAroundModalProps { - isOpen: boolean; - onClose: () => void; - game: SupportedGame | undefined; - renderAsCard?: () => void; -} - -const DanceAroundModal = ({ - isOpen, - onClose, - game, - renderAsCard, -}: DanceAroundModalProps) => { - if (renderAsCard) { - return ( -
-
- - - -
-

- Dance aROUND e-amusement Play History -

-

- Import via scraping your Dance aROUND playdata from KONAMI e-amusement -

- -
- ); - } - - 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 Dance aROUND Data -

-

- Follow the instructions below to import your data -

-
- - {/* Warning */} -
-

- You may or may need to be subscribed to{" "} - - KONAMI's e-amusement Basic and/or Premium course - {" "} - to view a exportable playdata history for certain games. -

-
- - {/* Instructions */} -
-

- Instructions: -

-
    -
  1. - Log into the{" "} - - DANCE aROUND e-amusement page - -
  2. -
  3. - Navigate to the{" "} - - DANCE aROUND Play History Page - {" "} -
  4. -
  5. - Install the relevant userscript (use a browser extension such as{" "} - Tampermonkey) -
  6. - {/* Additional Info */} - -
  7. - A button will appear on the page that you can click to start the scraping process. -
  8. -
  9. - Upload the resulting JSON file into Mirage using the - Batch-Manual Upload functionality -
  10. -
  11. Verify that all data has been imported correctly
  12. -
-
- - - {/* Actions */} -
- -
-
-
-
- ); -}; - -export default DanceAroundModal; -- cgit v1.2.3