feat(app): added better auth for better auth stuff vs my home written broken one

This commit is contained in:
2025-09-18 21:46:01 -05:00
parent 21608b0171
commit caf2315191
16 changed files with 648 additions and 25 deletions

View File

@@ -1,3 +1,3 @@
# What type of deploy ment do we have for the frontend
NODE_ENV=dev
APP_MODE=dev

View File

@@ -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));