fixes
This commit is contained in:
parent
7818dd0300
commit
444acd9db5
@ -10,9 +10,9 @@ export const fetchCategories = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const fetchVersions = async () => {
|
export const fetchVersions = async () => {
|
||||||
const response = await fetch(`api/versions`);
|
const response = await fetch(`api/versions`);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Failed to fetch versions: ${response.statusText}`);
|
throw new Error(`Failed to fetch versions: ${response.statusText}`);
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json();
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ export type Script = {
|
|||||||
slug: string;
|
slug: string;
|
||||||
categories: number[];
|
categories: number[];
|
||||||
date_created: string;
|
date_created: string;
|
||||||
type: "vm" | "ct" | "misc";
|
type: "vm" | "ct" | "pve" | "addon";
|
||||||
updateable: boolean;
|
updateable: boolean;
|
||||||
privileged: boolean;
|
privileged: boolean;
|
||||||
interface_port: number | null;
|
interface_port: number | null;
|
||||||
@ -13,7 +13,6 @@ export type Script = {
|
|||||||
website: string | null;
|
website: string | null;
|
||||||
logo: string | null;
|
logo: string | null;
|
||||||
description: string;
|
description: string;
|
||||||
version: string;
|
|
||||||
install_methods: {
|
install_methods: {
|
||||||
type: "default" | "alpine";
|
type: "default" | "alpine";
|
||||||
script: string;
|
script: string;
|
||||||
@ -48,12 +47,6 @@ export type Metadata = {
|
|||||||
categories: Category[];
|
categories: Category[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface AppVersion {
|
|
||||||
name: string;
|
|
||||||
version: string;
|
|
||||||
date: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Version {
|
export interface Version {
|
||||||
name: string;
|
name: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
@ -63,3 +56,9 @@ export interface OperatingSystem {
|
|||||||
name: string;
|
name: string;
|
||||||
versions: Version[];
|
versions: Version[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface AppVersion {
|
||||||
|
name: string;
|
||||||
|
version: string;
|
||||||
|
date: Date;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user