Add newlines at the end of multiple service files for consistency

This commit is contained in:
Gomathi 2025-05-26 10:20:35 +05:30
parent 8af4442a28
commit b99981a661
13 changed files with 13 additions and 7 deletions

View File

@ -0,0 +1 @@

View File

@ -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,

View File

@ -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,

View File

@ -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(

View File

@ -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);

View File

@ -25,3 +25,4 @@ export const projectTutorial = async () => {
}
}
};

View File

@ -22,3 +22,4 @@ export const recentlyViewed = async (organization: string, userId: string) => {
throw new Error(error.message);
}
};

View File

@ -24,3 +24,4 @@ export const restoreTrash = async (organization: string, projectId: string) => {
throw new Error(error.message || "Unknown error");
}
};

View File

@ -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) {

View File

@ -30,3 +30,4 @@ export const trashSearchProject = async (
}
}
};

View File

@ -28,7 +28,7 @@ export const updateProject = async (
body: JSON.stringify(body),
}
);
if (!response.ok) {
throw new Error("Failed to clearPanel in the zone");
}

View File

@ -26,3 +26,4 @@ export const viewProject = async (
throw new Error(error.message);
}
};

View File

@ -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`,
{