feat(update-modal): display last 5 release notes instead of single

- Modified backend to fetch last 5 releases from GitHub API
- Updated frontend to iterate through and display multiple releases
- Added latest badge and publish date styling
- Added update.latestBadge translation key to all locales
- Maintains backward compatibility for single changelog display
This commit is contained in:
Will Miao
2026-01-23 22:19:43 +08:00
parent 0bb75fdf77
commit 7bba24c19f
15 changed files with 180 additions and 52 deletions

View File

@@ -121,4 +121,49 @@
.changelog-item a:hover {
text-decoration: underline;
}
}
/* Multiple releases styling */
.changelog-content > .changelog-item + .changelog-item {
margin-top: var(--space-4);
padding-top: var(--space-4);
border-top: 1px solid var(--lora-border);
}
.changelog-item h4 {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
margin-bottom: var(--space-2);
font-size: 1em;
}
.changelog-item .latest-badge {
background-color: var(--lora-accent);
color: white;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75em;
font-weight: 500;
text-transform: uppercase;
}
.changelog-item .publish-date {
font-size: 0.85em;
color: var(--text-color);
opacity: 0.6;
font-weight: normal;
}
.changelog-item.latest {
background-color: rgba(66, 153, 225, 0.05);
border-radius: var(--border-radius-sm);
padding: var(--space-3);
border: 1px solid rgba(66, 153, 225, 0.2);
}
[data-theme="dark"] .changelog-item.latest {
background-color: rgba(66, 153, 225, 0.1);
border-color: rgba(66, 153, 225, 0.3);
}