[FEATURE] Backups View & Style fix (#22)

Co-authored-by: Dunemask <dunemask@gmail.com>
Reviewed-on: https://gitea.dunemask.dev/elysium/minecluster/pulls/22
This commit is contained in:
dunemask 2024-03-12 01:58:25 +00:00
parent 332f84972c
commit 6efa50e86b
10 changed files with 969 additions and 931 deletions

View file

@ -54,6 +54,11 @@ export const useGetServer = (serverId) =>
queryFn: fetchApiPost("/server/blueprint", { id: serverId }),
});
export const getServerBackups = (serverId) =>
fetchApiCore("/s3/backups", { id: serverId }, "POST", true);
export const getBackupUrl = (serverId, backupPath) =>
fetchApiCore("/s3/backup-url", { id: serverId, backupPath }, "POST", true);
export const getServerFiles = async (serverId, path) =>
fetchApiCore("/files/list", { id: serverId, path }, "POST", true);
export const createServerFolder = async (serverId, path) =>