diff --git a/.cursorignore b/.cursorignore new file mode 100644 index 0000000..0a53bb1 --- /dev/null +++ b/.cursorignore @@ -0,0 +1,2 @@ +.env +archive \ No newline at end of file diff --git a/.gitignore b/.gitignore index 17600a4..4464c3f 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ Thumbs.db vite.config.js.timestamp-* vite.config.ts.timestamp-* .data + +.env +archive \ No newline at end of file diff --git a/src/lib/assets/beatleader-logo.png b/src/lib/assets/beatleader-logo.png new file mode 100644 index 0000000..4227f10 Binary files /dev/null and b/src/lib/assets/beatleader-logo.png differ diff --git a/src/lib/components/NavBar.svelte b/src/lib/components/NavBar.svelte index 62a0b2e..4cc3f86 100644 --- a/src/lib/components/NavBar.svelte +++ b/src/lib/components/NavBar.svelte @@ -1,4 +1,7 @@
@@ -24,7 +101,30 @@ {#each links as link} {link.label} {/each} - Compare Players + {#if checkingSession} + Connecting… + {:else if user} + + BeatLeader avatar + {user.name ?? 'BeatLeader user'} + + {:else} + + BeatLeader + Login + + {/if} - - -
-
Redirect URL
-
- {origin}/auth/beatleader/callback - -
-
-
-
Scopes
- scp:profile{scopes.includes('scp:offline_access') ? ',scp:offline_access' : ''} -
- - -
  • - After creation, copy the shown client secret and paste both values below to save locally. -
  • - - - - {#if existing} -
    -
    Existing credentials found.
    -
    Client ID: {existing.client_id}
    -
    Client Secret: {existing.client_secret}
    -
    - {/if} - -
    - Enter credentials manually -
    -
    - - -
    -
    - - -
    -
    - -
    -
    -
    - - - - {#if message} -
    {message}
    - {/if} - - {#if created} -
    -
    Client ID: {created.clientId}
    -
    Client Secret: {created.clientSecret}
    - -
    - {/if} - - -