refactor(controller): added more plants to the test file thats turning into the main update file
This commit is contained in:
@@ -74,6 +74,13 @@
|
||||
</div>
|
||||
|
||||
<div id="logWindow"></div>
|
||||
<div>
|
||||
<button id="USMCD1VMS036">USMCD1VMS036</button>
|
||||
<button id="USBET1VMS006">USBET1VMS006</button>
|
||||
<button id="USBOW1VMS006">USBOW1VMS006</button>
|
||||
<button id="USSLC1VMS006">USSLC1VMS006</button>
|
||||
<button id="USSTP1VMS006">USSTP1VMS006</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// ✅ Define socket in global scope
|
||||
@@ -198,6 +205,50 @@
|
||||
};
|
||||
};
|
||||
|
||||
// all the server copy buttons
|
||||
document.getElementById("USMCD1VMS036").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USMCD1VMS036",
|
||||
drive: "e",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USMCD1VMS036");
|
||||
};
|
||||
|
||||
document.getElementById("USBET1VMS006").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USBET1VMS006",
|
||||
drive: "e",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USBET1VMS006");
|
||||
};
|
||||
document.getElementById("USBOW1VMS006").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USBOW1VMS006",
|
||||
drive: "e",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USBOW1VMS006");
|
||||
};
|
||||
document.getElementById("USSLC1VMS006").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USSLC1VMS006",
|
||||
drive: "e",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USSLC1VMS006");
|
||||
};
|
||||
|
||||
document.getElementById("USSTP1VMS006").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USSTP1VMS006",
|
||||
drive: "d",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USSLC1VMS006");
|
||||
};
|
||||
|
||||
socket.on("logs", (msg) => logMessage("logs", msg));
|
||||
socket.on("errors", (msg) => logMessage("errors", msg));
|
||||
socket.on("buildlogs", (msg) => logMessage("build", msg));
|
||||
|
||||
Reference in New Issue
Block a user