github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/server/camlistored/ui/debug.html (about)

     1  <!doctype html>
     2  <html>
     3  <head>
     4  	<title>Camlistored UI</title>
     5  	<script src="closure/goog/base.js"></script>
     6  	<script src="./deps.js"></script>
     7  	<script src="?camli.mode=config&var=CAMLISTORE_CONFIG"></script>
     8  	<script>
     9  		goog.require('cam.DebugPage');
    10  	</script>
    11  
    12  </head>
    13  <body>
    14  	<form>
    15  		<h2>Root Discovery</h2>
    16  		<p><input type="button" id="discobtn" value="Do Discovery" /></p>
    17  		<div id="discores" style="border: 2px solid gray">(discovery results)</div>
    18  
    19  		<h2>Signing Discovery</h2>
    20  		<p><input type="button" id="sigdiscobtn" value="Do jsonSign discovery" /></p>
    21  		<div id="sigdiscores" style="border: 2px solid gray">(jsonsign discovery results)</div>
    22  
    23  		<h2>Signing Debug</h2>
    24  		<table>
    25  		<tr align='left'>
    26  			<th>JSON blob to sign: <input type='button' id='addkeyref' value="Add keyref"/></th>
    27  			<th></th>
    28  			<th>Signed blob:</th>
    29  			<th></th>
    30  			<th>Verification details:</th>
    31  		</tr>
    32  		<tr>
    33  			<td><textarea id='clearjson' rows=10 cols=40>{"camliVersion": 1, "camliType": "whatever", "foo": "bar"}</textarea></td>
    34  			<td valign='middle'><input type='button' id='sign' value="Sign &gt;&gt;" /></td>
    35  			<td><textarea id="signedjson" rows=10 cols=40></textarea></td>
    36  			<td valign='middle'><input type='button' id='verify' value="Verify &gt;&gt;" /></td>
    37  			<td><div id='verifyinfo'></div></td>
    38  		</tr>
    39  		</table>
    40  	</form>
    41  
    42  	<script>
    43  		var page = new cam.DebugPage(CAMLISTORE_CONFIG);
    44  		page.decorate(document.body);
    45  	</script>
    46  </body>
    47  </html>