Added project
This commit is contained in:
parent
fe9aa14dfd
commit
2d73cc8845
186 changed files with 21174 additions and 0 deletions
23
lib-build/debug-server/www_views/index.ejs
Normal file
23
lib-build/debug-server/www_views/index.ejs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" ng-app="xdsUI">
|
||||
<head>
|
||||
<title><%= pageTitle %></title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="keywords" content="<%= pageKeywords %>">
|
||||
<% if (pageCssFiles.length) { %><% pageCssFiles.forEach(function (cssFile) { %><link rel="stylesheet" href="<%= cssFile %>"><% }) %><% } %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<div ng-include="'/ui/thtml/layout/header'"></div>
|
||||
<div id="page-wrapper">
|
||||
<div id="container-fluid">
|
||||
<div ng-view></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-include="'/ui/thtml/layout/footer'"></div>
|
||||
<% if (pageJsFiles.length) { %><% pageJsFiles.forEach(function (jsFile) { %><script src="<%= jsFile %>"></script><% }) %><% } %>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<div>
|
||||
<h1>400</h1>
|
||||
<h2>Page Not Found</h2>
|
||||
<pre>
|
||||
Please check you url.
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<div>
|
||||
<h1>500</h1>
|
||||
<h2>Server Error</h2>
|
||||
<pre>
|
||||
Sorry server at fault.
|
||||
</pre>
|
||||
</div>
|
||||
7
lib-build/debug-server/www_views/thtml/layout/footer.ejs
Normal file
7
lib-build/debug-server/www_views/thtml/layout/footer.ejs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<nav class="navbar">
|
||||
<div class="navbar-footer">
|
||||
<a href="/ui/">Home</a> | -
|
||||
<a href="/ui/server/about">About</a> | -
|
||||
<a href="/ui/server/routes">Routes<a/>
|
||||
</div>
|
||||
</nav>
|
||||
16
lib-build/debug-server/www_views/thtml/layout/header.ejs
Normal file
16
lib-build/debug-server/www_views/thtml/layout/header.ejs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/ui/">Home</a>
|
||||
<a class="navbar-brand" href="/ui/admin/xnode/list">XNodes</a>
|
||||
<a class="navbar-brand" href="/ui/admin/xnode-base/list">XNodeBase</a>
|
||||
<a class="navbar-brand" href="/ui/admin/xsystem-state/list">XSysState</a>
|
||||
<a class="navbar-brand" href="/ui/admin/xsystem-session/list">XSysSession</a>
|
||||
</div>
|
||||
<div id="menuLogo"></div>
|
||||
</nav>
|
||||
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