Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert MEP queue table to data tables #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions NES-MEP-UI-SPIFFS/Generate_wwws.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

cd "$(dirname "$1")"
rm update.wwws
for file in www_*; do
echo "/$file" >> update.wwws
cat "$file" >> update.wwws
echo >> update.wwws
done

read -p "Press any key to continue . . ."
50 changes: 38 additions & 12 deletions NES-MEP-UI-SPIFFS/update.wwws
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,21 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://cdn.datatables.net/v/dt/jq-3.6.0/dt-1.13.4/b-2.3.6/b-html5-2.3.6/datatables.min.css" rel="stylesheet"/>
<script src="https://cdn.datatables.net/v/dt/jq-3.6.0/dt-1.13.4/b-2.3.6/b-html5-2.3.6/datatables.min.js"></script>
<script>
$(document).ready( function () {
$('#MEPQueueTable').dataTable( {
pageLength: 10,
dom: 'Bfrti',
buttons: [
'copyHtml5',
'csvHtml5'
],
paging: false
});
});
</script>
</head>
<body>
###FILE:/menu-include.html###
Expand All @@ -226,18 +241,24 @@
<input type=submit value="Send" />
</form>
<center>
<table id="header">
<tr>
<th>Index</th>
<th>Millis</th>
<th>Request</th>
<th>Tries</th>
<th width="50%">Response</th>
<th width="450">Decoded Request and Response</th>
<th>Next Action</th>
</tr>
###MEPQueue###
</table>
<div class="table-wrapper">
<table id="MEPQueueTable">
<thead>
<tr>
<th>Index</th>
<th>Millis</th>
<th>Request</th>
<th>Tries</th>
<th width="50%">Response</th>
<th width="450">Decoded Request and Response</th>
<th>Next Action</th>
</tr>
</thead>
<tbody>
###MEPQueue###
</tbody>
</table>
</div>
</center>
</body>
</html>
Expand Down Expand Up @@ -790,4 +811,9 @@ input {
height: 10px;
}

.table-wrapper {
background-color: #fff;
padding: 1em;
}


44 changes: 32 additions & 12 deletions NES-MEP-UI-SPIFFS/www_homeIndex.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://cdn.datatables.net/v/dt/jq-3.6.0/dt-1.13.4/b-2.3.6/b-html5-2.3.6/datatables.min.css" rel="stylesheet"/>
<script src="https://cdn.datatables.net/v/dt/jq-3.6.0/dt-1.13.4/b-2.3.6/b-html5-2.3.6/datatables.min.js"></script>
<script>
$(document).ready( function () {
$('#MEPQueueTable').dataTable( {
dom: 'Bfrti',
buttons: [
'copyHtml5',
'csvHtml5'
],
paging: false
});
});
</script>
</head>
<body>
###FILE:/menu-include.html###
Expand All @@ -25,18 +39,24 @@ <h1>Send RAW MEP request message</h1>
<input type=submit value="Send" />
</form>
<center>
<table id="header">
<tr>
<th>Index</th>
<th>Millis</th>
<th>Request</th>
<th>Tries</th>
<th width="50%">Response</th>
<th width="450">Decoded Request and Response</th>
<th>Next Action</th>
</tr>
###MEPQueue###
</table>
<div class="table-wrapper">
<table id="MEPQueueTable">
<thead>
<tr>
<th>Index</th>
<th>Millis</th>
<th>Request</th>
<th>Tries</th>
<th width="50%">Response</th>
<th width="450">Decoded Request and Response</th>
<th>Next Action</th>
</tr>
</thead>
<tbody>
###MEPQueue###
</tbody>
</table>
</div>
</center>
</body>
</html>
5 changes: 5 additions & 0 deletions NES-MEP-UI-SPIFFS/www_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ input {
height: 10px;
}

.table-wrapper {
background-color: #fff;
padding: 1em;
}