From 45367aa440cc391ce8110a74c628f89dcbc1a41a Mon Sep 17 00:00:00 2001 From: zaanposni Date: Wed, 28 Aug 2024 06:29:12 +0200 Subject: [PATCH] added youtube link to videos page --- src/psaggregator/src/config/config.ts | 2 + .../src/lib/components/PSVideo.svelte | 9 ++++- src/psaggregator/src/routes/+layout.svelte | 3 ++ .../src/routes/settings/+page.svelte | 28 ++++++++++++- .../src/routes/videos/+page.server.ts | 3 +- .../src/routes/videos/+page.svelte | 40 +++++++++++++------ 6 files changed, 69 insertions(+), 16 deletions(-) diff --git a/src/psaggregator/src/config/config.ts b/src/psaggregator/src/config/config.ts index 59ba8ef..e4b8f79 100644 --- a/src/psaggregator/src/config/config.ts +++ b/src/psaggregator/src/config/config.ts @@ -11,6 +11,8 @@ export const GITHUB_AUTHOR_URL = "https://github.com/zaanposni"; export const SHOW_ABSOLUTE_DATES = writable(false); export const VIDEO_COMPLEXE_VIEW = writable(false); +export const LINK_YOUTUBE = writable(false); export const SHOW_ABSOLUTE_DATES_KEY = "showAbsoluteDates"; export const VIDEO_COMPLEXE_VIEW_KEY = "videoComplexeView"; +export const LINK_YOUTUBE_KEY = "linkYoutube"; diff --git a/src/psaggregator/src/lib/components/PSVideo.svelte b/src/psaggregator/src/lib/components/PSVideo.svelte index 6297417..d958154 100644 --- a/src/psaggregator/src/lib/components/PSVideo.svelte +++ b/src/psaggregator/src/lib/components/PSVideo.svelte @@ -1,7 +1,7 @@ diff --git a/src/psaggregator/src/routes/settings/+page.svelte b/src/psaggregator/src/routes/settings/+page.svelte index aa6c40b..c2ecfce 100644 --- a/src/psaggregator/src/routes/settings/+page.svelte +++ b/src/psaggregator/src/routes/settings/+page.svelte @@ -1,6 +1,13 @@