diff --git a/networkInterfaces.js b/networkInterfaces.js index 3da71b8..f78b3bc 100644 --- a/networkInterfaces.js +++ b/networkInterfaces.js @@ -7,7 +7,6 @@ window.init = function init() { for (let i = 0; i < Object.keys(networkInterfaces).length; i++) { const interfaceID = Object.keys(networkInterfaces)[i]; const interfaceObj = networkInterfaces[interfaceID]; - console.log(interfaceObj); html += `${interfaceID}`; html += `${interfaceObj[0].address}`; diff --git a/plugins/qlab/main.js b/plugins/qlab/main.js index 15c97a8..a7c67d8 100644 --- a/plugins/qlab/main.js +++ b/plugins/qlab/main.js @@ -287,7 +287,6 @@ exports.data = function data(_device, oscData) { } else if (match(oscAddressParts, ['update', 'workspace', '*', 'dashboard'])) { // this workspace might be new, let's check if (device.data.workspaces[oscAddressParts[2]] === undefined) { - console.log('new workspace!'); device.send('/workspaces'); } } else if (match(oscAddressParts, ['update', 'workspace', '*', 'cueList', '*', 'playbackPosition'])) { diff --git a/plugins/sacn/main.js b/plugins/sacn/main.js index 955354c..ed2835d 100644 --- a/plugins/sacn/main.js +++ b/plugins/sacn/main.js @@ -26,7 +26,6 @@ exports.ready = function ready(device) { const networkInterfaces = d.getNetworkInterfaces(); - // device.draw(); for (let i = 1; i <= 16; i++) { for (let j = 0; j < Object.keys(networkInterfaces).length; j++) { const networkInterfaceID = Object.keys(networkInterfaces)[j]; @@ -117,7 +116,6 @@ exports.update = function update(_device, doc, updateType, updateData) { $code.textContent = 'RDM'; } } else { - // console.log('x'); device.draw(); device.update('elementCache'); } diff --git a/plugins/xair/main.js b/plugins/xair/main.js index 96a54fb..ffc70f3 100644 --- a/plugins/xair/main.js +++ b/plugins/xair/main.js @@ -29,10 +29,6 @@ exports.ready = function ready(device) { d.data.stereoMute = 0; d.send('/xinfo'); - - // device.send(Buffer.from("\x2f\x62\x61\x74\x63\x68\x73\x75\x62\x73\x63\x72\x69\x62\x65\x00\x2c\x73\x73\x69\x69\x69\x00\x00\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x2f\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01")); - // device.send(Buffer.from("/batchsubscribe\x00,ssiii\x00\x00meters/0\x00\x00\x00\x00/meters/0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01")); - // device.send(Buffer.from("/subscribe\x00,si\x00/-stat/solosw/01\x001")); }; function parseAddress(msg) { diff --git a/src/device.js b/src/device.js index 846145a..9b51a29 100644 --- a/src/device.js +++ b/src/device.js @@ -27,8 +27,6 @@ function registerDevice(newDevice, discoveryMethod) { return false; } - // console.log("Registered new "+newDevice.type) - const id = newDevice.id || uuid(); devices[id] = { id, @@ -195,7 +193,6 @@ function initDeviceConnection(id) { device.send = (data) => {}; } - // device.plugin = plugins[type]; return true; } @@ -233,7 +230,6 @@ module.exports.changeActiveType = function changeActiveType(newType) { initDeviceConnection(device.id); VIEW.draw(device); VIEW.updateFields(); - // SAVESLOTS.saveAll(); }; module.exports.changeActiveIP = function changeActiveIP(newIP) { @@ -269,7 +265,6 @@ module.exports.changeActivePinIndex = function changeActivePinIndex(newPin) { module.exports.changePinIndex = function changePinIndex(device, newPin) { const d = device; d.pinIndex = newPin; - // SAVESLOTS.saveAll(); }; module.exports.refreshActive = function refreshActive() { const device = VIEW.getActiveDevice(); diff --git a/src/saveSlots.js b/src/saveSlots.js index 1a95a53..2ef2273 100644 --- a/src/saveSlots.js +++ b/src/saveSlots.js @@ -25,7 +25,6 @@ if (storedDevices) { function loadSlot(slotIndex) { VIEW.toggleSlotButtons(slotIndex); activeSlot = slotIndex; - console.log(DEVICE.all); Object.keys(DEVICE.all).forEach((d) => { DEVICE.changePinIndex(DEVICE.all[d], false); diff --git a/src/view.js b/src/view.js index c828782..3b3c3ab 100644 --- a/src/view.js +++ b/src/view.js @@ -2,7 +2,6 @@ const { ipcRenderer } = require('electron'); const DEVICE = require('./device.js'); const PLUGINS = require('./plugins.js'); const { saveAll } = require('./saveSlots.js'); -// const _ = require('lodash/function'); const pinnedDevices = []; module.exports.pinnedDevices = pinnedDevices; @@ -42,9 +41,6 @@ function drawDeviceFrame(id) { str += generateBodyHTML(d); - // str += ""; - // str += ""; - str += ''; $deviceDrawArea.setAttribute('class', `${d.type} draw-area`); @@ -158,14 +154,12 @@ function switchDevice(id) { document.getElementById('all-devices').style.gridTemplateColumns = `repeat(${cols}, 1fr)`; if (id === undefined) { - // document.getElementById('refresh-device-button').style.opacity = 0.2; document.getElementById('refresh-device-button').disabled = true; document.getElementById('device-settings-table').style.display = 'none'; return; } document.getElementById('refresh-device-button').disabled = false; - // document.getElementById('refresh-device-button').style.opacity = 1; const i = DEVICE.all[id].id; const $deviceWrapper = document.getElementById(`device-${i}`); @@ -173,8 +167,6 @@ function switchDevice(id) { if (!$deviceWrapper) { const html = `
`; document.getElementById('all-devices').insertAdjacentHTML('afterbegin', html); - - // $deviceWrapper = document.getElementById(`device-${i}`); } window.switchClass(document.getElementById(id), 'active-device'); @@ -210,7 +202,7 @@ function updateFields() { fields.forEach((field) => { const $elem = document.createElement('input'); $elem.type = 'text'; - $elem.value = activeDevice.fields[field.key]; // || field.value; + $elem.value = activeDevice.fields[field.key]; $elem.name = field.key; $elem.onchange = function onchange(e) { activeDevice.fields[field.key] = $elem.value;