Compare commits

...

13 Commits

Author SHA1 Message Date
CodeDevMLH
555e2ab8be Update manifest.json for release v1.7.0.13 [skip ci] 2026-02-16 22:37:20 +00:00
CodeDevMLH
26eadfc0aa Bump version to 1.7.0.13
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 51s
2026-02-16 23:36:26 +01:00
CodeDevMLH
142f538939 Enhance select elements in date range group with consistent styling 2026-02-16 23:36:08 +01:00
CodeDevMLH
b64e80fd60 Update manifest.json for release v1.7.0.12 [skip ci] 2026-02-16 22:18:09 +00:00
CodeDevMLH
fbf5fc7edf Bump version to 1.7.0.12
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 52s
2026-02-16 23:17:17 +01:00
CodeDevMLH
8defba4623 Refactor date selection logic in SeasonalsConfigPage to use helper function for generating options 2026-02-16 23:17:02 +01:00
CodeDevMLH
7f968ee050 Update manifest.json for release v1.7.0.11 [skip ci] 2026-02-16 22:06:11 +00:00
CodeDevMLH
dec5bbe39e Bump version to 1.7.0.11
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 52s
2026-02-16 23:05:18 +01:00
CodeDevMLH
63f3211cc4 Refactor date selection options to use SeasonalsConfigPage methods for consistency 2026-02-16 23:05:06 +01:00
CodeDevMLH
4270235c78 Update manifest.json for release v1.7.0.10 [skip ci] 2026-02-16 22:02:53 +00:00
CodeDevMLH
76d8a67914 Bump version to 1.7.0.10
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 52s
2026-02-16 23:02:00 +01:00
CodeDevMLH
1a3caf5da6 Enhance configuration page: replace input fields with dropdowns for date selection and add utility functions for generating options 2026-02-16 23:01:46 +01:00
CodeDevMLH
3b3ef77e61 fix ui [skip ci] 2026-02-16 19:31:42 +01:00
3 changed files with 60 additions and 20 deletions

View File

@@ -99,7 +99,8 @@
<!-- Rules will be injected here via JS --> <!-- Rules will be injected here via JS -->
</div> </div>
<button is="emby-button" type="button" class="raised button-accent block" onclick="SeasonalsConfigPage.addRule();" style="margin-top: 1em; display: inline-flex; align-items: center; gap: 0.4em;"> <button is="emby-button" type="button" class="raised emby-button" onclick="SeasonalsConfigPage.addRule();"
style="margin-top: 1em; display: inline-flex; align-items: center; gap: 0.4em;">
<i class="material-icons" style="font-size: 24px;">add</i> <i class="material-icons" style="font-size: 24px;">add</i>
<span>Add Rule</span> <span>Add Rule</span>
</button> </button>
@@ -615,7 +616,7 @@
} }
.seasonal-rule-content { .seasonal-rule-content {
display: grid; display: grid;
grid-template-columns: 2fr 1.2fr 1.2fr 2fr; grid-template-columns: 2fr 1.3fr 1.3fr 2fr;
gap: 15px; gap: 15px;
align-items: end; align-items: end;
} }
@@ -629,7 +630,8 @@
align-items: flex-end; align-items: flex-end;
justify-content: space-between; justify-content: space-between;
} }
.date-range-group > .inputContainer { .date-range-group > .inputContainer,
.date-range-group > .selectContainer {
flex: 1; flex: 1;
} }
@@ -683,6 +685,36 @@
var endMonth = data ? (data.EndMonth !== undefined ? data.EndMonth : (data.endMonth !== undefined ? data.endMonth : 1)) : 1; var endMonth = data ? (data.EndMonth !== undefined ? data.EndMonth : (data.endMonth !== undefined ? data.endMonth : 1)) : 1;
var theme = data ? (data.Theme || data.theme || 'none') : 'none'; var theme = data ? (data.Theme || data.theme || 'none') : 'none';
// Helper to generate options
function getOptions(items, selected) {
var html = '';
items.forEach(function(item) {
var val = item.val || item;
var txt = item.name || item;
var isSelected = val == selected ? 'selected' : '';
html += '<option value="' + val + '" ' + isSelected + '>' + txt + '</option>';
});
return html;
}
var days = [];
for (var i = 1; i <= 31; i++) days.push(i);
var months = [
{ val: 1, name: 'Jan' },
{ val: 2, name: 'Feb' },
{ val: 3, name: 'Mar' },
{ val: 4, name: 'Apr' },
{ val: 5, name: 'May' },
{ val: 6, name: 'Jun' },
{ val: 7, name: 'Jul' },
{ val: 8, name: 'Aug' },
{ val: 9, name: 'Sep' },
{ val: 10, name: 'Oct' },
{ val: 11, name: 'Nov' },
{ val: 12, name: 'Dec' }
];
div.innerHTML = ` div.innerHTML = `
<div class="seasonal-rule-header"> <div class="seasonal-rule-header">
<div style="font-weight: bold; font-size: 1.1em;" class="rule-title"></div> <div style="font-weight: bold; font-size: 1.1em;" class="rule-title"></div>
@@ -698,24 +730,32 @@
<input is="emby-input" class="rule-name" onchange="SeasonalsConfigPage.updateRuleTitles();" /> <input is="emby-input" class="rule-name" onchange="SeasonalsConfigPage.updateRuleTitles();" />
</div> </div>
<div class="date-range-group"> <div class="date-range-group">
<div class="inputContainer" style="margin:0;"> <div class="selectContainer" style="margin:0; flex: 1;">
<label class="inputLabel">Start Day</label> <label class="selectLabel">Start Day</label>
<input is="emby-input" type="number" class="rule-start-day" min="1" max="31" /> <select class="emby-select emby-select-withcolor rule-start-day" style="width: 100%; -webkit-appearance: menulist; appearance: menulist;">
${getOptions(days, startDay)}
</select>
</div> </div>
<div class="inputContainer" style="margin:0;"> <div class="selectContainer" style="margin:0; flex: 1;">
<label class="inputLabel">Month</label> <label class="selectLabel">Month</label>
<input is="emby-input" type="number" class="rule-start-month" min="1" max="12" /> <select class="emby-select emby-select-withcolor rule-start-month" style="width: 100%; -webkit-appearance: menulist; appearance: menulist;">
${getOptions(months, startMonth)}
</select>
</div> </div>
</div> </div>
<div class="date-range-group"> <div class="date-range-group">
<div class="inputContainer" style="margin:0;"> <div class="selectContainer" style="margin:0; flex: 1;">
<label class="inputLabel">End Day</label> <label class="selectLabel">End Day</label>
<input is="emby-input" type="number" class="rule-end-day" min="1" max="31" /> <select class="emby-select emby-select-withcolor rule-end-day" style="width: 100%; -webkit-appearance: menulist; appearance: menulist;">
${getOptions(days, endDay)}
</select>
</div> </div>
<div class="inputContainer" style="margin:0;"> <div class="selectContainer" style="margin:0; flex: 1;">
<label class="inputLabel">Month</label> <label class="selectLabel">Month</label>
<input is="emby-input" type="number" class="rule-end-month" min="1" max="12" /> <select class="emby-select emby-select-withcolor rule-end-month" style="width: 100%; -webkit-appearance: menulist; appearance: menulist;">
${getOptions(months, endMonth)}
</select>
</div> </div>
</div> </div>

View File

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

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/raw/branch/main/logo.png", "imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/raw/branch/main/logo.png",
"versions": [ "versions": [
{ {
"version": "1.7.0.9", "version": "1.7.0.13",
"changelog": "- feat: add customizable auto seasonal list via config page\n- feat: add new season theme 'resurrection' by Bioflash257", "changelog": "- feat: add customizable auto seasonal list via config page\n- feat: add new season theme 'resurrection' by Bioflash257",
"targetAbi": "10.11.0.0", "targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.7.0.9/Jellyfin.Plugin.Seasonals.zip", "sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.7.0.13/Jellyfin.Plugin.Seasonals.zip",
"checksum": "27ccb7695fb963e97759a2718f396df4", "checksum": "fb2cf1b557bcbeaa65aced3eeb0429ab",
"timestamp": "2026-02-16T18:27:33Z" "timestamp": "2026-02-16T22:37:19Z"
}, },
{ {
"version": "1.6.3.0", "version": "1.6.3.0",