From acb0dc5483a3c7b9d2efec0805fe7f533dcb6147 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 20 Oct 2025 16:01:47 -0700 Subject: seperate dancerush and dancearound eamuse import modals --- .../src/components/modals/DanceAroundModal.tsx | 155 +++++++++++++++++++++ 1 file changed, 155 insertions(+) create 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 new file mode 100644 index 0000000..45f1f6f --- /dev/null +++ b/frontend/src/components/modals/DanceAroundModal.tsx @@ -0,0 +1,155 @@ +import type { SupportedGame } from "../../types/game"; +import { EamuseImportInfo } from "../../types/constants"; + +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 your e-amusement account
  2. + {EamuseImportInfo["dancearound"] ? ( +
  3. + Navigate to your{" "} + + Dance aROUND score data page + {" "} + Dance aROUND score data page +
  4. + ) : ( +
  5. Navigate to your Dance aROUND score data page
  6. + )} + {EamuseImportInfo["dancearound"] ? ( +
  7. + Install the userscript to your browser (use an extension such + as Tampermonkey) +
  8. + ) : ( +
  9. + Scrape the data using any method of your choice and translate + it into a Mirage Dance aROUND compatible JSON format +
  10. + )} +
  11. Upload the resulting JSON file into Mirage using the Batch-Manual Upload functionality
  12. +
  13. Verify that all data has been imported correctly
  14. +
+
+ + {/* Additional Info */} + + + {/* Actions */} +
+ +
+
+
+
+ ); +}; + +export default DanceAroundModal; -- cgit v1.2.3