use api for local list to normalize with exports and for future encryption options
This commit is contained in:
parent
0d0b24a3ee
commit
5a3c1e0ca3
1 changed files with 29 additions and 31 deletions
|
|
@ -1884,16 +1884,14 @@
|
|||
|
||||
function showLocal() {
|
||||
showModal('local');
|
||||
fetch("https://live.grid.space/api/grid_local")
|
||||
.then(r => r.json())
|
||||
.then(j => {
|
||||
API.probe.local((err,data) => {
|
||||
let devc = 0;
|
||||
let bind = [];
|
||||
let html = ['<table>'];
|
||||
html.push(`<thead><tr><th>device</th><th>type</th><th>status</th><th></th></tr></thead>`);
|
||||
html.push(`<tbody>`);
|
||||
for (let k in j) {
|
||||
let r = j[k].stat;
|
||||
for (let k in data) {
|
||||
let r = data[k].stat;
|
||||
bind.push({uuid: r.device.uuid, host: r.device.addr[0], port: r.device.port});
|
||||
html.push(`<tr>`);
|
||||
html.push(`<td>${r.device.name}</td>`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue