add bootstrap to DS, stub fulfilled and queued assignments on index page

This commit is contained in:
Stephen Birarda 2013-10-22 17:38:14 -07:00
parent d44a82fce1
commit fdf9b05dab
16 changed files with 9666 additions and 2 deletions

View file

@ -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'>

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,3 @@
</div>
<script src='js/jquery-2.0.3.min.js'></script>
<script src="js/bootstrap.min.js"></script>

View 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">

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -1 +0,0 @@
If you can see this, your domain-server is alive and kicking. Go explore!

View 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"-->

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View 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);
});

View file

@ -0,0 +1,2 @@
</body>
</html>