mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 23:59:35 +05:00
feat: add view of all packs
This commit is contained in:
parent
802b755d29
commit
e109b5393a
7 changed files with 114 additions and 3 deletions
7
gui/types/file.ts
Normal file
7
gui/types/file.ts
Normal 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
15
gui/types/mod.ts
Normal 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
13
gui/types/pack.ts
Normal 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[];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue