aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/pages/Import.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-17 13:40:45 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-17 13:40:45 -0800
commit0c5cf111b3d59474825d07224598637c9d34c481 (patch)
tree842d8e24eb75bea23df5375622ccc0bcd2672dcd /frontend/src/pages/Import.tsx
parentcc197c39c06eabcb3cb38fc7cca6b13792b137d5 (diff)
add FLO/EAG Dancerush import methodsHEADmain
Diffstat (limited to 'frontend/src/pages/Import.tsx')
-rw-r--r--frontend/src/pages/Import.tsx38
1 files changed, 36 insertions, 2 deletions
diff --git a/frontend/src/pages/Import.tsx b/frontend/src/pages/Import.tsx
index 65aabc8..8dc9eec 100644
--- a/frontend/src/pages/Import.tsx
+++ b/frontend/src/pages/Import.tsx
@@ -19,7 +19,7 @@ const EagleUserscriptModal = lazy(() => import("../components/modals/EagleUsersc
const TaikoDonderHirobaModal = lazy(() => import("../components/modals/TaikoDonderHirobaModal"));
const TaikoEGTSModal = lazy(() => import("../components/modals/TaikoEGTSModal"));
-type ModalType = 'json' | 'dancerush' | 'dancearound' | 'divanet' | 'musicdiver' | 'nostalgiaFlower' | 'nostalgiaEagle' | 'reflecbeatFlower' | 'reflecbeatEagle' | 'taiko' | 'taikoEGTS';
+type ModalType = 'json' | 'dancerush' | 'dancerushFlower' | 'dancerushEagle' | 'dancearound' | 'divanet' | 'musicdiver' | 'nostalgiaFlower' | 'nostalgiaEagle' | 'reflecbeatFlower' | 'reflecbeatEagle' | 'taiko' | 'taikoEGTS';
const Import = () => {
const { user, isLoading, logout } = useAuth();
@@ -144,6 +144,14 @@ const Import = () => {
mainGameName="DANCERUSH"
onClick={() => setOpenModal('dancerush')}
/>
+ <FlowerUserscriptCard
+ mainGameName="DANCERUSH"
+ onClick={() => setOpenModal('dancerushFlower')}
+ />
+ <EagleUserscriptCard
+ mainGameName="DANCERUSH"
+ onClick={() => setOpenModal('dancerushEagle')}
+ />
</>
);
case "dancearound":
@@ -353,6 +361,32 @@ const Import = () => {
}]}
/>
)}
+ {openModal === 'dancerushFlower' && (
+ <FlowerUserscriptModal
+ isOpen={true}
+ onClose={() => setOpenModal(null)}
+ mainGameName="DANCERUSH"
+ userPage="https://projectflower.eu"
+ importPage="https://projectflower.eu/game/dancerush/profile/7414"
+ scripts={[{
+ name: "Flower Play History (Exports only the page you are on)",
+ url: "https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/dancerush/flower/dancerush_flower_scraper.user.js"
+ }]}
+ />
+ )}
+ {openModal === 'dancerushEagle' && (
+ <EagleUserscriptModal
+ isOpen={true}
+ onClose={() => setOpenModal(null)}
+ mainGameName="DANCERUSH"
+ userPage="https://eagle.ac"
+ importPage="https://eagle.ac/game/dancerush/profile/7414"
+ scripts={[{
+ name: "Eagle Play History (Exports only the page you are on)",
+ url: "https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/dancerush/flower/dancerush_flower_scraper.user.js"
+ }]}
+ />
+ )}
{openModal === 'dancearound' && (
<EamusementUserscriptModal
isOpen={true}
@@ -405,7 +439,7 @@ const Import = () => {
onClose={() => setOpenModal(null)}
mainGameName="NOSTALGIA"
userPage="https://eagle.ac"
- importPage="https://eagle.ac/game/nostalgia/54827307"
+ importPage="https://eagle.ac/game/nostalgia/43711497"
scripts={[{
name: "Eagle Play History (Exports only the page you are on)",
url: "https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/nostalgia/flower/nostalgia_flower_scraper.user.js"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage