feat: add view of all packs

This commit is contained in:
Kentai Radiquum 2025-05-05 21:45:34 +05:00
parent 802b755d29
commit e109b5393a
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
7 changed files with 114 additions and 3 deletions

7
gui/types/file.ts Normal file
View file

@ -0,0 +1,7 @@
export type ModFile = {
"version": string,
"hashes": unknown,
"url": string,
"filename": string,
"size": number,
}

15
gui/types/mod.ts Normal file
View file

@ -0,0 +1,15 @@
import { ModFile } from "./file";
export type Mod = {
"slug": string,
"icon": string,
"title":string,
"developers": string[],
"source": string,
"url": string,
"environment": {
"client": boolean,
"server": boolean,
},
"file": ModFile,
}

13
gui/types/pack.ts Normal file
View file

@ -0,0 +1,13 @@
import { Mod } from "./mod";
export type Pack = {
_id: string;
formatVersion: number;
modpackVersion: number;
title: string;
author: string;
version: string;
modloader: string;
updateURL: "";
mods: Mod[];
};