eslint fix spaced-comment errors

This commit is contained in:
Sam Schloegel
2022-01-03 14:40:10 -05:00
parent aec191e178
commit 83c46db661
13 changed files with 57 additions and 57 deletions
+10 -10
View File
@@ -39,7 +39,7 @@ registerDevice = function (newDevice) {
}
}
//console.log("Registered new "+newDevice.type)
// console.log("Registered new "+newDevice.type)
var id = newDevice.id || uuid();
devices[id] = {
@@ -92,7 +92,7 @@ initDeviceConnection = function (id) {
});
device.connection.open();
device.connection.on('error', function (error) {
//console.error(error)
// console.error(error)
device.connection.close();
});
device.connection.on('ready', function () {
@@ -102,7 +102,7 @@ initDeviceConnection = function (id) {
}
});
device.connection.on('message', function (message) {
//log("OSC IN", message.address);
// log("OSC IN", message.address);
plugins[type].data(device, message);
device.lastMessage = Date.now();
});
@@ -119,7 +119,7 @@ initDeviceConnection = function (id) {
);
device.connection.on('error', function (error) {
//console.error(error)
// console.error(error)
});
device.connection.on('ready', function () {
plugins[type].ready(device);
@@ -128,13 +128,13 @@ initDeviceConnection = function (id) {
}
});
device.connection.on('data', function (message) {
//log("SOCK IN", message);
// log("SOCK IN", message);
plugins[type].data(device, message);
device.lastMessage = Date.now();
infoUpdate(device, 'status', 'ok');
});
device.send = function (data) {
//log("SOCK OUT", data);
// log("SOCK OUT", data);
device.connection.write(data);
};
} else if (plugins[type].connectionType == 'UDPsocket') {
@@ -155,7 +155,7 @@ initDeviceConnection = function (id) {
device.port,
device.addresses[0],
function (err) {
//console.log(err);
// console.log(err);
}
);
};
@@ -186,7 +186,7 @@ module.exports.changeActiveType = function (newType) {
initDeviceConnection(device.id);
VIEW.draw(device);
//SAVESLOTS.saveAll();
// SAVESLOTS.saveAll();
};
module.exports.changeActiveIP = function (newIP) {
@@ -221,7 +221,7 @@ module.exports.changeActivePinIndex = function (newPin) {
};
module.exports.changePinIndex = function (device, newPin) {
device.pinIndex = newPin;
//SAVESLOTS.saveAll();
// SAVESLOTS.saveAll();
};
module.exports.refreshActive = function () {
var device = VIEW.getActiveDevice();
@@ -255,7 +255,7 @@ function heartbeat() {
if (device.port != undefined && device.addresses.length > 0) {
PLUGINS.all[device.type].heartbeat(device);
} else {
//console.error("Invalid IP/Port on device "+device.name)
// console.error("Invalid IP/Port on device "+device.name)
}
}
device.lastHeartbeat = Date.now();
+3 -3
View File
@@ -8,10 +8,10 @@ document.getElementById('search-button').onclick = function (e) {
window.searchAll();
};
document.getElementById('add-device-button').onclick = function (e) {
//e.stopPropagation();
//document.getElementById("add-device-popover").style.display = "block";
// e.stopPropagation();
// document.getElementById("add-device-popover").style.display = "block";
};
window.closePopovers = function () {
//document.getElementById("add-device-popover").style.display = "none";
// document.getElementById("add-device-popover").style.display = "none";
};
+1 -1
View File
@@ -28,7 +28,7 @@ loadSlot = function (slotIndex) {
var savedDevice = savedSlots[slotIndex][d];
for (var d in DEVICE.all) {
var device = DEVICE.all[d];
//if(device.addresses[0] == savedDevice.addresses[0] && device.type == savedDevice.type){
// if(device.addresses[0] == savedDevice.addresses[0] && device.type == savedDevice.type){
if (device.id == savedDevice.id) {
VIEW.pinDevice(device);
VIEW.switchDevice(device.id);
+9 -9
View File
@@ -20,7 +20,7 @@ searchAll = function () {
searching = true;
ipcRenderer.send('disableSearchAll', '');
document.getElementById('search-button').style.opacity = 0.2;
//console.clear();
// console.clear();
for (var i in DEVICE.all) {
DEVICE.infoUpdate(DEVICE.all[i], 'status', 'refresh');
@@ -28,7 +28,7 @@ searchAll = function () {
console.log('Searching...');
//findOnlineDevices();
// findOnlineDevices();
allServers = getServers();
var TCPFlag = true;
if (allServers.length > 2046) {
@@ -62,9 +62,9 @@ searchAll = function () {
}
}
//searchBonjour();
//searchTCP();
//searchUDP();
// searchBonjour();
// searchTCP();
// searchUDP();
setTimeout(function () {
searching = false;
@@ -166,7 +166,7 @@ TCPtest = function (ip, pluginType, plugin) {
client.end();
});
client.on('error', function (err) {
//no device here
// no device here
});
};
@@ -301,7 +301,7 @@ newSearchUDP = function (pluginType, plugin) {
plugin.searchOptions.devicePort,
'255.255.255.255',
(err) => {
//console.log(err)
// console.log(err)
}
);
setTimeout(function () {
@@ -310,7 +310,7 @@ newSearchUDP = function (pluginType, plugin) {
plugin.searchOptions.devicePort,
'255.255.255.255',
(err) => {
//console.log(err)
// console.log(err)
}
);
}, 100);
@@ -320,7 +320,7 @@ newSearchUDP = function (pluginType, plugin) {
plugin.searchOptions.devicePort,
'255.255.255.255',
(err) => {
//console.log(err)
// console.log(err)
}
);
}, 400);
+4 -4
View File
@@ -33,7 +33,7 @@ drawDeviceInterface = function (id) {
".css' rel='stylesheet' type='text/css'>";
}
//scrollbar styles are inline to prevent the styles flickering in
// scrollbar styles are inline to prevent the styles flickering in
str += '<style>';
str += '::-webkit-scrollbar {background-color: black;width: 12px;}';
str += '::-webkit-scrollbar-track {background-color: #2b2b2b;}';
@@ -142,13 +142,13 @@ switchDevice = function (id) {
'repeat(' + cols + ', 1fr)';
if (id == undefined) {
//document.getElementById('refresh-device-button').style.opacity = 0.2;
// 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 true;
} else {
document.getElementById('refresh-device-button').disabled = false;
//document.getElementById('refresh-device-button').style.opacity = 1;
// document.getElementById('refresh-device-button').style.opacity = 1;
}
var i = DEVICE.all[id].id;
@@ -218,7 +218,7 @@ module.exports.unpinDevice = function (device) {
module.exports.resetPinned = function () {
pinnedDevices.length = 0;
activeDevice = false;
//switchDevice();
// switchDevice();
try {
document
.querySelector('#device-list .active-device')