8 Commits

Author SHA1 Message Date
126c709775 add forked from message
All checks were successful
deploy / deploy (push) Successful in 47s
2023-10-18 06:20:08 +01:00
52e71839c0 update readme
All checks were successful
deploy / deploy (push) Successful in 47s
2023-10-18 06:13:23 +01:00
c4b8354b36 remove yarn lock
Some checks failed
deploy / deploy (push) Has been cancelled
2023-10-18 06:12:48 +01:00
Lee
95c73dbb74 Merge pull request 'chore(deps): update dependency idb to v6.1.5' (#3) from renovate/idb-6.x-lockfile into master
All checks were successful
deploy / deploy (push) Successful in 47s
Reviewed-on: #3
2023-10-18 05:06:48 +00:00
36a0b0b826 make the navbar rounded
Some checks failed
deploy / deploy (push) Has been cancelled
2023-10-18 06:05:52 +01:00
b0adf848b4 chore(deps): update dependency idb to v6.1.5 2023-10-18 05:04:13 +00:00
6cbf0a9265 Merge branch 'master' of https://git.fascinated.cc/Fascinated/scoresaber-reloaded
All checks were successful
deploy / deploy (push) Successful in 48s
2023-10-18 05:57:26 +01:00
c07f82899c fix avatars not loading if the player doesn't have a avatar 2023-10-18 05:57:23 +01:00
7 changed files with 27 additions and 1044 deletions

2
.gitignore vendored
View File

@ -3,4 +3,4 @@
node_modules
public/build
build-info.js
.env
yarn.lock

View File

@ -1,5 +1,7 @@
# ScoreSaber Reloaded
Forked from: <https://github.com/motzel/scoresaber-reloaded>
## Users
Just go to [ssr.fascinated.cc](https://ssr.fascinated.cc)
@ -9,11 +11,11 @@ Just go to [ssr.fascinated.cc](https://ssr.fascinated.cc)
### Install the dependencies
```bash
yarn install
npm install
```
### Start the dev environment
```bash
yarn dev
npm run dev
```

9
package-lock.json generated
View File

@ -707,11 +707,10 @@
}
},
"node_modules/idb": {
"version": "6.1.2",
"resolved": "https://registry.npmjs.org/idb/-/idb-6.1.2.tgz",
"integrity": "sha512-1DNDVu3yDhAZkFDlJf0t7r+GLZ248F5pTAtA7V0oVG3yjmV125qZOx3g0XpAEkGZVYQiFDAsSOnGet2bhugc3w==",
"dev": true,
"license": "ISC"
"version": "6.1.5",
"resolved": "https://registry.npmjs.org/idb/-/idb-6.1.5.tgz",
"integrity": "sha512-IJtugpKkiVXQn5Y+LteyBCNk1N8xpGV3wWZk9EVtZWH8DYkjBn0bX1XnGP9RkyZF0sAcywa6unHqSWKe7q4LGw==",
"dev": true
},
"node_modules/immer": {
"version": "9.0.5",

View File

@ -51,6 +51,8 @@ select {
max-width: 1200px;
margin: 0 auto;
border-radius: 6px;
position: relative;
opacity: var(--transparency);
}

View File

@ -1,14 +1,22 @@
<script>
import {opt} from '../../utils/js'
import { opt } from '../../utils/js';
export let player;
$: avatar = opt(player, 'playerInfo.avatar')
const avatar = opt(player, 'playerInfo.avatar')
// TEMP WORKAROUND UNTIL I MIGRATE TO NEW SS API
export let avatarr;
if (avatar.includes("oculus")) {
avatarr = "https://cdn.scoresaber.com/avatars/oculus.png"
} else {
avatarr = `https://cdn.scoresaber.com/avatars/${player.playerId}.jpg`
}
</script>
{#if avatar}
{#if avatarr}
<figure class="image is-24x24" on:click>
<img src={avatar} alt=""/>
<img src={avatarr} alt=""/>
</figure>
{/if}

View File

@ -1,5 +1,6 @@
<script>
import Spinner from '../Common/Spinner.svelte'
import { SS_CDN_HOST } from '../../network/queues/scoresaber/page-queue';
import Spinner from '../Common/Spinner.svelte';
export let playerInfo;
export let isLoading = false;
@ -10,7 +11,8 @@
<span class="no-image">?</span>
{#if playerInfo && playerInfo.avatar}
<img src={playerInfo.avatar} class="avatar" alt="" />
<!-- TEMP WORKAROUND UNTIL I MIGRATE TO NEW SS API -->
<img src={playerInfo.avatar.replace("https://new.scoresaber.com/api/static", SS_CDN_HOST)} class="avatar" alt="" />
{/if}
<span class="spinner">
<Spinner width="100%" height="100%"/>

1030
yarn.lock

File diff suppressed because it is too large Load Diff