From 44fc2bb6210c7c7db80f08a558390c7f5d62a718 Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Thu, 10 Jul 2025 13:38:41 +0200 Subject: [PATCH] Fix #46 add playlists and version to footer --- README.md | 2 ++ src/hooks.server.ts | 3 +- src/lib/assets/spotify-fill.svg | 1 + src/lib/assets/tidal.svg | 19 ++++++++++++ src/lib/assets/youtube-fill.svg | 1 + src/lib/components/FooterComponent.svelte | 30 ++++++++++++++++++- src/lib/components/PostComponent.svelte | 3 +- src/lib/server/playlist/tidalPlaylistAdder.ts | 2 +- src/lib/server/playlist/tidalResponse.ts | 3 +- src/routes/+layout.svelte | 1 + svelte.config.js | 4 ++- 11 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 src/lib/assets/spotify-fill.svg create mode 100644 src/lib/assets/tidal.svg create mode 100644 src/lib/assets/youtube-fill.svg diff --git a/README.md b/README.md index 509eaba..ddcdb00 100644 --- a/README.md +++ b/README.md @@ -151,3 +151,5 @@ Other icons: - [error-warning-fill by remix icon](https://remixicon.com/icon/error-warning-fill) - [git-branch-fill by remix icon](https://remixicon.com/icon/git-branch-fill) - [rss-fill by remix icon](https://remixicon.com/icon/rss-line) +- [spotify-fill by remix icon](https://remixicon.com/icon/spotify-fill) +- [youtube-fill by remix icon](https://remixicon.com/icon/youtube-fill) diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 1f35e15..4e96a85 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -4,6 +4,7 @@ import type { Handle, HandleServerError } from '@sveltejs/kit'; import { error } from '@sveltejs/kit'; import fs from 'fs/promises'; import { close } from '$lib/server/db'; +import { version } from '$app/environment'; const logger = new Logger('App'); @@ -15,7 +16,7 @@ if (process?.pid) { } } -logger.log('App startup, PID', process?.pid); +logger.log('App startup, version', version, 'PID', process?.pid); logger.log('Debug log enabled', Logger.isDebugEnabled()); TimelineReader.init(); diff --git a/src/lib/assets/spotify-fill.svg b/src/lib/assets/spotify-fill.svg new file mode 100644 index 0000000..f95e440 --- /dev/null +++ b/src/lib/assets/spotify-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/assets/tidal.svg b/src/lib/assets/tidal.svg new file mode 100644 index 0000000..3d5862a --- /dev/null +++ b/src/lib/assets/tidal.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/lib/assets/youtube-fill.svg b/src/lib/assets/youtube-fill.svg new file mode 100644 index 0000000..52fe4ee --- /dev/null +++ b/src/lib/assets/youtube-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/components/FooterComponent.svelte b/src/lib/components/FooterComponent.svelte index 6e9eab3..1d9bb9a 100644 --- a/src/lib/components/FooterComponent.svelte +++ b/src/lib/components/FooterComponent.svelte @@ -1,6 +1,10 @@ + | +
+ + Spotify + Spotify + +
+ | +
+ + Youtube + Youtube + +
+ | +
+ + Tidal + Tidal + +