Release v2.20.3
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m27s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 32s

This commit is contained in:
lzstealth committed 2026-10-25 20:33:59 +00:00
1 parent 9dec1818a5
commit 7228406929
9 files changed
+101 -7

No files matched your search

+15 -1
View File
@@ -182,6 +182,8 @@ function formatScheduleRuleSummary(rule) {
const days = formatDays(normalized.days || []);
if (days) {
rightParts.push(days);
} else if (normalized.start_time && normalized.end_time) {
rightParts.push('Any day');
}
if (normalized.start_time && normalized.end_time) {
rightParts.push(formatTime(normalized.start_time) + '-' + formatTime(normalized.end_time));
@@ -200,7 +202,19 @@ function formatScheduleRulesSummary(value) {
return 'Always visible';
}
return rules.length === 1 ? '1 rule' : String(rules.length) + ' rules';
if (rules.length >= 3) {
return String(rules.length) + ' rules';
}
const summaries = rules.map(function (rule) {
return formatScheduleRuleSummary(rule).replace(/^Any date: /, '');
});
if (summaries.some(function (summary) { return summary.length > 60; })) {
return rules.length === 1 ? '1 rule' : String(rules.length) + ' rules';
}
return summaries.map(function (summary, index) {
return 'Rule ' + String(index + 1) + ': ' + summary;
}).join('\n');
}
module.exports = {
+8
View File
@@ -2396,6 +2396,14 @@
white-space: nowrap;
}
.playlist-schedule-summary .chip {
display: inline-block;
max-width: min(30rem, 100%);
white-space: pre-line;
overflow-wrap: anywhere;
border-radius: 0.375rem;
}
.empty {
color: var(--bs-secondary-color);
font-style: italic;
@@ -146,6 +146,8 @@
var days = formatDays(normalized.days || []);
if (days) {
right.push(days);
} else if (normalized.start_time && normalized.end_time) {
right.push('Any day');
}
if (normalized.start_time && normalized.end_time) {
right.push(normalized.start_time.slice(0, 5) + '-' + normalized.end_time.slice(0, 5));
@@ -165,7 +167,19 @@
return 'Always visible';
}
return rules.length === 1 ? '1 rule' : String(rules.length) + ' rules';
if (rules.length >= 3) {
return String(rules.length) + ' rules';
}
var summaries = rules.map(function (rule) {
return formatScheduleRuleSummary(rule).replace(/^Any date: /, '');
});
if (summaries.some(function (summary) { return summary.length > 60; })) {
return rules.length === 1 ? '1 rule' : String(rules.length) + ' rules';
}
return summaries.map(function (summary, index) {
return 'Rule ' + String(index + 1) + ': ' + summary;
}).join('\n');
}
function parseScheduleBoundary(value) {