Frontend: use github-versions.json for version display (#11281)

* fix(frontend): use github-versions.json for version display

- Update AppVersion type to match new format with slug field
- Switch from versions.json to github-versions.json API
- Simplify version matching by direct slug comparison
- Remove 'Loading versions...' text - show nothing if no version found

* feat(frontend): show tooltip for pinned versions

* fix(api): add github-versions endpoint and fix legacy versions route
This commit is contained in:
CanbiZ (MickLesk)
2026-01-28 14:29:26 +01:00
committed by GitHub
parent 2434e0ab3b
commit c7669c39c3
6 changed files with 75 additions and 23 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export async function fetchCategories() {
}
export async function fetchVersions() {
const response = await fetch(`/ProxmoxVE/api/versions`);
const response = await fetch(`/ProxmoxVE/api/github-versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
+9 -2
View File
@@ -63,7 +63,14 @@ export type OperatingSystem = {
};
export type AppVersion = {
name: string;
slug: string;
repo: string;
version: string;
date: Date;
pinned: boolean;
date: string;
};
export type GitHubVersionsResponse = {
generated: string;
versions: AppVersion[];
};