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