Pipeline
This commit is contained in:
@ -8,8 +8,14 @@ html {
|
||||
}
|
||||
}
|
||||
|
||||
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
|
||||
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
|
||||
.btn:focus,
|
||||
.btn:active:focus,
|
||||
.btn-link.nav-link:focus,
|
||||
.form-control:focus,
|
||||
.form-check-input:focus {
|
||||
box-shadow:
|
||||
0 0 0 0.1rem white,
|
||||
0 0 0 0.25rem #258cfb;
|
||||
}
|
||||
|
||||
html {
|
||||
@ -19,4 +25,4 @@ html {
|
||||
|
||||
body {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,56 @@
|
||||
"use strict";
|
||||
|
||||
var connection = new signalR.HubConnectionBuilder().withUrl("/NotificationHub").build();
|
||||
var connection = new signalR.HubConnectionBuilder()
|
||||
.withUrl("/NotificationHub")
|
||||
.build();
|
||||
|
||||
connection.on("NotifyAll", function (data) {
|
||||
if (data.keyPressEvent && data.lastScanServiceResultValue) {
|
||||
var innerText = `${data.keyPressEvent.dateTime} - [${data.lastScanServiceResultValue}]`;
|
||||
document.getElementById("lastScanServiceResultValue").innerText = innerText;
|
||||
if (!data.keyPressEvent || !data.lastScanServiceResultValue) {
|
||||
if (!data.httpContentBody) {
|
||||
document.getElementById("lastScanServiceResultValue").innerText = "";
|
||||
}
|
||||
else if (data.httpContentBody) {
|
||||
var innerText = `${data.httpContentBody}]`; //JSON.parse() // JSON.stringify()
|
||||
document.getElementById("httpContentBody").innerText = innerText;
|
||||
} else {
|
||||
var innerText = `${data.keyPressEvent.dateTime} - [${data.lastScanServiceResultValue}]`;
|
||||
document.getElementById("lastScanServiceResultValue").innerText = innerText;
|
||||
}
|
||||
if (!data.httpContentBody) {
|
||||
if (!data.keyPressEvent || !data.lastScanServiceResultValue) {
|
||||
document.getElementById("httpContentBody").innerText = data;
|
||||
document.getElementById("mId").innerText = "";
|
||||
document.getElementById("recipe").innerText = "";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("httpContentBody").innerText = data.httpContentBody;
|
||||
var postResult = JSON.parse(data.httpContentBody);
|
||||
if (!postResult.MId) {
|
||||
document.getElementById("mId").innerText = "";
|
||||
} else {
|
||||
document.getElementById(
|
||||
"mId",
|
||||
).innerText = `Use ${postResult.MId} for the wafer and input id`;
|
||||
}
|
||||
if (!postResult.Recipe) {
|
||||
document.getElementById("recipe").innerText = "";
|
||||
} else {
|
||||
if (postResult.Recipe != "Recipe") {
|
||||
document.getElementById("recipe").innerText = postResult.Recipe;
|
||||
} else {
|
||||
$.getJSON(
|
||||
"https://oi-prod-ec-api.mes.infineon.com/api/oiWizard/materials/rds/" +
|
||||
postResult.LotName,
|
||||
function (data) {
|
||||
document.getElementById("recipe").innerText =
|
||||
data.rds.rdsLayers.length;
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
connection.start().then(function () {
|
||||
}).catch(function (err) {
|
||||
connection
|
||||
.start()
|
||||
.then(function () {})
|
||||
.catch(function (err) {
|
||||
return console.error(err.toString());
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user