diff --git a/app/(sharing)/[token]/[id]/page.tsx b/app/(sharing)/[token]/[id]/page.tsx index da8d298..9cc1b8d 100644 --- a/app/(sharing)/[token]/[id]/page.tsx +++ b/app/(sharing)/[token]/[id]/page.tsx @@ -43,56 +43,56 @@ export default async function Share({ ); return ( -
+
-
+
{chunithm.map((song) => (
- + Song: {song.title}
))}
-
+
{chunithm.map((song) => (
- + Artist: {song.artist}
))}
-
+
{chunithm.map((song) => (
- + Score: {song.score?.toLocaleString()}
))}
-
+
{chunithm.map((song) => (
- + Rank: {getGrade(song.score ?? 0)}
))}
-
+
{chunithm.map((song) => (
- + {song.isFullCombo ? `FULL COMBO! ${song.maxCombo}` : ""} {!song.isFullCombo && ( - + Max combo: {song.maxCombo} )} @@ -104,17 +104,17 @@ export default async function Share({ {chunithm.map((song) => (
- + Justice Critcal: {song.judgeCritical! + song.judgeHeaven!} - + Justice: {song.judgeJustice} - + Attack: {song.judgeAttack} - + Miss: {song.judgeGuilty}
diff --git a/app/(sharing)/[token]/token.ts b/app/(sharing)/[token]/token.ts index b643764..9696b4e 100644 --- a/app/(sharing)/[token]/token.ts +++ b/app/(sharing)/[token]/token.ts @@ -48,22 +48,5 @@ export async function shareScore(token: string) { }; } - // Check if token has expired - // const tokenAge = - // new Date().getTime() - new Date(PublicPage.createdAt).getTime(); - // const tokenAgeLimit = 1000 * 60 * 60 * 24; // 1 day in milliseconds - - // if (tokenAge > tokenAgeLimit) { - // await daphnis.linkSharingToken.update({ - // where: { - // token, - // }, - // data: { - // tokenExpiredAt: new Date(), - // }, - // }); - // redirect("/"); - // } - return { success: true }; }