Add newlines at the end of multiple service files for consistency
This commit is contained in:
parent
8af4442a28
commit
b99981a661
|
@ -0,0 +1 @@
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`;
|
||||
// let url_Backend_dwinzo = `http://192.168.0.102:5000`;
|
||||
// let url_Backend_dwinzo = `http://192.168.0.110:5000`;
|
||||
|
||||
|
||||
export const createProject = async (
|
||||
projectUuid: string,
|
||||
userId: string,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`;
|
||||
// let url_Backend_dwinzo = `http://192.168.0.102:5000`;
|
||||
|
||||
|
||||
export const deleteProject = async (
|
||||
projectId: string,
|
||||
userId: string,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`;
|
||||
|
||||
|
||||
export const getAllProjects = async (userId: string, organization: string) => {
|
||||
try {
|
||||
const response = await fetch(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`;
|
||||
// const url_Backend_dwinzo = `http://192.168.0.102:5000`;
|
||||
|
||||
|
||||
export const getTrash = async (organization: string) => {
|
||||
console.log("Organization:", organization);
|
||||
|
||||
|
|
|
@ -25,3 +25,4 @@ export const projectTutorial = async () => {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -22,3 +22,4 @@ export const recentlyViewed = async (organization: string, userId: string) => {
|
|||
throw new Error(error.message);
|
||||
}
|
||||
};
|
||||
|
|
@ -24,3 +24,4 @@ export const restoreTrash = async (organization: string, projectId: string) => {
|
|||
throw new Error(error.message || "Unknown error");
|
||||
}
|
||||
};
|
||||
|
|
@ -23,7 +23,7 @@ export const searchProject = async (
|
|||
console.log("response: ", response);
|
||||
const result = await response.json();
|
||||
console.log("result: ", result);
|
||||
|
||||
|
||||
return result;
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
|
|
|
@ -30,3 +30,4 @@ export const trashSearchProject = async (
|
|||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -28,7 +28,7 @@ export const updateProject = async (
|
|||
body: JSON.stringify(body),
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error("Failed to clearPanel in the zone");
|
||||
}
|
||||
|
|
|
@ -26,3 +26,4 @@ export const viewProject = async (
|
|||
throw new Error(error.message);
|
||||
}
|
||||
};
|
||||
|
|
@ -10,7 +10,7 @@ export const useSocketStore = create<any>((set: any, get: any) => ({
|
|||
if (existingSocket) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const socket = io(
|
||||
`http://${process.env.REACT_APP_SERVER_SOCKET_API_BASE_URL}/Builder`,
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue