Personal Site

Move all playing contents to be in the home components folder (like a sane person)

vielle.dev 7250ffe2 25fe4db2

verified
+4 -4
src/components/playing/NowPlaying.astro src/components/home/playing/NowPlaying.astro
src/components/playing/spotify/access.ts src/components/home/playing/spotify/access.ts
src/components/playing/spotify/api.ts src/components/home/playing/spotify/api.ts
src/components/playing/spotify/client.ts src/components/home/playing/spotify/client.ts
src/components/playing/spotify/errors.ts src/components/home/playing/spotify/errors.ts
src/components/playing/spotify/index.ts src/components/home/playing/spotify/index.ts
+1 -1
src/components/playing/spotify/types.ts src/components/home/playing/spotify/types.ts
··· 1 - import { isObj, type Prettify } from "../../../utils"; 1 + import { isObj, type Prettify } from "/utils"; 2 2 3 3 export type AuthToken = { 4 4 access_token: string;
+1 -1
src/pages/_callback.astro
··· 1 1 --- 2 2 import { SPOTIFY_CLIENT_ID, SPOTIFY_REDIRECT_URI } from "astro:env/server"; 3 - import { getAccessCode } from "/components/playing/spotify"; 3 + import { getAccessCode } from "/components/home/playing/spotify"; 4 4 // make a 404 if accidentally left in prod 5 5 if (import.meta.env.PROD) return Astro.redirect("/404", 404); 6 6
+1 -1
src/pages/index.astro
··· 1 1 --- 2 2 import Base from "/components/Base.astro"; 3 3 import Landing from "/components/home/Landing.astro"; 4 - import NowPlaying from "/components/playing/NowPlaying.astro"; 4 + import NowPlaying from "/components/home/playing/NowPlaying.astro"; 5 5 --- 6 6 7 7 <Base>
+1 -1
src/pages/now-playing-sse.ts
··· 2 2 spotifyNowPlaying, 3 3 SpotifyError, 4 4 type nowPlaying, 5 - } from "/components/playing/spotify"; 5 + } from "/components/home/playing/spotify"; 6 6 7 7 export async function GET() { 8 8 const update = async (): Promise<string> => {