Compare commits

...

4 Commits

Author SHA1 Message Date
CodeDevMLH
a0b0514159 Update manifest.json for release v1.6.1.0 [skip ci] 2026-02-03 18:08:59 +00:00
CodeDevMLH
e977c83e8f Bump version to 1.6.1.0 in project file and manifest
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 53s
2026-02-03 19:08:07 +01:00
CodeDevMLH
e281f5c579 test other ui design 2026-02-03 19:08:02 +01:00
CodeDevMLH
e6b646e478 Update .gitignore to include test-site-new.html [skip CI] 2026-02-03 18:50:22 +01:00
4 changed files with 48 additions and 57 deletions

1
.gitignore vendored
View File

@@ -5,4 +5,5 @@ obj/
artifacts
test-site.html
test-site-new.html
RELEASE_GUIDE.md

View File

@@ -12,7 +12,7 @@
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
<Title>Jellyfin Seasonals Plugin</Title>
<Authors>CodeDevMLH</Authors>
<Version>1.6.0.0</Version>
<Version>1.6.1.0</Version>
<RepositoryUrl>https://github.com/CodeDevMLH/Jellyfin-Seasonals</RepositoryUrl>
</PropertyGroup>

View File

@@ -265,63 +265,44 @@ function createSettingsPopup(anchorElement) {
position: 'fixed',
zIndex: '10000',
backgroundColor: '#202020',
padding: '1em',
borderRadius: '4px',
padding: '1.5em',
borderRadius: '1em',
boxShadow: '0 0 20px rgba(0,0,0,0.5)',
minWidth: '200px',
color: '#fff'
minWidth: '250px',
color: '#fff',
maxWidth: '300px'
});
const rect = anchorElement.getBoundingClientRect();
popup.style.top = `${rect.bottom + 10}px`;
popup.style.right = `${window.innerWidth - rect.right}px`;
const enabledContainer = document.createElement('div');
enabledContainer.style.marginBottom = '1em';
enabledContainer.style.display = 'flex';
enabledContainer.style.alignItems = 'center';
enabledContainer.style.justifyContent = 'space-between';
popup.innerHTML = `
<h2 style="margin: 0 0 1em 0; font-size: 1.2em;">Seasonals</h2>
const enabledLabel = document.createElement('label');
enabledLabel.textContent = 'Enable Seasonals';
enabledLabel.style.marginRight = '10px';
<div class="checkboxContainer checkboxContainer-withDescription" style="margin-bottom: 1.5em;">
<label class="emby-checkbox-label">
<input id="seasonal-enable-toggle" type="checkbox" is="emby-checkbox" class="emby-checkbox" />
<span class="checkboxLabel">Enable Seasonals</span>
</label>
</div>
const enabledCheckbox = document.createElement('input');
enabledCheckbox.type = 'checkbox';
enabledCheckbox.checked = getSavedSetting('seasonals-enabled', 'true') === 'true';
enabledCheckbox.addEventListener('change', (e) => {
setSavedSetting('seasonals-enabled', e.target.checked);
location.reload();
});
<div class="selectContainer">
<label class="selectLabel" for="seasonal-theme-select" style="margin-bottom: 0.5em; display: block; color: inherit;">Force Theme</label>
<select is="emby-select" id="seasonal-theme-select" class="emby-select-withcolor emby-select" style="width: 100%; padding: 0.5em; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: inherit; border-radius: 4px;">
<option value="auto">Auto (Date Based)</option>
</select>
</div>
enabledContainer.appendChild(enabledLabel);
enabledContainer.appendChild(enabledCheckbox);
popup.appendChild(enabledContainer);
<div style="margin-top: 1.5em; text-align: right;">
<button is="emby-button" type="button" class="raised emby-button button-submit" id="seasonal-close-btn">
Close
</button>
</div>
`;
// Theme Selector
const themeContainer = document.createElement('div');
themeContainer.style.display = 'flex';
themeContainer.style.flexDirection = 'column';
const themeLabel = document.createElement('label');
themeLabel.textContent = 'Force Theme';
themeLabel.style.marginBottom = '0.5em';
const themeSelect = document.createElement('select');
themeSelect.style.width = '100%';
themeSelect.style.padding = '0.5em';
themeSelect.style.backgroundColor = '#333';
themeSelect.style.color = '#fff';
themeSelect.style.border = '1px solid #444';
themeSelect.style.borderRadius = '4px';
// Add Auto option
const autoOption = document.createElement('option');
autoOption.value = 'auto';
autoOption.textContent = 'Auto (Date Based)';
themeSelect.appendChild(autoOption);
// Add available themes
// Populate Select Options
const themeSelect = popup.querySelector('#seasonal-theme-select');
Object.keys(themeConfigs).forEach(key => {
if (key === 'none') return;
const option = document.createElement('option');
@@ -331,17 +312,26 @@ function createSettingsPopup(anchorElement) {
themeSelect.appendChild(option);
});
// Set current value
// Set Initial Values
const enabledCheckbox = popup.querySelector('#seasonal-enable-toggle');
enabledCheckbox.checked = getSavedSetting('seasonals-enabled', 'true') === 'true';
themeSelect.value = getSavedSetting('seasonals-theme', 'auto');
// Event Listeners
enabledCheckbox.addEventListener('change', (e) => {
setSavedSetting('seasonals-enabled', e.target.checked);
location.reload();
});
themeSelect.addEventListener('change', (e) => {
setSavedSetting('seasonals-theme', e.target.value);
location.reload();
});
themeContainer.appendChild(themeLabel);
themeContainer.appendChild(themeSelect);
popup.appendChild(themeContainer);
popup.querySelector('#seasonal-close-btn').addEventListener('click', () => {
popup.remove();
});
// Close on click outside
const closeHandler = (e) => {

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/raw/branch/main/logo.png",
"versions": [
{
"version": "1.6.0.0",
"version": "1.6.1.0",
"changelog": "- feat: Add client-side toggle option for seasonal settings",
"targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.6.0.0/Jellyfin.Plugin.Seasonals.zip",
"checksum": "9b66d6f1c03b284ac9fe7e87540f7759",
"timestamp": "2026-02-03T17:49:05Z"
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.6.1.0/Jellyfin.Plugin.Seasonals.zip",
"checksum": "83f436ed934190aed64bbc028432bc82",
"timestamp": "2026-02-03T18:08:58Z"
},
{
"version": "1.5.1.0",