2013-06-11 09:50:56 +00:00
|
|
|
<!doctype html>
|
2011-04-16 22:44:22 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2013-06-11 09:50:56 +00:00
|
|
|
<title>Camlistored UI</title>
|
|
|
|
<script src="closure/goog/base.js"></script>
|
|
|
|
<script src="./deps.js"></script>
|
|
|
|
<script src="?camli.mode=config&var=CAMLISTORE_CONFIG"></script>
|
|
|
|
<script>
|
2014-01-08 05:28:01 +00:00
|
|
|
goog.require('cam.DebugPage');
|
2013-06-11 09:50:56 +00:00
|
|
|
</script>
|
2011-05-26 04:56:48 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form>
|
|
|
|
<h2>Root Discovery</h2>
|
|
|
|
<p><input type="button" id="discobtn" value="Do Discovery" /></p>
|
|
|
|
<div id="discores" style="border: 2px solid gray">(discovery results)</div>
|
2011-06-04 23:35:48 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<h2>Signing Discovery</h2>
|
|
|
|
<p><input type="button" id="sigdiscobtn" value="Do jsonSign discovery" /></p>
|
|
|
|
<div id="sigdiscores" style="border: 2px solid gray">(jsonsign discovery results)</div>
|
2011-07-02 15:15:00 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<h2>Signing Debug</h2>
|
|
|
|
<table>
|
|
|
|
<tr align='left'>
|
|
|
|
<th>JSON blob to sign: <input type='button' id='addkeyref' value="Add keyref"/></th>
|
|
|
|
<th></th>
|
|
|
|
<th>Signed blob:</th>
|
|
|
|
<th></th>
|
|
|
|
<th>Verification details:</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><textarea id='clearjson' rows=10 cols=40>{"camliVersion": 1, "camliType": "whatever", "foo": "bar"}</textarea></td>
|
|
|
|
<td valign='middle'><input type='button' id='sign' value="Sign >>" /></td>
|
|
|
|
<td><textarea id="signedjson" rows=10 cols=40></textarea></td>
|
|
|
|
<td valign='middle'><input type='button' id='verify' value="Verify >>" /></td>
|
|
|
|
<td><div id='verifyinfo'></div></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2011-04-16 22:44:22 +00:00
|
|
|
|
2013-06-11 09:50:56 +00:00
|
|
|
<script>
|
2014-01-08 05:28:01 +00:00
|
|
|
var page = new cam.DebugPage(CAMLISTORE_CONFIG);
|
2013-06-11 09:50:56 +00:00
|
|
|
page.decorate(document.body);
|
|
|
|
</script>
|
2011-04-16 22:44:22 +00:00
|
|
|
</body>
|
|
|
|
</html>
|