From 48f0c423d5f167fcbd4a12e02fdf4fac9272670e Mon Sep 17 00:00:00 2001 From: Nelson Lai Date: Sun, 8 Mar 2026 16:54:06 +0800 Subject: [PATCH] refactor: remove spotify since it requires premium account --- .env.example | 7 -- src/components/layout/layout-footer.tsx | 2 - src/components/layout/now-playing.tsx | 38 ---------- src/env.ts | 4 - src/hooks/queries/stats.query.ts | 4 - src/i18n/messages/en.json | 5 -- src/i18n/messages/es.json | 5 -- src/i18n/messages/ja.json | 5 -- src/i18n/messages/pt-BR.json | 5 -- src/i18n/messages/zh-CN.json | 5 -- src/i18n/messages/zh-TW.json | 5 -- src/orpc/routers/index.ts | 2 - src/orpc/routers/spotify.router.ts | 97 ------------------------- src/orpc/schemas/spotify.schema.ts | 33 --------- 14 files changed, 217 deletions(-) delete mode 100644 src/components/layout/now-playing.tsx delete mode 100644 src/orpc/routers/spotify.router.ts delete mode 100644 src/orpc/schemas/spotify.schema.ts diff --git a/.env.example b/.env.example index 566de870d..f964a917c 100644 --- a/.env.example +++ b/.env.example @@ -23,13 +23,6 @@ IP_ADDRESS_SALT="random-passphrase" # https://www.better-auth.com/docs/installation#set-environment-variables BETTER_AUTH_SECRET="super_secret_key_32_chars_minimum" -# [Optional] -# Spotify Now Playing -# https://developer.spotify.com/documentation/web-api/reference/get-the-users-currently-playing-track -SPOTIFY_CLIENT_ID= -SPOTIFY_CLIENT_SECRET= -SPOTIFY_REFRESH_TOKEN= - # [Optional] # Dashboard page diff --git a/src/components/layout/layout-footer.tsx b/src/components/layout/layout-footer.tsx index 43c9b237b..84c8c8fe4 100644 --- a/src/components/layout/layout-footer.tsx +++ b/src/components/layout/layout-footer.tsx @@ -7,14 +7,12 @@ import { FOOTER_GROUPS } from '@/constants/navigation' import { GithubStarButton } from './github-star-button' import { LocaleSwitcher } from './locale-switcher' -import { NowPlaying } from './now-playing' export function LayoutFooter() { const t = useTranslations() return (