[FEATURE] Fixed file manager and adjusted starting display (#5)
Co-authored-by: Dunemask <dunemask@gmail.com> Reviewed-on: https://gitea.dunemask.dev/elysium/minecluster/pulls/5
This commit is contained in:
parent
4f19cf19d9
commit
fb57c03ba7
9 changed files with 63 additions and 45 deletions
|
@ -46,7 +46,7 @@ export const createServerFolder = async (server, path) =>
|
|||
fetchApiCore("/files/folder", {
|
||||
name: server,
|
||||
path,
|
||||
}); /*postJsonApi("/files/folder", {name: server, path});*/
|
||||
});
|
||||
export const deleteServerItem = async (server, path, isDir) =>
|
||||
fetchApiCore("/files/item", { name: server, path, isDir }, "DELETE");
|
||||
|
||||
|
@ -106,6 +106,5 @@ const postJsonApi = (subPath, body, invalidate, method = "POST") => {
|
|||
body: JSON.stringify(body),
|
||||
});
|
||||
if (invalidate) qc.invalidateQueries([invalidate]);
|
||||
return res.json();
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,7 +5,7 @@ const themeOptions = {
|
|||
palette: {
|
||||
mode: "light",
|
||||
primary: {
|
||||
main: "rgba(109,216,144,255)",
|
||||
main: "#29985c",
|
||||
},
|
||||
secondary: {
|
||||
main: "#f50057",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue