3 Commits

Author SHA1 Message Date
68483e10ef chore(deps): update dependency eslint to v9 2024-04-17 00:57:18 +00:00
47b8116fd7 update readme
All checks were successful
Publish / deploy (push) Successful in 45s
2023-11-22 15:44:16 +00:00
394e65d0da add usage instead of saying missing values
All checks were successful
Publish / deploy (push) Successful in 44s
2023-11-22 15:42:29 +00:00
4 changed files with 1745 additions and 1439 deletions

View File

@ -12,3 +12,5 @@ Example:
- ID: Your scoresaber ID
- Rank: The rank you want to get to
- Started: The time you started the song in miliseconds. You can get this at <https://www.unixtimestamp.com>
You can remove the &started= part if you don't want the day counter.

View File

@ -21,7 +21,7 @@
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"eslint": "^8",
"eslint": "^9.0.0",
"eslint-config-next": "14.0.3"
}
}

3157
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -53,25 +53,24 @@ export default function Home() {
setInterval(updateRank, 1000 * 60 * 1); // update every minute
}, [mounted, updateRank]);
if (!playerId) {
if (!playerId || !rank) {
return (
<main className="text-xl text-white">
<p>Invalid or missing player ID</p>
</main>
);
}
if (!rank) {
return (
<main className="text-xl text-white">
<p>Invalid or missing rank</p>
<main className="text-xl p-2 text-black">
<p>
Usage:{" "}
<span className="text-blue-500">
<a href="https://git.fascinated.cc/Fascinated/scoresaber-pp-to-rank-overlay#usage">
https://git.fascinated.cc/Fascinated/scoresaber-pp-to-rank-overlay#usage
</a>
</span>
</p>
</main>
);
}
if (!ppDiff) {
return (
<main className="text-xl text-white">
<main className="text-xl p-2 text-white">
<p>Calculating...</p>
</main>
);