aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--frontend/src/components/modals/MusicDiverModal.tsx24
-rw-r--r--frontend/src/pages/Import.tsx27
-rw-r--r--scripts/musicdiver/README.md5
3 files changed, 42 insertions, 14 deletions
diff --git a/frontend/src/components/modals/MusicDiverModal.tsx b/frontend/src/components/modals/MusicDiverModal.tsx
index a8672fc..0113bf5 100644
--- a/frontend/src/components/modals/MusicDiverModal.tsx
+++ b/frontend/src/components/modals/MusicDiverModal.tsx
@@ -16,9 +16,9 @@ const MusicDiverMyPageModal = ({
if (renderAsCard) {
return (
<div className="bg-slate-800 rounded-lg border border-slate-700 p-6 hover:border-violet-500 transition-colors">
- <div className="w-12 h-12 bg-green-600/20 rounded-lg flex items-center justify-center mb-4">
+ <div className="w-12 h-12 bg-blue-600/20 rounded-lg flex items-center justify-center mb-4">
<svg
- className="w-6 h-6 text-green-400"
+ className="w-6 h-6 text-blue-400"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
@@ -35,11 +35,11 @@ const MusicDiverMyPageModal = ({
MUSIC DIVER MyPage
</h4>
<p className="text-slate-400 text-sm mb-4">
- Import Play History via MUSIC DIVER MyPage
+ Import Play History via MUSIC DIVER MyPage (with and without Diver Pass)
</p>
<button
onClick={renderAsCard}
- className="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-3 sm:px-4 rounded-md text-sm sm:text-base font-medium transition-colors"
+ className="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-3 sm:px-4 rounded-md text-sm sm:text-base font-medium transition-colors"
>
Export MyPage
</button>
@@ -75,6 +75,14 @@ const MusicDiverMyPageModal = ({
Follow the instructions below to import your data
</p>
</div>
+ {/* Warning */}
+ <div className="mb-6 rounded-md bg-blue-500/10 border border-blue-500/20 p-3">
+ <p className="text-sm text-blue-400">
+ You need to be subscribed to Diver Pass to view playdata beyond the last 5 charts played.<br/>
+ You can purchase Diver Pass on MUSIC DIVER cabinets after carding in.
+ </p>
+ </div>
+
{/* Instructions */}
<div className="mb-4 rounded-md bg-slate-800 border border-slate-700 p-4">
@@ -84,20 +92,20 @@ const MusicDiverMyPageModal = ({
<ol className="text-sm text-slate-400 space-y-1 list-decimal list-inside">
<li>Log into your <a href="https://mypage.musicdiver.jp">MUSIC DIVER MyPage account</a></li>
<li>
- Navigate to the <a href="">Play History (プレイ履歴) Page</a>
+ Click the 3 dots on the top right Navigate to the <a href="https://mypage.musicdiver.jp/record?view=history">Record Page</a>
</li>
<li>
Install the appropriate userscript to your browser (use an extension such
as Tampermonkey).
</li>
{/* Additional Info */}
- <div className="mb-6 rounded-md bg-blue-500/10 border border-blue-500/20 p-3">
+ <div className="my-2 rounded-md bg-blue-500/10 border border-blue-500/20 p-3">
<p className="text-sm text-blue-400">
<a
- href="https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/projectdiva-arcade/diva_net_history.user.js"
+ href="https://github.com/pinapelz/Mirage/raw/refs/heads/main/scripts/musicdiver/musicdiver_recent_history.user.js"
className="underline"
>
- DIVA.NET Recently Played Score Export Userscript (Last 20 Played)
+ MyPage Recently Played Score Export Userscript
</a>
</p>
</div>
diff --git a/frontend/src/pages/Import.tsx b/frontend/src/pages/Import.tsx
index 0de1b2d..c72f597 100644
--- a/frontend/src/pages/Import.tsx
+++ b/frontend/src/pages/Import.tsx
@@ -10,6 +10,7 @@ const JsonUploadModal = lazy(() => import("../components/modals/JsonUploadModal"
const DancerushModal = lazy(() => import("../components/modals/DancerushModal"));
const DanceAroundModal = lazy(() => import("../components/modals/DanceAroundModal"));
const DivaNetModal = lazy(() => import("../components/modals/DivaNetModal"));
+const MusicDiverModal = lazy(() => import("../components/modals/MusicDiverModal"));
const Import = () => {
const { user, isLoading, logout } = useAuth();
@@ -19,6 +20,7 @@ const Import = () => {
const [isDancerushModalOpen, setIsDancerushModalOpen] = useState(false);
const [isDanceAroundModalOpen, setIsDanceAroundModalOpen] = useState(false);
const [isDivaNetModalOpen, setIsDivaNetModalOpen] = useState(false);
+ const [isMusicDiverModalOpen, setIsMusicDiverModalOpen] = useState(false);
const [supportedGames, setSupportedGames] = useState<SupportedGame[]>([]);
const [gamesLoading, setGamesLoading] = useState(true);
const [uploadStatus, setUploadStatus] = useState<{
@@ -142,7 +144,6 @@ const Import = () => {
/>
</>
);
- break;
case "dancearound":
return (
<>
@@ -155,7 +156,6 @@ const Import = () => {
/>
</>
);
- break;
case "diva":
return (
<>
@@ -168,7 +168,18 @@ const Import = () => {
/>
</>
);
- break;
+ case "musicdiver":
+ return (
+ <>
+ <JsonUploadCard />
+ <MusicDiverModal
+ isOpen={false}
+ onClose={() => {}}
+ game={supportedGames.find((g) => g.internalName === selectedGame)}
+ renderAsCard={() => setIsMusicDiverModalOpen(true)}
+ />
+ </>
+ );
default:
return <JsonUploadCard />;
}
@@ -318,6 +329,16 @@ const Import = () => {
}
/>
)}
+ {isMusicDiverModalOpen && (
+ <MusicDiverModal
+ isOpen={isMusicDiverModalOpen}
+ onClose={() => setIsMusicDiverModalOpen(false)}
+ game={
+ supportedGames.find((g) => g.internalName === selectedGame) ||
+ undefined
+ }
+ />
+ )}
</Suspense>
</div>
);
diff --git a/scripts/musicdiver/README.md b/scripts/musicdiver/README.md
index 43a2e09..c1316d0 100644
--- a/scripts/musicdiver/README.md
+++ b/scripts/musicdiver/README.md
@@ -2,8 +2,7 @@
Score Page: https://mypage.musicdiver.jp/record?view=history
-** Currently scripts are untested with DIVER PASS **
-- Without DIVER PASS, you are limited to viewing only the last 5 plays
+- Without DIVER PASS, you are limited to only the last 5 plays
*Scripts Available:*
-- [Recently Played History. Last 5 Scores](./musicdiver_recent_history.user.js) \ No newline at end of file
+- [Recently Played History](./musicdiver_recent_history.user.js)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage