mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-21 13:18:59 +00:00
add support for multiple PSN servers
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
</header>
|
||||
|
||||
<div>
|
||||
<h2>Tracker Count: <%= Object.keys(data.data.trackers).length %></h2>
|
||||
<% Object.keys(data).forEach((address) => {
|
||||
const instanceData = data[address]
|
||||
%>
|
||||
<h2>Server: <%= instanceData.info.system_name ? instanceData.info.system_name : ''%> (<%= address %>)</h2>
|
||||
<h3>Tracker Count: <%= Object.keys(instanceData.data.trackers).length %></h3>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
@@ -15,43 +19,40 @@
|
||||
<th></th>
|
||||
<th colspan="3">ACCEL</th>
|
||||
<th colspan="3">TRGTPOS</th>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>validity</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>tracker_timestamp</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>validity</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>x</th>
|
||||
<th>y</th>
|
||||
<th>z</th>
|
||||
|
||||
<th>tracker_timestamp</th>
|
||||
</tr>
|
||||
|
||||
<% Object.entries(data.info.trackers).forEach(([trackerId,trackerInfo]) => {
|
||||
const trackerData = data.data.trackers[trackerId]
|
||||
<% Object.entries(instanceData.info.trackers).forEach(([trackerId,trackerInfo]) => {
|
||||
const trackerData = instanceData.data.trackers[trackerId]
|
||||
%>
|
||||
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<td><%= trackerId %></td>
|
||||
<td><%= trackerInfo.name %></td>
|
||||
|
||||
@@ -84,12 +85,12 @@
|
||||
|
||||
<!-- pos -->
|
||||
<td><%= trackerData.tracker_timestamp %></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<% }); %>
|
||||
|
||||
</table>
|
||||
<%
|
||||
});
|
||||
%>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user