From f036e748dad3b9529e6534770c3149ae7f014892 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Tue, 3 Feb 2026 18:48:11 +0100 Subject: [PATCH] Add client-side toggle option for seasonal settings --- .../Configuration/PluginConfiguration.cs | 9 + .../Configuration/configPage.html | 190 ++++++++-------- .../Jellyfin.Plugin.Seasonals.csproj | 2 +- Jellyfin.Plugin.Seasonals/Web/seasonals.js | 210 ++++++++++++++++-- .../Web/test-site-new.html | 79 +++++++ manifest.json | 8 + 6 files changed, 394 insertions(+), 104 deletions(-) create mode 100644 Jellyfin.Plugin.Seasonals/Web/test-site-new.html diff --git a/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs index a789083..70004c0 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs @@ -15,6 +15,7 @@ public class PluginConfiguration : BasePluginConfiguration IsEnabled = true; SelectedSeason = "none"; AutomateSeasonSelection = true; + EnableClientSideToggle = true; Autumn = new AutumnOptions(); Snowflakes = new SnowflakesOptions(); @@ -43,6 +44,14 @@ public class PluginConfiguration : BasePluginConfiguration /// public bool AutomateSeasonSelection { get; set; } + /// + /// Gets or sets a value indicating whether to enable client-side toggle for users. + /// + public bool EnableClientSideToggle { get; set; } + + /// + /// Gets or sets the Seasonals options. + /// public AutumnOptions Autumn { get; set; } public SnowflakesOptions Snowflakes { get; set; } public SnowfallOptions Snowfall { get; set; } diff --git a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html index f2fa940..f77ad4b 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html +++ b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html @@ -6,17 +6,17 @@
- +

Seasonals

+ target="_blank" href="https://github.com/CodeDevMLH/Jellyfin-Seasonals"> Help @@ -38,6 +38,15 @@
Automatically select the season based on the date.
+
+ +
If enabled, users will see a settings icon in the header to toggle + animations for their browser.
+