Add QR encoder to an API. Add rendering of shares as QR codes to front-end.

This commit is contained in:
Marko Zivanovic
2014-12-27 16:30:21 +01:00
parent f64282ced3
commit 8cfb98ecf5
7 changed files with 148 additions and 20 deletions
+17 -4
View File
@@ -32,10 +32,10 @@
</div>
<div class="row" ng-show="shares.length">
<div class="row">
<hr/>
<h1>Here are your secret shares ...</h1>
</div>
<!--<hr/>-->
<h1>Here are your secret shares ...</h1>
<!-- <div class="row">
</div>-->
<tabset>
<tab>
@@ -59,6 +59,19 @@
</div>
</div>
</tab>
<tab>
<tab-heading><i class="glyphicon glyphicon-qrcode"></i> QR codes</tab-heading>
<div class="panel panel-default">
<div class="panel-body">
<p class="text-muted">Use QR encoded shares for easy scanning into mobile devices.</p>
<div class="row">
<div ng-repeat="share in shares">
<div class="col-md-2"><img ng-src="/qr/encode?text={{share}}&size=200&ecl=M"/></div>
</div>
</div>
</div>
</div>
</tab>
</tabset>
</div>
</div>