add dashboard for testing
This commit is contained in:
parent
cae03f0e30
commit
8e5421ed17
5 changed files with 100 additions and 8 deletions
24
public/scripts/test.js
Normal file
24
public/scripts/test.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
console.log("Hello, World!");
|
||||
|
||||
function sendToOutput(message){
|
||||
document.getElementById("output").value += message + "\n";
|
||||
}
|
||||
|
||||
function getHeartBeatInfo(){
|
||||
fetch("http://localhost:36530/heartbeat/info").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
|
||||
}
|
||||
|
||||
// Sync Price Slot Command Shortcuts
|
||||
//
|
||||
//
|
||||
function getSyncPriceInfo(){
|
||||
fetch("http://localhost:36530/syncProfilePriceSlotSheet/info").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
|
||||
}
|
||||
|
||||
function setSyncPriceRunTest(){
|
||||
fetch("http://localhost:36530/syncProfilePriceSlotSheet/run/test").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
|
||||
}
|
||||
|
||||
function setSyncPriceRunNow(){
|
||||
fetch("http://localhost:36530/syncProfilePriceSlotSheet/run/now").then(response => response.json()).then(data => sendToOutput(JSON.stringify(data)));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue