This commit is contained in:
+10
-1
@@ -9558,6 +9558,14 @@ function _renderUpdateReleaseNotes(container, value) {
|
||||
return container.childElementCount > 0;
|
||||
}
|
||||
|
||||
function formatUpdatePublicationDate(value) {
|
||||
if (!value) return '';
|
||||
const date = new Date(value);
|
||||
if (!Number.isFinite(date.getTime())) return '';
|
||||
const pad = number => String(number).padStart(2, '0');
|
||||
return `${pad(date.getDate())}.${pad(date.getMonth() + 1)}.${date.getFullYear()} - ${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
||||
}
|
||||
|
||||
function showUpdateBanner(info) {
|
||||
if (!info) return;
|
||||
_knownUpdateInfo = { ...info, available: true };
|
||||
@@ -9575,7 +9583,8 @@ function showUpdateBanner(info) {
|
||||
const installButton = document.getElementById('installUpdateBtn');
|
||||
if (title) title.textContent = 'Eine neue Version ist verfügbar!';
|
||||
if (message) {
|
||||
message.textContent = `Update v${version} verfügbar`;
|
||||
const publishedAt = formatUpdatePublicationDate(info.publishedAt);
|
||||
message.textContent = `Update v${version} verfügbar${publishedAt ? ` (${publishedAt})` : ''}`;
|
||||
message.hidden = false;
|
||||
}
|
||||
if (notes && notesBody) {
|
||||
|
||||
@@ -804,6 +804,7 @@
|
||||
if (exact) return `${leading}${exact}${trailing}`;
|
||||
const patterns = target === 'en'
|
||||
? [
|
||||
[/^Update v([\d.]+) verfügbar \(([^)]+)\)$/, 'Update v$1 available ($2)'],
|
||||
[/^Update v(.+) verfügbar$/, 'Update v$1 available'],
|
||||
[/^Wiederhergestellte Warteschlange startet in (.+) s \((.+) Jobs\)\.$/, 'Restored queue starts in $1 s ($2 jobs).'],
|
||||
[/^Login ok, Upload-Form bereit \(Dateifeld: (.+)\)$/, 'Login successful, upload form ready (file field: $1)'],
|
||||
@@ -912,6 +913,7 @@
|
||||
[/^Update v(.+) verfügbar\. Klicken zum Installieren\.$/, 'Update v$1 available. Click to install.']
|
||||
]
|
||||
: [
|
||||
[/^Update v([\d.]+) available \(([^)]+)\)$/, 'Update v$1 verfügbar ($2)'],
|
||||
[/^Update v(.+) available$/, 'Update v$1 verfügbar'],
|
||||
[/^Sleep in (\d+)s\.\.\.$/, 'Ruhezustand in $1s...'],
|
||||
[/^Shut down in (\d+)s\.\.\.$/, 'Herunterfahren in $1s...'],
|
||||
|
||||
+1
-1
@@ -2952,7 +2952,7 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
|
||||
.update-dialog-copy p {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user