Compare commits
4 Commits
renovate/m
...
main
Author | SHA1 | Date | |
---|---|---|---|
6b5b8bb54f | |||
403c34befd | |||
0185a9ed3e | |||
47a255e48a |
@ -1,10 +1,10 @@
|
||||
REACT_APP_HTTP_PROXY=https://proxy.fascinated.cc
|
||||
REACT_APP_HTTP_PROXY=<https://proxy.fascinated.cc>
|
||||
|
||||
REACT_APP_SITE_NAME=BeatSaber Overlay
|
||||
REACT_APP_SITE_TITLE=BeatSaber Overlay - Simple and easy to use BeatSaber overlay
|
||||
REACT_APP_SITE_DESCRIPTION=ScoreSaber and BeatLeader overlay for Twitch streamers - Elevate your Beat Saber streams with our professional, customizable overlay that displays your real-time scores, rankings, and leaderboard information for your viewers.
|
||||
REACT_APP_SITE_COLOR=0EBFE9
|
||||
REACT_APP_SITE_URL=http://localhost:3000
|
||||
REACT_APP_SITE_URL=<http://localhost:3000>
|
||||
|
||||
REDIS_PORT=6379
|
||||
REDIS_HOST=localhost
|
||||
|
@ -20,7 +20,7 @@
|
||||
"core-js-pure": "^3.33.0",
|
||||
"critters": "^0.0.20",
|
||||
"ioredis": "^5.3.2",
|
||||
"next": "^14.0.0",
|
||||
"next": "^13.5.4",
|
||||
"next-seo": "^6.1.0",
|
||||
"next-themes": "^0.2.1",
|
||||
"prop-types": "^15.8.1",
|
||||
@ -37,7 +37,7 @@
|
||||
"@types/react": "^18.2.28",
|
||||
"@types/websocket": "^1.0.7",
|
||||
"eslint": "^8.51.0",
|
||||
"eslint-config-next": "^14.0.0",
|
||||
"eslint-config-next": "^13.5.4",
|
||||
"npm-check": "^6.0.1",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
|
96
pnpm-lock.yaml
generated
96
pnpm-lock.yaml
generated
@ -39,14 +39,14 @@ dependencies:
|
||||
specifier: ^5.3.2
|
||||
version: 5.3.2
|
||||
next:
|
||||
specifier: ^14.0.0
|
||||
version: 14.0.0(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0)
|
||||
specifier: ^13.5.4
|
||||
version: 13.5.4(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0)
|
||||
next-seo:
|
||||
specifier: ^6.1.0
|
||||
version: 6.1.0(next@14.0.0)(react-dom@18.2.0)(react@18.2.0)
|
||||
version: 6.1.0(next@13.5.4)(react-dom@18.2.0)(react@18.2.0)
|
||||
next-themes:
|
||||
specifier: ^0.2.1
|
||||
version: 0.2.1(next@14.0.0)(react-dom@18.2.0)(react@18.2.0)
|
||||
version: 0.2.1(next@13.5.4)(react-dom@18.2.0)(react@18.2.0)
|
||||
prop-types:
|
||||
specifier: ^15.8.1
|
||||
version: 15.8.1
|
||||
@ -86,8 +86,8 @@ devDependencies:
|
||||
specifier: ^8.51.0
|
||||
version: 8.51.0
|
||||
eslint-config-next:
|
||||
specifier: ^14.0.0
|
||||
version: 14.0.0(eslint@8.51.0)(typescript@5.2.2)
|
||||
specifier: ^13.5.4
|
||||
version: 13.5.4(eslint@8.51.0)(typescript@5.2.2)
|
||||
npm-check:
|
||||
specifier: ^6.0.1
|
||||
version: 6.0.1
|
||||
@ -528,18 +528,18 @@ packages:
|
||||
'@jridgewell/resolve-uri': 3.1.1
|
||||
'@jridgewell/sourcemap-codec': 1.4.15
|
||||
|
||||
/@next/env@14.0.0:
|
||||
resolution: {integrity: sha512-cIKhxkfVELB6hFjYsbtEeTus2mwrTC+JissfZYM0n+8Fv+g8ucUfOlm3VEDtwtwydZ0Nuauv3bl0qF82nnCAqA==}
|
||||
/@next/env@13.5.4:
|
||||
resolution: {integrity: sha512-LGegJkMvRNw90WWphGJ3RMHMVplYcOfRWf2Be3td3sUa+1AaxmsYyANsA+znrGCBjXJNi4XAQlSoEfUxs/4kIQ==}
|
||||
dev: false
|
||||
|
||||
/@next/eslint-plugin-next@14.0.0:
|
||||
resolution: {integrity: sha512-Ye37nNI09V3yt7pzuzSQtwlvuJ2CGzFszHXkcTHHZgNr7EhTMFLipn3VSJChy+e5+ahTdNApPphc3qCPUsn10A==}
|
||||
/@next/eslint-plugin-next@13.5.4:
|
||||
resolution: {integrity: sha512-vI94U+D7RNgX6XypSyjeFrOzxGlZyxOplU0dVE5norIfZGn/LDjJYPHdvdsR5vN1eRtl6PDAsOHmycFEOljK5A==}
|
||||
dependencies:
|
||||
glob: 7.1.7
|
||||
dev: true
|
||||
|
||||
/@next/swc-darwin-arm64@14.0.0:
|
||||
resolution: {integrity: sha512-HQKi159jCz4SRsPesVCiNN6tPSAFUkOuSkpJsqYTIlbHLKr1mD6be/J0TvWV6fwJekj81bZV9V/Tgx3C2HO9lA==}
|
||||
/@next/swc-darwin-arm64@13.5.4:
|
||||
resolution: {integrity: sha512-Df8SHuXgF1p+aonBMcDPEsaahNo2TCwuie7VXED4FVyECvdXfRT9unapm54NssV9tF3OQFKBFOdlje4T43VO0w==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
@ -547,8 +547,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-darwin-x64@14.0.0:
|
||||
resolution: {integrity: sha512-4YyQLMSaCgX/kgC1jjF3s3xSoBnwHuDhnF6WA1DWNEYRsbOOPWjcYhv8TKhRe2ApdOam+VfQSffC4ZD+X4u1Cg==}
|
||||
/@next/swc-darwin-x64@13.5.4:
|
||||
resolution: {integrity: sha512-siPuUwO45PnNRMeZnSa8n/Lye5ZX93IJom9wQRB5DEOdFrw0JjOMu1GINB8jAEdwa7Vdyn1oJ2xGNaQpdQQ9Pw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
@ -556,8 +556,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-linux-arm64-gnu@14.0.0:
|
||||
resolution: {integrity: sha512-io7fMkJ28Glj7SH8yvnlD6naIhRDnDxeE55CmpQkj3+uaA2Hko6WGY2pT5SzpQLTnGGnviK85cy8EJ2qsETj/g==}
|
||||
/@next/swc-linux-arm64-gnu@13.5.4:
|
||||
resolution: {integrity: sha512-l/k/fvRP/zmB2jkFMfefmFkyZbDkYW0mRM/LB+tH5u9pB98WsHXC0WvDHlGCYp3CH/jlkJPL7gN8nkTQVrQ/2w==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
@ -565,8 +565,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-linux-arm64-musl@14.0.0:
|
||||
resolution: {integrity: sha512-nC2h0l1Jt8LEzyQeSs/BKpXAMe0mnHIMykYALWaeddTqCv5UEN8nGO3BG8JAqW/Y8iutqJsaMe2A9itS0d/r8w==}
|
||||
/@next/swc-linux-arm64-musl@13.5.4:
|
||||
resolution: {integrity: sha512-YYGb7SlLkI+XqfQa8VPErljb7k9nUnhhRrVaOdfJNCaQnHBcvbT7cx/UjDQLdleJcfyg1Hkn5YSSIeVfjgmkTg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
@ -574,8 +574,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-linux-x64-gnu@14.0.0:
|
||||
resolution: {integrity: sha512-Wf+WjXibJQ7hHXOdNOmSMW5bxeJHVf46Pwb3eLSD2L76NrytQlif9NH7JpHuFlYKCQGfKfgSYYre5rIfmnSwQw==}
|
||||
/@next/swc-linux-x64-gnu@13.5.4:
|
||||
resolution: {integrity: sha512-uE61vyUSClnCH18YHjA8tE1prr/PBFlBFhxBZis4XBRJoR+txAky5d7gGNUIbQ8sZZ7LVkSVgm/5Fc7mwXmRAg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
@ -583,8 +583,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-linux-x64-musl@14.0.0:
|
||||
resolution: {integrity: sha512-WTZb2G7B+CTsdigcJVkRxfcAIQj7Lf0ipPNRJ3vlSadU8f0CFGv/ST+sJwF5eSwIe6dxKoX0DG6OljDBaad+rg==}
|
||||
/@next/swc-linux-x64-musl@13.5.4:
|
||||
resolution: {integrity: sha512-qVEKFYML/GvJSy9CfYqAdUexA6M5AklYcQCW+8JECmkQHGoPxCf04iMh7CPR7wkHyWWK+XLt4Ja7hhsPJtSnhg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
@ -592,8 +592,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-win32-arm64-msvc@14.0.0:
|
||||
resolution: {integrity: sha512-7R8/x6oQODmNpnWVW00rlWX90sIlwluJwcvMT6GXNIBOvEf01t3fBg0AGURNKdTJg2xNuP7TyLchCL7Lh2DTiw==}
|
||||
/@next/swc-win32-arm64-msvc@13.5.4:
|
||||
resolution: {integrity: sha512-mDSQfqxAlfpeZOLPxLymZkX0hYF3juN57W6vFHTvwKlnHfmh12Pt7hPIRLYIShk8uYRsKPtMTth/EzpwRI+u8w==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
@ -601,8 +601,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-win32-ia32-msvc@14.0.0:
|
||||
resolution: {integrity: sha512-RLK1nELvhCnxaWPF07jGU4x3tjbyx2319q43loZELqF0+iJtKutZ+Lk8SVmf/KiJkYBc7Cragadz7hb3uQvz4g==}
|
||||
/@next/swc-win32-ia32-msvc@13.5.4:
|
||||
resolution: {integrity: sha512-aoqAT2XIekIWoriwzOmGFAvTtVY5O7JjV21giozBTP5c6uZhpvTWRbmHXbmsjZqY4HnEZQRXWkSAppsIBweKqw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [ia32]
|
||||
os: [win32]
|
||||
@ -610,8 +610,8 @@ packages:
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@next/swc-win32-x64-msvc@14.0.0:
|
||||
resolution: {integrity: sha512-g6hLf1SUko+hnnaywQQZzzb3BRecQsoKkF3o/C+F+dOA4w/noVAJngUVkfwF0+2/8FzNznM7ofM6TGZO9svn7w==}
|
||||
/@next/swc-win32-x64-msvc@13.5.4:
|
||||
resolution: {integrity: sha512-cyRvlAxwlddlqeB9xtPSfNSCRy8BOa4wtMo0IuI9P7Y0XT2qpDrpFKRyZ7kUngZis59mPVla5k8X1oOJ8RxDYg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@ -2740,8 +2740,8 @@ packages:
|
||||
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
/eslint-config-next@14.0.0(eslint@8.51.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-jtXeE+/pGQ3h9n11QyyuPN50kO13GO5XvjU5ZRq6W+XTpOMjyobWmK2s7aowy0FtzA49krJzYzEU9s1RMwoJ6g==}
|
||||
/eslint-config-next@13.5.4(eslint@8.51.0)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-FzQGIj4UEszRX7fcRSJK6L1LrDiVZvDFW320VVntVKh3BSU8Fb9kpaoxQx0cdFgf3MQXdeSbrCXJ/5Z/NndDkQ==}
|
||||
peerDependencies:
|
||||
eslint: ^7.23.0 || ^8.0.0
|
||||
typescript: '>=3.3.1'
|
||||
@ -2749,7 +2749,7 @@ packages:
|
||||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@next/eslint-plugin-next': 14.0.0
|
||||
'@next/eslint-plugin-next': 13.5.4
|
||||
'@rushstack/eslint-patch': 1.5.1
|
||||
'@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
|
||||
eslint: 8.51.0
|
||||
@ -4214,26 +4214,26 @@ packages:
|
||||
/natural-compare@1.4.0:
|
||||
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
|
||||
|
||||
/next-seo@6.1.0(next@14.0.0)(react-dom@18.2.0)(react@18.2.0):
|
||||
/next-seo@6.1.0(next@13.5.4)(react-dom@18.2.0)(react@18.2.0):
|
||||
resolution: {integrity: sha512-iMBpFoJsR5zWhguHJvsoBDxDSmdYTHtnVPB1ij+CD0NReQCP78ZxxbdL9qkKIf4oEuZEqZkrjAQLB0bkII7RYA==}
|
||||
peerDependencies:
|
||||
next: ^8.1.1-canary.54 || >=9.0.0
|
||||
react: '>=16.0.0'
|
||||
react-dom: '>=16.0.0'
|
||||
dependencies:
|
||||
next: 14.0.0(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0)
|
||||
next: 13.5.4(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0)
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0(react@18.2.0)
|
||||
dev: false
|
||||
|
||||
/next-themes@0.2.1(next@14.0.0)(react-dom@18.2.0)(react@18.2.0):
|
||||
/next-themes@0.2.1(next@13.5.4)(react-dom@18.2.0)(react@18.2.0):
|
||||
resolution: {integrity: sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==}
|
||||
peerDependencies:
|
||||
next: '*'
|
||||
react: '*'
|
||||
react-dom: '*'
|
||||
dependencies:
|
||||
next: 14.0.0(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0)
|
||||
next: 13.5.4(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0)
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0(react@18.2.0)
|
||||
dev: false
|
||||
@ -4242,9 +4242,9 @@ packages:
|
||||
resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}
|
||||
dev: false
|
||||
|
||||
/next@14.0.0(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0):
|
||||
resolution: {integrity: sha512-J0jHKBJpB9zd4+c153sair0sz44mbaCHxggs8ryVXSFBuBqJ8XdE9/ozoV85xGh2VnSjahwntBZZgsihL9QznA==}
|
||||
engines: {node: '>=18.17.0'}
|
||||
/next@13.5.4(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0):
|
||||
resolution: {integrity: sha512-+93un5S779gho8y9ASQhb/bTkQF17FNQOtXLKAj3lsNgltEcF0C5PMLLncDmH+8X1EnJH1kbqAERa29nRXqhjA==}
|
||||
engines: {node: '>=16.14.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@opentelemetry/api': ^1.1.0
|
||||
@ -4257,7 +4257,7 @@ packages:
|
||||
sass:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@next/env': 14.0.0
|
||||
'@next/env': 13.5.4
|
||||
'@swc/helpers': 0.5.2
|
||||
busboy: 1.6.0
|
||||
caniuse-lite: 1.0.30001549
|
||||
@ -4267,15 +4267,15 @@ packages:
|
||||
styled-jsx: 5.1.1(@babel/core@7.23.2)(react@18.2.0)
|
||||
watchpack: 2.4.0
|
||||
optionalDependencies:
|
||||
'@next/swc-darwin-arm64': 14.0.0
|
||||
'@next/swc-darwin-x64': 14.0.0
|
||||
'@next/swc-linux-arm64-gnu': 14.0.0
|
||||
'@next/swc-linux-arm64-musl': 14.0.0
|
||||
'@next/swc-linux-x64-gnu': 14.0.0
|
||||
'@next/swc-linux-x64-musl': 14.0.0
|
||||
'@next/swc-win32-arm64-msvc': 14.0.0
|
||||
'@next/swc-win32-ia32-msvc': 14.0.0
|
||||
'@next/swc-win32-x64-msvc': 14.0.0
|
||||
'@next/swc-darwin-arm64': 13.5.4
|
||||
'@next/swc-darwin-x64': 13.5.4
|
||||
'@next/swc-linux-arm64-gnu': 13.5.4
|
||||
'@next/swc-linux-arm64-musl': 13.5.4
|
||||
'@next/swc-linux-x64-gnu': 13.5.4
|
||||
'@next/swc-linux-x64-musl': 13.5.4
|
||||
'@next/swc-win32-arm64-msvc': 13.5.4
|
||||
'@next/swc-win32-ia32-msvc': 13.5.4
|
||||
'@next/swc-win32-x64-msvc': 13.5.4
|
||||
transitivePeerDependencies:
|
||||
- '@babel/core'
|
||||
- babel-plugin-macros
|
||||
|
@ -35,11 +35,7 @@ export async function getMapData(hash: string): Promise<MapData | undefined> {
|
||||
}
|
||||
|
||||
const before = Date.now();
|
||||
const response = await axios.get(BEATSAVER_MAP_API.replace("%s", mapHash), {
|
||||
headers: {
|
||||
"X-Requested-With": "BeatSaber Overlay",
|
||||
},
|
||||
});
|
||||
const response = await axios.get(BEATSAVER_MAP_API.replace("%s", mapHash));
|
||||
if (response.status === 404) {
|
||||
return undefined;
|
||||
}
|
||||
|
@ -3,12 +3,7 @@ import LeaderboardType from "../../consts/LeaderboardType";
|
||||
|
||||
export async function getPlayerData(leaderboardType, playerId) {
|
||||
const data = await axios.get(
|
||||
LeaderboardType[leaderboardType].ApiUrl.PlayerData.replace("%s", playerId),
|
||||
{
|
||||
headers: {
|
||||
"x-requested-with": "BeatSaber Overlay",
|
||||
},
|
||||
}
|
||||
LeaderboardType[leaderboardType].ApiUrl.PlayerData.replace("%s", playerId)
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
@ -41,12 +41,7 @@ export default async function handler(req, res) {
|
||||
|
||||
const before = Date.now();
|
||||
const reesponse = await axios.get(
|
||||
WebsiteTypes.BeatLeader.ApiUrl.MapData.replace("%h", mapHash),
|
||||
{
|
||||
headers: {
|
||||
"X-Requested-With": "BeatSaber Overlay",
|
||||
},
|
||||
}
|
||||
WebsiteTypes.BeatLeader.ApiUrl.MapData.replace("%h", mapHash)
|
||||
);
|
||||
if (reesponse.status === 404) {
|
||||
return res.status(404).json({
|
||||
|
@ -40,12 +40,7 @@ export default async function handler(req, res) {
|
||||
WebsiteTypes.ScoreSaber.ApiUrl.MapData.replace("%h", mapHash).replace(
|
||||
"%d",
|
||||
diffToScoreSaberDiff(difficulty)
|
||||
),
|
||||
{
|
||||
headers: {
|
||||
"X-Requested-With": "BeatSaber Overlay",
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
if (response.status === 404) {
|
||||
return res.status(404).json({
|
||||
|
@ -63,6 +63,21 @@ export default function Overlay(props) {
|
||||
<SongInfo />
|
||||
<ScoreStats />
|
||||
<CutStats />
|
||||
|
||||
<p
|
||||
style={{
|
||||
fontSize: 50,
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
right: 0,
|
||||
paddingRight: "10px",
|
||||
}}
|
||||
>
|
||||
This overlay is deprecated use:{" "}
|
||||
<a href="https://ssr.fascinated.cc/overlay/builder">
|
||||
https://ssr.fascinated.cc/overlay/builder
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -30,11 +30,7 @@ export const usePlayerDataStore = create<PlayerDataState>()((set) => ({
|
||||
const apiUrl = Utils.getWebsiteApi(
|
||||
leaderboardType
|
||||
).ApiUrl.PlayerData.replace("%s", playerId);
|
||||
const response = await axios.get(apiUrl, {
|
||||
headers: {
|
||||
"x-requested-with": "BeatSaber Overlay",
|
||||
},
|
||||
});
|
||||
const response = await axios.get(apiUrl);
|
||||
if (response.status !== 200) {
|
||||
return;
|
||||
}
|
||||
|
@ -20,11 +20,7 @@ export default class Utils {
|
||||
}
|
||||
|
||||
static async isLeaderboardValid(url, steamId) {
|
||||
const response = await axios.get(url.replace("%s", steamId), {
|
||||
headers: {
|
||||
"X-Requested-With": "BeatSaber Overlay",
|
||||
},
|
||||
});
|
||||
const response = await axios.get(url.replace("%s", steamId));
|
||||
if (response.status === 429) {
|
||||
return true; // Just assume it's true is we are rate limited
|
||||
}
|
||||
|
Reference in New Issue
Block a user