Added project
This commit is contained in:
parent
fe9aa14dfd
commit
2d73cc8845
186 changed files with 21174 additions and 0 deletions
5
lib-build/debug-server/www_views/thtml/server/about.ejs
Normal file
5
lib-build/debug-server/www_views/thtml/server/about.ejs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<div>
|
||||
<h2>About</h2>
|
||||
<p>Testing debug server for xensit xnodes.</p>
|
||||
<p>Internal use only.</p>
|
||||
</div>
|
||||
96
lib-build/debug-server/www_views/thtml/server/dash.ejs
Normal file
96
lib-build/debug-server/www_views/thtml/server/dash.ejs
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
extends layout
|
||||
|
||||
block content
|
||||
h1= title
|
||||
div
|
||||
h2 Last five node data.
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th Net id
|
||||
th Node Id
|
||||
th Value
|
||||
tbody
|
||||
each row in lastData
|
||||
tr
|
||||
td #{row.net_id}
|
||||
td #{row.node_id}
|
||||
td
|
||||
p #{row.insert_date}
|
||||
p #{row.data_text}
|
||||
|
||||
div(id='split')
|
||||
div(id='splitLeft')
|
||||
div
|
||||
h2 Last five node values.
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th Net id
|
||||
th Name
|
||||
th Value
|
||||
th insert_date
|
||||
tbody
|
||||
each row in lastValues
|
||||
tr
|
||||
td #{row.net_id}
|
||||
td #{row.name}
|
||||
td #{row.value}
|
||||
td #{row.insert_date}
|
||||
div
|
||||
h2 Last five changed settings
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th Name
|
||||
th Value
|
||||
tbody
|
||||
each row in lastSettings
|
||||
tr
|
||||
td #{row.name}
|
||||
td #{row.value}
|
||||
|
||||
div(id='splitRight')
|
||||
div
|
||||
h2 Last five pings
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th Net id
|
||||
th Ping Count
|
||||
th Ping Last
|
||||
tbody
|
||||
each xnode in lastPinged
|
||||
tr
|
||||
td #{xnode.hw_net_id}
|
||||
td #{xnode.ping_counter}
|
||||
td #{xnode.ping_last_date}
|
||||
div
|
||||
h2 Last five open Cmds
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th Net id
|
||||
th Command
|
||||
th Insert date
|
||||
tbody
|
||||
each xnode in openCommands
|
||||
tr
|
||||
td #{xnode.net_id}
|
||||
td #{xnode.command}
|
||||
td #{xnode.insert_date}
|
||||
div
|
||||
h2 Last five send Cmds
|
||||
table
|
||||
thead
|
||||
tr
|
||||
th Net id
|
||||
th Command
|
||||
th Send date
|
||||
tbody
|
||||
each xnode in sendCommands
|
||||
tr
|
||||
td #{xnode.net_id}
|
||||
td #{xnode.command}
|
||||
td #{xnode.send_date}
|
||||
|
||||
5
lib-build/debug-server/www_views/thtml/server/index.ejs
Normal file
5
lib-build/debug-server/www_views/thtml/server/index.ejs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<div>
|
||||
<h2>XNode Debug Server Home</h2>
|
||||
<p>Welcome</p>
|
||||
<p>Make your self at home.</p>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<div class="table-responsive">
|
||||
<h3><%= routeGroup.toUpperCase() %></h3>
|
||||
<table class="table table-bordered table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Path</th>
|
||||
<th>Method</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="route in serverRoutes['<%= routeGroup %>']">
|
||||
<td>{{route.uriPath}}</td>
|
||||
<td>{{route.httpMethod}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
28
lib-build/debug-server/www_views/thtml/server/routes.ejs
Normal file
28
lib-build/debug-server/www_views/thtml/server/routes.ejs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<div>
|
||||
<h2>Server Routes</h2>
|
||||
<p>This page show all the nodejs express routes.</p>
|
||||
<div class="row">
|
||||
<% if (query.group1 && query.group2) { %>
|
||||
<div class="col-lg-6">
|
||||
<% query.group1.split(',').forEach(function (routeGroup) { %>
|
||||
<%- include('routes-group', {routeGroup: routeGroup}); %>
|
||||
<% }) %>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<% query.group2.split(',').forEach(function (routeGroup) { %>
|
||||
<%- include('routes-group', {routeGroup: routeGroup}); %>
|
||||
<% }) %>
|
||||
</div>
|
||||
<% } else if (query.group1) { %>
|
||||
<div class="col-lg-12">
|
||||
<% query.group1.split(',').forEach(function (routeGroup) { %>
|
||||
<%- include('routes-group', {routeGroup: routeGroup}); %>
|
||||
<% }) %>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<div class="col-lg-12">
|
||||
<%- include('routes-group', {routeGroup: 'all'}); %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue