feat(app): added better auth for better auth stuff vs my home written broken one
This commit is contained in:
@@ -78,8 +78,10 @@
|
||||
<button id="USMCD1VMS036">USMCD1VMS036</button>
|
||||
<button id="USBET1VMS006">USBET1VMS006</button>
|
||||
<button id="USBOW1VMS006">USBOW1VMS006</button>
|
||||
<button id="USKSC1VMS006">USKSC1VMS006</button>
|
||||
<button id="USSLC1VMS006">USSLC1VMS006</button>
|
||||
<button id="USSTP1VMS006">USSTP1VMS006</button>
|
||||
<button id="USDAY1VMS006">USDAY1VMS006</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
@@ -168,23 +170,23 @@
|
||||
const updateServerButton =
|
||||
document.getElementById("updateServerButton");
|
||||
|
||||
button.onclick = () => {
|
||||
const fromMyInput = input.value;
|
||||
if (!fromMyInput) return;
|
||||
// button.onclick = () => {
|
||||
// const fromMyInput = input.value;
|
||||
// if (!fromMyInput) return;
|
||||
|
||||
// Emit to backend (adjust event name as required)
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: fromMyInput,
|
||||
});
|
||||
// // Emit to backend (adjust event name as required)
|
||||
// socket.emit("update", {
|
||||
// action: "copy",
|
||||
// target: fromMyInput,
|
||||
// });
|
||||
|
||||
// You can define your own logMessage function
|
||||
logMessage("info", `Copying to ${fromMyInput}`);
|
||||
// // You can define your own logMessage function
|
||||
// logMessage("info", `Copying to ${fromMyInput}`);
|
||||
|
||||
input.value = "";
|
||||
// input.value = "";
|
||||
|
||||
input.focus();
|
||||
};
|
||||
// input.focus();
|
||||
// };
|
||||
|
||||
updateServerButton.onclick = () => {
|
||||
const fromMyInput = updateServerInput.value;
|
||||
@@ -246,7 +248,23 @@
|
||||
target: "USSTP1VMS006",
|
||||
drive: "d",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USSLC1VMS006");
|
||||
logMessage("info", "Copying to USSTP1VMS006");
|
||||
};
|
||||
document.getElementById("USKSC1VMS006").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USksc1VMS006",
|
||||
drive: "e",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USKSC1VMS006");
|
||||
};
|
||||
document.getElementById("USDAY1VMS006").onclick = () => {
|
||||
socket.emit("update", {
|
||||
action: "copy",
|
||||
target: "USDAY1VMS006",
|
||||
drive: "e",
|
||||
}); // "frontend" = payload target
|
||||
logMessage("info", "Copying to USDAY1VMS006");
|
||||
};
|
||||
|
||||
socket.on("logs", (msg) => logMessage("logs", msg));
|
||||
|
||||
Reference in New Issue
Block a user