OpenInsightApplicationProgrammingInterface

This commit is contained in:
2023-07-27 16:22:23 -07:00
parent 9717fcb3bf
commit f54b93c0d6
7 changed files with 107 additions and 49 deletions

View File

@ -1,5 +1,7 @@
"use strict";
console.log(appSettings.OpenInsightApplicationProgrammingInterface);
var connection = new signalR.HubConnectionBuilder()
.withUrl("/NotificationHub")
.build();
@ -35,12 +37,9 @@ connection.on("NotifyAll", function (data) {
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,
$.getJSON(appSettings.OpenInsightApplicationProgrammingInterface + "/materials/rds/" + postResult.LotName,
function (data) {
document.getElementById("recipe").innerText =
data.rds.rdsLayers.length;
document.getElementById("recipe").innerText = data.rds.rdsLayers.length;
},
);
}
@ -50,7 +49,7 @@ connection.on("NotifyAll", function (data) {
connection
.start()
.then(function () {})
.then(function () { })
.catch(function (err) {
return console.error(err.toString());
});