mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 09:08:40 +00:00
remove annoying console logs
This commit is contained in:
@@ -32,7 +32,6 @@ $(document).ready(function () {
|
|||||||
function connectSocket() {
|
function connectSocket() {
|
||||||
const url = "ws://localhost:" + SOCKET_PORT + "/web";
|
const url = "ws://localhost:" + SOCKET_PORT + "/web";
|
||||||
socket = io(url);
|
socket = io(url);
|
||||||
console.log("socket: ", socket);
|
|
||||||
|
|
||||||
// Register socket event handlers
|
// Register socket event handlers
|
||||||
socket.on("blender_connect", handleBlenderConnect);
|
socket.on("blender_connect", handleBlenderConnect);
|
||||||
@@ -52,7 +51,6 @@ function handleWebConnect() {
|
|||||||
|
|
||||||
// Function to handle 'blender_connect' event
|
// Function to handle 'blender_connect' event
|
||||||
function handleBlenderConnect(blenderId) {
|
function handleBlenderConnect(blenderId) {
|
||||||
console.log("blender connected: ", blenderId);
|
|
||||||
if (!connectedClients.hasOwnProperty(blenderId)) {
|
if (!connectedClients.hasOwnProperty(blenderId)) {
|
||||||
connectedClients[blenderId] = {
|
connectedClients[blenderId] = {
|
||||||
shown: false,
|
shown: false,
|
||||||
@@ -68,7 +66,6 @@ function handleBlenderConnect(blenderId) {
|
|||||||
|
|
||||||
// Function to handle 'blender_disconnect' event
|
// Function to handle 'blender_disconnect' event
|
||||||
function handleBlenderDisconnect(blenderId) {
|
function handleBlenderDisconnect(blenderId) {
|
||||||
console.log("blender disconnected: ", blenderId);
|
|
||||||
if (connectedClients.hasOwnProperty(blenderId)) {
|
if (connectedClients.hasOwnProperty(blenderId)) {
|
||||||
delete connectedClients[blenderId];
|
delete connectedClients[blenderId];
|
||||||
removeWorkScheduleInfo(blenderId);
|
removeWorkScheduleInfo(blenderId);
|
||||||
@@ -92,8 +89,6 @@ function handleConnectedClients(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleThemeData(themeData) {
|
function handleThemeData(themeData) {
|
||||||
// console.log(themeData);
|
|
||||||
|
|
||||||
function arrayToRgbString(arr) {
|
function arrayToRgbString(arr) {
|
||||||
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
||||||
if (a !== undefined) {
|
if (a !== undefined) {
|
||||||
@@ -448,7 +443,6 @@ function editValue(list, task, event, cell, column) {
|
|||||||
value: event.target.value,
|
value: event.target.value,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
console.log("web operator: " + msg);
|
|
||||||
socket.emit("web_operator", msg);
|
socket.emit("web_operator", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -264,7 +264,6 @@ static createContextMenu(callbacks) {
|
|||||||
const typeSelect = document.createElement("select");
|
const typeSelect = document.createElement("select");
|
||||||
typeSelect.name = "Predefined Type";
|
typeSelect.name = "Predefined Type";
|
||||||
|
|
||||||
console.log(types);
|
|
||||||
types.forEach((type) => {
|
types.forEach((type) => {
|
||||||
const option = document.createElement("option");
|
const option = document.createElement("option");
|
||||||
option.value = type.name;
|
option.value = type.name;
|
||||||
@@ -289,7 +288,6 @@ static createContextMenu(callbacks) {
|
|||||||
formData.forEach((value, key) => {
|
formData.forEach((value, key) => {
|
||||||
data[key] = value;
|
data[key] = value;
|
||||||
});
|
});
|
||||||
console.log("Data:", data);
|
|
||||||
addCostSchedule(data.name, data["Predefined Type"]);
|
addCostSchedule(data.name, data["Predefined Type"]);
|
||||||
form.remove();
|
form.remove();
|
||||||
});
|
});
|
||||||
@@ -438,7 +436,6 @@ static createContextMenu(callbacks) {
|
|||||||
expandButton.addEventListener("click", function (event) {
|
expandButton.addEventListener("click", function (event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
let isExpanded = CostUI.isRowExpanded(row.id);
|
let isExpanded = CostUI.isRowExpanded(row.id);
|
||||||
console.log("Row is expanded", isExpanded);
|
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
if (isExpanded) {
|
if (isExpanded) {
|
||||||
CostUI.contractRow(row.id, true);
|
CostUI.contractRow(row.id, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user