3 Commits

Author SHA1 Message Date
e6f757857a chore(deps): update react monorepo to v18.2.69 2024-03-23 20:59:25 +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
3 changed files with 29 additions and 28 deletions

View File

@ -12,3 +12,5 @@ Example:
- ID: Your scoresaber ID - ID: Your scoresaber ID
- Rank: The rank you want to get to - 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> - 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.

32
pnpm-lock.yaml generated
View File

@ -21,10 +21,10 @@ devDependencies:
version: 20.9.3 version: 20.9.3
'@types/react': '@types/react':
specifier: ^18 specifier: ^18
version: 18.2.38 version: 18.2.69
'@types/react-dom': '@types/react-dom':
specifier: ^18 specifier: ^18
version: 18.2.16 version: 18.2.22
autoprefixer: autoprefixer:
specifier: ^10.0.1 specifier: ^10.0.1
version: 10.4.16(postcss@8.4.31) version: 10.4.16(postcss@8.4.31)
@ -282,26 +282,26 @@ packages:
undici-types: 5.26.5 undici-types: 5.26.5
dev: true dev: true
/@types/prop-types@15.7.11: /@types/prop-types@15.7.12:
resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==} resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==}
dev: true dev: true
/@types/react-dom@18.2.16: /@types/react-dom@18.2.22:
resolution: {integrity: sha512-766c37araZ9vxtYs25gvY2wNdFWsT2ZiUvOd0zMhTaoGj6B911N8CKQWgXXJoPMLF3J82thpRqQA7Rf3rBwyJw==} resolution: {integrity: sha512-fHkBXPeNtfvri6gdsMYyW+dW7RXFo6Ad09nLFK0VQWR7yGLai/Cyvyj696gbwYvBnhGtevUG9cET0pmUbMtoPQ==}
dependencies: dependencies:
'@types/react': 18.2.38 '@types/react': 18.2.69
dev: true dev: true
/@types/react@18.2.38: /@types/react@18.2.69:
resolution: {integrity: sha512-cBBXHzuPtQK6wNthuVMV6IjHAFkdl/FOPFIlkd81/Cd1+IqkHu/A+w4g43kaQQoYHik/ruaQBDL72HyCy1vuMw==} resolution: {integrity: sha512-W1HOMUWY/1Yyw0ba5TkCV+oqynRjG7BnteBB+B7JmAK7iw3l2SW+VGOxL+akPweix6jk2NNJtyJKpn4TkpfK3Q==}
dependencies: dependencies:
'@types/prop-types': 15.7.11 '@types/prop-types': 15.7.12
'@types/scheduler': 0.16.7 '@types/scheduler': 0.16.8
csstype: 3.1.2 csstype: 3.1.3
dev: true dev: true
/@types/scheduler@0.16.7: /@types/scheduler@0.16.8:
resolution: {integrity: sha512-8g25Nl3AuB1KulTlSUsUhUo/oBgBU6XIXQ+XURpeioEbEJvkO7qI4vDfREv3vJYHHzqXjcAHvoJy4pTtSQNZtA==} resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==}
dev: true dev: true
/@typescript-eslint/parser@6.12.0(eslint@8.54.0)(typescript@5.3.2): /@typescript-eslint/parser@6.12.0(eslint@8.54.0)(typescript@5.3.2):
@ -675,8 +675,8 @@ packages:
hasBin: true hasBin: true
dev: true dev: true
/csstype@3.1.2: /csstype@3.1.3:
resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
dev: true dev: true
/damerau-levenshtein@1.0.8: /damerau-levenshtein@1.0.8:

View File

@ -53,25 +53,24 @@ export default function Home() {
setInterval(updateRank, 1000 * 60 * 1); // update every minute setInterval(updateRank, 1000 * 60 * 1); // update every minute
}, [mounted, updateRank]); }, [mounted, updateRank]);
if (!playerId) { if (!playerId || !rank) {
return ( return (
<main className="text-xl text-white"> <main className="text-xl p-2 text-black">
<p>Invalid or missing player ID</p> <p>
</main> 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
if (!rank) { </a>
return ( </span>
<main className="text-xl text-white"> </p>
<p>Invalid or missing rank</p>
</main> </main>
); );
} }
if (!ppDiff) { if (!ppDiff) {
return ( return (
<main className="text-xl text-white"> <main className="text-xl p-2 text-white">
<p>Calculating...</p> <p>Calculating...</p>
</main> </main>
); );