This commit is contained in:
CanbiZ 2025-04-09 14:59:38 +02:00
parent 7818dd0300
commit 444acd9db5
2 changed files with 12 additions and 13 deletions

View File

@ -10,9 +10,9 @@ export const fetchCategories = async () => {
};
export const fetchVersions = async () => {
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
return response.json();
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
return response.json();
};

View File

@ -5,7 +5,7 @@ export type Script = {
slug: string;
categories: number[];
date_created: string;
type: "vm" | "ct" | "misc";
type: "vm" | "ct" | "pve" | "addon";
updateable: boolean;
privileged: boolean;
interface_port: number | null;
@ -13,7 +13,6 @@ export type Script = {
website: string | null;
logo: string | null;
description: string;
version: string;
install_methods: {
type: "default" | "alpine";
script: string;
@ -48,12 +47,6 @@ export type Metadata = {
categories: Category[];
};
export interface AppVersion {
name: string;
version: string;
date: Date;
}
export interface Version {
name: string;
slug: string;
@ -63,3 +56,9 @@ export interface OperatingSystem {
name: string;
versions: Version[];
}
export interface AppVersion {
name: string;
version: string;
date: Date;
}