Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions src/components/layout/layout-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<footer className='mx-auto mb-12 w-full max-w-5xl rounded-2xl bg-background/30 p-8 backdrop-blur-md'>
<NowPlaying className='mb-12' />
<div className='mb-30 grid grid-cols-2 gap-10 sm:grid-cols-3'>
{FOOTER_GROUPS.map((group, index) => (
<div key={index} className='flex flex-col items-start gap-4'>
Expand Down
38 changes: 0 additions & 38 deletions src/components/layout/now-playing.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ export const env = createEnv({
BETTER_AUTH_SECRET: z.string().min(1),

// Optional
SPOTIFY_CLIENT_ID: z.string().min(1).optional(),
SPOTIFY_CLIENT_SECRET: z.string().min(1).optional(),
SPOTIFY_REFRESH_TOKEN: z.string().min(1).optional(),

GOOGLE_API_KEY: z.string().min(1).optional(),
GITHUB_TOKEN: z.string().min(1).optional(),
WAKATIME_API_KEY: z.string().min(1).optional(),
Expand Down
4 changes: 0 additions & 4 deletions src/hooks/queries/stats.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ export function useViewStats() {
export function useWakatimeStats() {
return useQuery(orpc.wakatime.getStats.queryOptions({ refetchOnWindowFocus: false }))
}

export function useSpotifyStats() {
return useQuery(orpc.spotify.getStats.queryOptions())
}
5 changes: 0 additions & 5 deletions src/i18n/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"name-too-long": "Name is too long",
"need-logged-in-to-vote": "You need to be logged in to vote comments",
"not-found": "Page not found.",
"now-playing-error": "Failed to fetch Spotify data",
"reply-cannot-be-empty": "Reply cannot be empty",
"sign-in-error": "Failed to sign in. Please try again.",
"sign-out-failed": "Sign out failed. Please try again.",
Expand Down Expand Up @@ -242,10 +241,6 @@
},
"layout": {
"change-language": "Change language",
"now-playing": {
"loading": "Loading...",
"not-listening": "Not Listening - Spotify"
},
"sidebar": {
"description": "Displays the mobile sidebar.",
"title": "Sidebar"
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"name-too-long": "El nombre es demasiado largo",
"need-logged-in-to-vote": "Debes iniciar sesión para votar comentarios",
"not-found": "Página no encontrada.",
"now-playing-error": "Error al obtener datos de Spotify",
"reply-cannot-be-empty": "La respuesta no puede estar vacía",
"sign-in-error": "Error al iniciar sesión. Por favor intenta de nuevo.",
"sign-out-failed": "Error al cerrar sesión. Por favor intenta de nuevo.",
Expand Down Expand Up @@ -242,10 +241,6 @@
},
"layout": {
"change-language": "Cambiar idioma",
"now-playing": {
"loading": "Cargando...",
"not-listening": "Sin reproducción - Spotify"
},
"sidebar": {
"description": "Muestra la barra lateral móvil.",
"title": "Barra lateral"
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"name-too-long": "名前が長すぎます",
"need-logged-in-to-vote": "コメントに投票するにはログインが必要です",
"not-found": "ページが見つかりません。",
"now-playing-error": "Spotify データの取得に失敗しました",
"reply-cannot-be-empty": "返信を入力してください",
"sign-in-error": "サインインに失敗しました。もう一度お試しください。",
"sign-out-failed": "サインアウトに失敗しました。もう一度お試しください。",
Expand Down Expand Up @@ -242,10 +241,6 @@
},
"layout": {
"change-language": "言語を変更",
"now-playing": {
"loading": "読み込み中...",
"not-listening": "再生停止中 - Spotify"
},
"sidebar": {
"description": "モバイルサイドバーを表示します。",
"title": "サイドバー"
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/messages/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"name-too-long": "O nome é muito longo",
"need-logged-in-to-vote": "Você precisa estar conectado para votar nos comentários",
"not-found": "Página não encontrada.",
"now-playing-error": "Falha ao buscar dados do Spotify",
"reply-cannot-be-empty": "A resposta não pode ficar vazia",
"sign-in-error": "Falha ao entrar. Por favor, tente novamente.",
"sign-out-failed": "Falha ao sair. Por favor, tente novamente.",
Expand Down Expand Up @@ -242,10 +241,6 @@
},
"layout": {
"change-language": "Alterar idioma",
"now-playing": {
"loading": "Carregando...",
"not-listening": "Não ouvindo - Spotify"
},
"sidebar": {
"description": "Exibe a barra lateral móvel.",
"title": "Barra lateral"
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/messages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"name-too-long": "名称过长",
"need-logged-in-to-vote": "您必须登入才能投票评论",
"not-found": "找不到页面。",
"now-playing-error": "无法获取 Spotify 资料",
"reply-cannot-be-empty": "回复不能为空",
"sign-in-error": "登入失败。请再试一次。",
"sign-out-failed": "登出失败,请再试一次。",
Expand Down Expand Up @@ -242,10 +241,6 @@
},
"layout": {
"change-language": "更改语言",
"now-playing": {
"loading": "载入中...",
"not-listening": "未在收听 - Spotify"
},
"sidebar": {
"description": "显示移动端侧边栏。",
"title": "侧边栏"
Expand Down
5 changes: 0 additions & 5 deletions src/i18n/messages/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"name-too-long": "名稱過長",
"need-logged-in-to-vote": "您必須登入才能投票評論",
"not-found": "找不到頁面。",
"now-playing-error": "無法獲取 Spotify 資料",
"reply-cannot-be-empty": "回覆不能為空",
"sign-in-error": "登入失敗。請再試一次。",
"sign-out-failed": "登出失敗,請再試一次。",
Expand Down Expand Up @@ -242,10 +241,6 @@
},
"layout": {
"change-language": "更改語言",
"now-playing": {
"loading": "載入中...",
"not-listening": "未在收聽 - Spotify"
},
"sidebar": {
"description": "顯示行動版側邊欄。",
"title": "側邊欄"
Expand Down
2 changes: 0 additions & 2 deletions src/orpc/routers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { messageRouter } from './message.router'
import { r2Router } from './r2.router'
import { replyRouter } from './reply.router'
import { settingsRouter } from './settings.router'
import { spotifyRouter } from './spotify.router'
import { unsubscribeRouter } from './unsubscribe.router'
import { viewRouter } from './view.router'
import { voteRouter } from './vote.router'
Expand All @@ -18,7 +17,6 @@ export const router = {
github: githubRouter,
youtube: youtubeRouter,
wakatime: wakatimeRouter,
spotify: spotifyRouter,
view: viewRouter,
like: likeRouter,
comment: commentRouter,
Expand Down
97 changes: 0 additions & 97 deletions src/orpc/routers/spotify.router.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/orpc/schemas/spotify.schema.ts

This file was deleted.