mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 21:18:43 +02:00
add bootstrap to DS, stub fulfilled and queued assignments on index page
This commit is contained in:
parent
d44a82fce1
commit
fdf9b05dab
16 changed files with 9666 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<pre id='editor' style='font-size: 14px;'><!--#include "placeholder.js"--></pre>
|
||||
<script src='js/jquery-2.0.3.min.js'></script>
|
||||
<script src='../js/jquery-2.0.3.min.js'></script>
|
||||
<script src='js/ace/ace.js' type='text/javascript'></script>
|
||||
<script src='js/assignment.js' type='text/javascript'></script>
|
||||
<div class='big-button' id='deploy-button'>
|
||||
|
|
1109
domain-server/resources/web/css/bootstrap-responsive.css
vendored
Normal file
1109
domain-server/resources/web/css/bootstrap-responsive.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
9
domain-server/resources/web/css/bootstrap-responsive.min.css
vendored
Normal file
9
domain-server/resources/web/css/bootstrap-responsive.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6167
domain-server/resources/web/css/bootstrap.css
vendored
Normal file
6167
domain-server/resources/web/css/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
9
domain-server/resources/web/css/bootstrap.min.css
vendored
Normal file
9
domain-server/resources/web/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
3
domain-server/resources/web/footer.shtml
Normal file
3
domain-server/resources/web/footer.shtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
</div>
|
||||
<script src='js/jquery-2.0.3.min.js'></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
10
domain-server/resources/web/header.shtml
Normal file
10
domain-server/resources/web/header.shtml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>domain-server</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Bootstrap -->
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
BIN
domain-server/resources/web/img/glyphicons-halflings-white.png
Normal file
BIN
domain-server/resources/web/img/glyphicons-halflings-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
BIN
domain-server/resources/web/img/glyphicons-halflings.png
Normal file
BIN
domain-server/resources/web/img/glyphicons-halflings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -1 +0,0 @@
|
|||
If you can see this, your domain-server is alive and kicking. Go explore!
|
32
domain-server/resources/web/index.shtml
Normal file
32
domain-server/resources/web/index.shtml
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!--#include file="header.shtml"-->
|
||||
<h3>Active Nodes</h3>
|
||||
<table id="nodes-table" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>UUID</th>
|
||||
<th>Pool</th>
|
||||
<th>Public</th>
|
||||
<th>Local</th>
|
||||
<th>Kill?</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h3>Queued Assignments</h3>
|
||||
<table id="assignments-table" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>UUID</th>
|
||||
<th>Pool</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--#include file="footer.shtml"-->
|
||||
<script src='js/tables.js'></script>
|
||||
<!--#include file="page-end.shtml"-->
|
2280
domain-server/resources/web/js/bootstrap.js
vendored
Normal file
2280
domain-server/resources/web/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
6
domain-server/resources/web/js/bootstrap.min.js
vendored
Normal file
6
domain-server/resources/web/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
38
domain-server/resources/web/js/tables.js
Normal file
38
domain-server/resources/web/js/tables.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
$(document).ready(function(){
|
||||
// setup a function to grab the assignments
|
||||
function getAssignments() {
|
||||
$.getJSON("assignments.json", function (json) {
|
||||
assignedTableBody = "";
|
||||
|
||||
$.each(json.fulfilled, function (type, data) {
|
||||
assignedTableBody += "<tr>";
|
||||
assignedTableBody += "<td>" + type + "</td>";
|
||||
assignedTableBody += "<td>" + data.UUID + "</td>";
|
||||
assignedTableBody += "<td>" + (data.pool ? data.pool : "N/A") + "</td>";
|
||||
assignedTableBody += "<td>" + "</td>";
|
||||
assignedTableBody += "<td>" + "</td>";
|
||||
assignedTableBody += "<td>" + "</td>";
|
||||
assignedTableBody += "</tr>";
|
||||
});
|
||||
|
||||
$('#nodes-table tbody').html(assignedTableBody);
|
||||
|
||||
queuedTableBody = "";
|
||||
|
||||
$.each(json.queued, function (type, data) {
|
||||
queuedTableBody += "<tr>";
|
||||
queuedTableBody += "<td>" + type + "</td>";
|
||||
queuedTableBody += "<td>" + data.UUID + "</td>";
|
||||
queuedTableBody += "<td>" + (data.pool ? data.pool : "N/A") + "</td>";
|
||||
queuedTableBody += "</tr>";
|
||||
});
|
||||
|
||||
$('#assignments-table tbody').html(queuedTableBody);
|
||||
});
|
||||
}
|
||||
|
||||
// do the first GET on page load
|
||||
getAssignments();
|
||||
// grab the new assignments JSON every two seconds
|
||||
var getAssignmentsInterval = setInterval(getAssignments, 2000);
|
||||
});
|
2
domain-server/resources/web/page-end.shtml
Normal file
2
domain-server/resources/web/page-end.shtml
Normal file
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue