mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 15:49:34 +05:00
feat: pack creating
This commit is contained in:
parent
5be021789b
commit
af7b8a6fea
27 changed files with 677 additions and 130 deletions
22
gui/api/ENDPOINTS.ts
Normal file
22
gui/api/ENDPOINTS.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
const API = process.env.NEXT_PUBLIC_API_URL;
|
||||
|
||||
export const ENDPOINTS = {
|
||||
createPack: `${API}/pack/new`,
|
||||
getAllPacks: `${API}/pack/all`,
|
||||
};
|
||||
|
||||
type PACK_IMG_ENDPOINTS = {
|
||||
getPackImage: string;
|
||||
editPackImage: string;
|
||||
};
|
||||
|
||||
export const PACK_IMG_ENDPOINTS = function (
|
||||
endpoint: keyof PACK_IMG_ENDPOINTS,
|
||||
id: string
|
||||
) {
|
||||
const _endpoints = {
|
||||
getPackImage: `${API}/pack/${id}/image`,
|
||||
editPackImage: `${API}/pack/${id}/image/edit`,
|
||||
};
|
||||
return _endpoints[endpoint];
|
||||
};
|
80
gui/api/mc_version.json
Normal file
80
gui/api/mc_version.json
Normal file
|
@ -0,0 +1,80 @@
|
|||
[
|
||||
"1.6",
|
||||
"1.6.1",
|
||||
"1.6.2",
|
||||
"1.6.4",
|
||||
"1.7",
|
||||
"1.7.2",
|
||||
"1.7.3",
|
||||
"1.7.4",
|
||||
"1.7.5",
|
||||
"1.7.6",
|
||||
"1.7.7",
|
||||
"1.7.9",
|
||||
"1.7.8",
|
||||
"1.7.10",
|
||||
"1.8",
|
||||
"1.8.1",
|
||||
"1.8.2",
|
||||
"1.8.3",
|
||||
"1.8.4",
|
||||
"1.8.5",
|
||||
"1.8.6",
|
||||
"1.8.7",
|
||||
"1.8.8",
|
||||
"1.8.9",
|
||||
"1.9",
|
||||
"1.9.1",
|
||||
"1.9.2",
|
||||
"1.9.3",
|
||||
"1.9.4",
|
||||
"1.10",
|
||||
"1.10.1",
|
||||
"1.10.2",
|
||||
"1.11",
|
||||
"1.11.1",
|
||||
"1.11.2",
|
||||
"1.12",
|
||||
"1.12.1",
|
||||
"1.12.2",
|
||||
"1.13",
|
||||
"1.13.1",
|
||||
"1.13.2",
|
||||
"1.14",
|
||||
"1.14.1",
|
||||
"1.14.2",
|
||||
"1.14.3",
|
||||
"1.14.4",
|
||||
"1.15",
|
||||
"1.15.1",
|
||||
"1.15.2",
|
||||
"1.16",
|
||||
"1.16.1",
|
||||
"1.16.2",
|
||||
"1.16.3",
|
||||
"1.16.4",
|
||||
"1.16.5",
|
||||
"1.17",
|
||||
"1.17.1",
|
||||
"1.18",
|
||||
"1.18.1",
|
||||
"1.18.2",
|
||||
"1.19",
|
||||
"1.19.1",
|
||||
"1.19.2",
|
||||
"1.19.3",
|
||||
"1.19.4",
|
||||
"1.20",
|
||||
"1.20.1",
|
||||
"1.20.2",
|
||||
"1.20.3",
|
||||
"1.20.4",
|
||||
"1.20.5",
|
||||
"1.20.6",
|
||||
"1.21",
|
||||
"1.21.1",
|
||||
"1.21.2",
|
||||
"1.21.3",
|
||||
"1.21.4",
|
||||
"1.21.5"
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue