diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/BarChartInput.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/BarChartInput.tsx index 27ac2f9..9ec8196 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/BarChartInput.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/BarChartInput.tsx @@ -142,7 +142,7 @@ const BarChartInput = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/FleetEfficiencyInputComponent.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/FleetEfficiencyInputComponent.tsx index 4d858ff..9ebf11d 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/FleetEfficiencyInputComponent.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/FleetEfficiencyInputComponent.tsx @@ -127,7 +127,7 @@ const FleetEfficiencyInputComponent = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/FlotingWidgetInput.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/FlotingWidgetInput.tsx index 9fc36b9..58a6093 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/FlotingWidgetInput.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/FlotingWidgetInput.tsx @@ -126,7 +126,7 @@ const FlotingWidgetInput = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/LineGrapInput.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/LineGrapInput.tsx index 330560f..63cc3be 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/LineGrapInput.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/LineGrapInput.tsx @@ -257,7 +257,7 @@ const LineGrapInput = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/PieChartInput.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/PieChartInput.tsx index a78e391..98167b7 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/PieChartInput.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/PieChartInput.tsx @@ -142,7 +142,7 @@ const PieChartInput = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress1Input.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress1Input.tsx index 15ecee5..b873e4e 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress1Input.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress1Input.tsx @@ -142,7 +142,7 @@ const Progress1Input = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress2Input.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress2Input.tsx index 842821c..efbdd6d 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress2Input.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Progress2Input.tsx @@ -142,7 +142,7 @@ const Progress2Input = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/WarehouseThroughputInputComponent.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/WarehouseThroughputInputComponent.tsx index b963c8c..d069b0f 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/WarehouseThroughputInputComponent.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/WarehouseThroughputInputComponent.tsx @@ -123,7 +123,7 @@ const WarehouseThroughputInputComponent = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget2InputCard3D.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget2InputCard3D.tsx index 10c905c..02c76bb 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget2InputCard3D.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget2InputCard3D.tsx @@ -122,7 +122,7 @@ const Widget2InputCard3D = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget3InputCard3D.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget3InputCard3D.tsx index d9e4314..ebe1718 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget3InputCard3D.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget3InputCard3D.tsx @@ -119,7 +119,7 @@ const Widget3InputCard3D = () => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget4InputCard3D.tsx b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget4InputCard3D.tsx index 2498d3d..4a60b70 100644 --- a/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget4InputCard3D.tsx +++ b/app/src/components/layout/sidebarRight/visualization/IotInputCards/Widget4InputCard3D.tsx @@ -122,7 +122,7 @@ const Widget4InputCard3D = (props: Props) => { newSelections[inputKey] = selectedData; } // setMeasurements(newSelections); // Update Zustand store - console.log(newSelections); + // console.log(newSelections); if (await sendInputes(newSelections, duration, widgetName)) { setSelections(newSelections); } diff --git a/app/src/modules/builder/geomentries/points/deletePoint.ts b/app/src/modules/builder/geomentries/points/deletePoint.ts index 9633850..cdcb6ed 100644 --- a/app/src/modules/builder/geomentries/points/deletePoint.ts +++ b/app/src/modules/builder/geomentries/points/deletePoint.ts @@ -44,6 +44,7 @@ function deletePoint( projectId,userId } + console.log('data: ', data); socket.emit('v1:Line:delete:point', data); ////////// Update onlyFloorlines.current to remove references to the deleted point ////////// diff --git a/app/src/modules/collaboration/socket/socketResponses.dev.tsx b/app/src/modules/collaboration/socket/socketResponses.dev.tsx index 7637384..ea242be 100644 --- a/app/src/modules/collaboration/socket/socketResponses.dev.tsx +++ b/app/src/modules/collaboration/socket/socketResponses.dev.tsx @@ -72,27 +72,27 @@ export default function SocketResponses({ if (!socket) return; socket.on("cameraCreateResponse", (data: any) => { - // console.log('data: ', data); + // }); socket.on("userConnectRespones", (data: any) => { - // console.log('data: ', data); + // }); socket.on("userDisConnectRespones", (data: any) => { - // console.log('data: ', data); + // }); socket.on("v1:camera:Response:update", (data: any) => { - // console.log('data: ', data); + // }); socket.on("EnvironmentUpdateResponse", (data: any) => { - // console.log('data: ', data); + // }); socket.on("v1:model-asset:response:add", async (data: any) => { - // console.log('data: ', data); + // if (socket.id === data.socketId) { return; } @@ -150,7 +150,7 @@ export default function SocketResponses({ } }); - socket.on("v1:model-asset:response:add", (data: any) => { + socket.on("v1:model-asset:response:delete", (data: any) => { if (socket.id === data.socketId) { return; } @@ -215,6 +215,7 @@ export default function SocketResponses({ }); socket.on("v1:Line:response:delete", (data: any) => { + console.log('data: ', data); if (socket.id === data.socketId) { return; } @@ -296,6 +297,7 @@ export default function SocketResponses({ }); socket.on("v1:Line:response:delete:point", (data: any) => { + console.log('datapoint: ', data); if (socket.id === data.socketId) { return; } @@ -336,6 +338,7 @@ export default function SocketResponses({ }); socket.on("v1:Line:response:delete:layer", async (data: any) => { + console.log('data: ', data); if (socket.id === data.socketId) { return; } @@ -504,7 +507,7 @@ export default function SocketResponses({ }); socket.on("v1:wallItems:Response:Update", (data: any) => { - // console.log('data: ', data); + // if (socket.id === data.socketId) { return; } @@ -547,7 +550,7 @@ export default function SocketResponses({ THREE.Cache.add(data.data.modelfileID, gltf); await handleModelLoad(gltf); } catch (error) { - console.error('Failed to cache model:', error); + handleModelLoad(gltf); } }); @@ -667,7 +670,7 @@ export default function SocketResponses({ const organization = email!.split("@")[1].split(".")[0]; socket.on("v1:Line:response:create", async (data: any) => { - // console.log('data: ', data); + // if (socket.id === data.socketId) { return; } diff --git a/app/src/modules/visualization/zone/DisplayZone.tsx b/app/src/modules/visualization/zone/DisplayZone.tsx index 57f8a25..9d88e65 100644 --- a/app/src/modules/visualization/zone/DisplayZone.tsx +++ b/app/src/modules/visualization/zone/DisplayZone.tsx @@ -178,9 +178,9 @@ const DisplayZone: React.FC = ({ const organization = email?.split("@")[1]?.split(".")[0]; let response = await getSelect2dZoneData(zoneUuid, organization, projectId); - console.log('response2d: ', response); + // console.log('response2d: ', response); let res = await getFloatingZoneData(zoneUuid, organization, projectId); - console.log("resFloating: ", res); + // console.log("resFloating: ", res); setFloatingWidget(res); // Set the selected zone in the store diff --git a/app/src/services/factoryBuilder/camera/getCameraApi.ts b/app/src/services/factoryBuilder/camera/getCameraApi.ts index 357223e..5407f56 100644 --- a/app/src/services/factoryBuilder/camera/getCameraApi.ts +++ b/app/src/services/factoryBuilder/camera/getCameraApi.ts @@ -18,10 +18,9 @@ export const getCamera = async (organization: string, userId: string,projectId?: } ); - // console.log('response: ', response); - // if (!response.ok) { - // throw new Error("Failed to get Camera position and target"); - // } + if (!response.ok) { + throw new Error("Failed to get Camera position and target"); + } const result = await response.json(); // console.log('result: ', result); diff --git a/app/src/services/factoryBuilder/environment/findEnvironment.ts b/app/src/services/factoryBuilder/environment/findEnvironment.ts index 5db0d8f..53bae1b 100644 --- a/app/src/services/factoryBuilder/environment/findEnvironment.ts +++ b/app/src/services/factoryBuilder/environment/findEnvironment.ts @@ -23,7 +23,7 @@ export const findEnvironment = async (organization: string, userId: string, proj } const result = await response.json(); - console.log('resultgetenv: ', result); + // console.log('resultgetenv: ', result); if (result === "user not found") { const userpos = setEnvironment( organization, diff --git a/app/src/services/factoryBuilder/environment/setEnvironment.ts b/app/src/services/factoryBuilder/environment/setEnvironment.ts index 242f1ef..b191949 100644 --- a/app/src/services/factoryBuilder/environment/setEnvironment.ts +++ b/app/src/services/factoryBuilder/environment/setEnvironment.ts @@ -10,13 +10,7 @@ export const setEnvironment = async ( limitDistance: boolean, projectId?: string ) => { - console.log('organization,userId,wallVisibility,roofVisibility,shadowVisibility,renderDistance,limitDistance,: ', organization, - userId, - wallVisibility, - roofVisibility, - shadowVisibility, - renderDistance, - limitDistance,projectId); + try { const response = await fetch( `${url_Backend_dwinzo}/api/V1/SetEnvironments`, @@ -48,7 +42,7 @@ export const setEnvironment = async ( } const result = await response.json(); - console.log('resultsetenv: ', result); + // console.log('resultsetenv: ', result); return result; } catch (error) { echo.error("Failed to set env");