2014-03-19 09:17:18 -07:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2014-03-14 13:38:27 -07:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<meta name="viewport" content="width=device-width">
|
2014-03-28 11:08:14 -07:00
|
|
|
<title>Copay - Multisignature Wallet</title>
|
2014-03-27 08:07:10 -07:00
|
|
|
<link rel="stylesheet" href="css/foundation.min.css">
|
2014-03-28 12:39:58 -07:00
|
|
|
<link rel="stylesheet" href="css/foundation-icons.css">
|
2014-03-14 13:38:27 -07:00
|
|
|
<link rel="stylesheet" href="css/main.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
2014-03-31 08:48:35 -07:00
|
|
|
<div class="header" data-ng-init="init()" data-ng-controller="HeaderController">
|
2014-03-28 08:32:29 -07:00
|
|
|
<div class="header-content">
|
2014-03-31 14:06:44 -07:00
|
|
|
<figure class="left">
|
|
|
|
<img src="./img/logo-negative.svg" alt="" width="130">
|
|
|
|
</figure>
|
2014-03-31 08:48:35 -07:00
|
|
|
<div class="text-right" ng-show="$root.peerId">
|
2014-03-28 08:32:29 -07:00
|
|
|
<h5>Company Funds</h5>
|
2014-03-31 08:48:35 -07:00
|
|
|
<p>4.324 BTC</p>
|
2014-03-28 08:32:29 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-31 08:48:35 -07:00
|
|
|
<nav class="top-bar" data-topbar ng-show="$root.peerId">
|
2014-03-28 08:32:29 -07:00
|
|
|
<ul class="title-area" data-ng-repeat="item in menu" ui-route="/{{item.link}}" data-ng-class="{active: isActive(item)}">
|
|
|
|
<li class="name"></li>
|
|
|
|
<li class="toggle-topbar menu-icon">
|
|
|
|
<a href="{{item.link}}">{{item.title}}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<section class="top-bar-section">
|
|
|
|
<!-- Right Nav Section -->
|
|
|
|
<ul data-ng-repeat="item in menu" ui-route="/{{item.link}}">
|
|
|
|
<li class="large-3 text-center" data-ng-class="{active: isActive(item)}">
|
2014-03-28 12:39:58 -07:00
|
|
|
<a href="{{item.link}}"> <i class="fi-home size-16"></i> {{item.title}}</a>
|
2014-03-28 08:32:29 -07:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</nav>
|
2014-03-25 07:35:04 -07:00
|
|
|
</div>
|
2014-03-28 08:32:29 -07:00
|
|
|
|
2014-03-27 08:07:10 -07:00
|
|
|
<div class="row">
|
|
|
|
<div class="large-12 columns" ng-view></div>
|
2014-03-26 05:18:42 -07:00
|
|
|
</div>
|
2014-03-31 08:48:35 -07:00
|
|
|
<div ng-controller="HeaderController" ng-show="$root.peerId">
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
|
|
<div class="text-center large-12 columns">
|
|
|
|
<a href="#" ng-click="signout()" class="button tiny">Signout</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-19 09:17:18 -07:00
|
|
|
|
|
|
|
<!-- Templates -->
|
|
|
|
<script type="text/ng-template" id="signin.html">
|
2014-03-31 08:48:35 -07:00
|
|
|
<div ng-controller="SigninController">
|
|
|
|
<div class="panel callout radius" ng-show="loading">
|
|
|
|
Connecting to wallet...
|
|
|
|
</div>
|
|
|
|
<div ng-show="!loading">
|
2014-03-31 14:05:35 -07:00
|
|
|
<div class="row">
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<h3>Join wallet</h3>
|
2014-03-27 12:31:42 -07:00
|
|
|
<input type="text" class="form-control" placeholder="Peer ID" ng-model="connectionId" autofocus>
|
|
|
|
</div>
|
2014-03-31 14:28:59 -07:00
|
|
|
<div class="large-3 columns">
|
|
|
|
<button class="button primary expand round" type="button" ng-click="join(connectionId)">Join</button>
|
2014-03-31 14:05:35 -07:00
|
|
|
</div>
|
2014-03-27 12:31:42 -07:00
|
|
|
</div>
|
2014-03-31 14:05:35 -07:00
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<h3>Create a new wallet</h3>
|
|
|
|
</div>
|
2014-03-31 14:28:59 -07:00
|
|
|
<div class="large-3 columns">
|
|
|
|
<button class="button secondary expand round" ng-click="create()">Create</button>
|
2014-03-31 14:05:35 -07:00
|
|
|
</div>
|
2014-03-27 12:31:42 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
2014-03-31 08:48:35 -07:00
|
|
|
<script type="text/ng-template" id="peer.html">
|
2014-03-31 14:06:44 -07:00
|
|
|
<div class="row" ng-controller="PeerController" ng-init="init()">
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<h1>I am <p class="text-muted">{{$root.peerId}}</p></h1>
|
2014-04-07 20:54:38 -07:00
|
|
|
|
|
|
|
<ul class="no-bullet">
|
|
|
|
<li> [DEBUG] Pubkeys that you have: {{$root.publicKeyRing.registeredCopayers()}}
|
|
|
|
<li class="panel" style="word-wrap: break-word;" ng-repeat="pub in $root.publicKeyRing.copayersBIP32">
|
|
|
|
${{pub.extendedPublicKeyString()}}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<h3 class="panel-title">Copayers ({{$root.connectedPeers.length}}/5)</h3>
|
2014-03-27 12:31:42 -07:00
|
|
|
</div>
|
2014-03-31 14:06:44 -07:00
|
|
|
<div class="large-6 columns">
|
2014-03-31 14:28:59 -07:00
|
|
|
<h3 class="panel-title">Copayers ({{$root.connectedPeers.length}}/5)</h3>
|
2014-03-31 14:06:44 -07:00
|
|
|
<ul class="no-bullet">
|
2014-03-31 14:28:59 -07:00
|
|
|
<li class="panel" ng-repeat="copayer in $root.connectedPeers">
|
2014-03-31 14:06:44 -07:00
|
|
|
<span ng-if="copayer == $root.peerId"> You ({{$root.peerId}})<i class="fi-check size-24"></i></span>
|
|
|
|
<span ng-if="copayer != $root.peerId">{{copayer}}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="text-center">
|
|
|
|
<button href="#/home" class="button secondary round large expand">Go to home</button>
|
|
|
|
</div>
|
2014-03-31 08:48:35 -07:00
|
|
|
</div>
|
2014-03-27 12:31:42 -07:00
|
|
|
</div>
|
2014-03-19 09:17:18 -07:00
|
|
|
</script>
|
2014-04-07 11:05:53 -07:00
|
|
|
|
|
|
|
|
2014-03-19 09:17:18 -07:00
|
|
|
|
2014-03-26 13:56:11 -07:00
|
|
|
<!-- HOME -->
|
2014-03-19 09:17:18 -07:00
|
|
|
<script type="text/ng-template" id="home.html">
|
2014-03-26 05:18:42 -07:00
|
|
|
<div class="home" data-ng-controller="HomeController">
|
2014-04-07 11:05:53 -07:00
|
|
|
<h2>{{title}}</h2>
|
2014-03-26 13:56:11 -07:00
|
|
|
|
2014-04-07 11:05:53 -07:00
|
|
|
<div class="row">
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<a class="panel db"> Adress1 <span class="right"> > </span> </a>
|
|
|
|
<a class="panel db"> Adress2 <span class="right"> > </span> </a>
|
|
|
|
<a class="panel db"> Adress3 <span class="right"> > </span> </a>
|
|
|
|
<a class="panel db"> Adress4 <span class="right"> > </span> </a>
|
|
|
|
</div>
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<qrcode size="160" data="n3zUqNR7Bbbc4zJhPVj1vG2Lx66K3Xhzvb"></qrcode>
|
|
|
|
<p> 2.5432 BTC </p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-26 05:18:42 -07:00
|
|
|
</div>
|
|
|
|
</script>
|
2014-03-26 13:56:11 -07:00
|
|
|
|
2014-04-08 10:16:38 -07:00
|
|
|
|
2014-03-26 13:56:11 -07:00
|
|
|
<!-- TRANSACTIONS -->
|
2014-03-26 05:18:42 -07:00
|
|
|
<script type="text/ng-template" id="transactions.html">
|
|
|
|
<div class="transactions" data-ng-controller="TransactionsController">
|
2014-04-08 10:16:38 -07:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<h2>Output</h2>
|
|
|
|
<div class="panel pending">
|
|
|
|
<div class="row">
|
|
|
|
<p class="large-5 columns"> Address 1</p>
|
|
|
|
<i class="large-2 columns fi-arrow-right size-16 text-center"></i>
|
|
|
|
<p class="large-5 columns"> Adress 2</p>
|
|
|
|
<div class="large-12 columns m0">
|
|
|
|
<div class="line"></div>
|
|
|
|
<button class="primary round large-4 columns"><i class="large-2 columns fi-x size-16 text-center"></i> Ignore</button>
|
|
|
|
<small class="large-4 columns text-center">Faltan 3 cosigners</small>
|
|
|
|
<button class="secondary round large-4 columns"><i class="large-2 columns fi-check size-16 text-center"></i> Sign</button>
|
|
|
|
</div>
|
|
|
|
</div> <!-- end of row -->
|
|
|
|
</div> <!-- end of pending -->
|
|
|
|
<div class="line"></div>
|
|
|
|
<div class="panel">
|
2014-03-26 13:56:11 -07:00
|
|
|
<div class="row">
|
2014-04-08 10:16:38 -07:00
|
|
|
<p class="large-5 columns"> Address 1</p>
|
|
|
|
<i class="large-2 columns fi-arrow-right size-16 text-center"></i>
|
|
|
|
<p class="large-5 columns"> Adress 2</p>
|
2014-03-26 13:56:11 -07:00
|
|
|
</div>
|
2014-04-08 10:16:38 -07:00
|
|
|
</div>
|
|
|
|
<div class="panel">
|
|
|
|
<div class="row">
|
|
|
|
<p class="large-5 columns"> Address 1</p>
|
|
|
|
<i class="large-2 columns fi-arrow-right size-16 text-center"></i>
|
|
|
|
<p class="large-5 columns"> Adress 2</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="large-6 columns">
|
|
|
|
<h2>Input</h2>
|
|
|
|
<div class="panel">
|
|
|
|
<div class="row">
|
|
|
|
<p class="large-5 columns"> Address 1</p>
|
|
|
|
<i class="large-2 columns fi-arrow-left size-16 text-center"></i>
|
|
|
|
<p class="large-5 columns"> Adress 2</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
|
|
|
<div class="row">
|
|
|
|
<p class="large-5 columns"> Address 1</p>
|
|
|
|
<i class="large-2 columns fi-arrow-left size-16 text-center"></i>
|
|
|
|
<p class="large-5 columns"> Adress 2</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
|
|
|
<div class="row">
|
|
|
|
<p class="large-5 columns"> Address 1</p>
|
|
|
|
<i class="large-2 columns fi-arrow-left size-16 text-center"></i>
|
|
|
|
<p class="large-5 columns"> Adress 2</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-26 05:18:42 -07:00
|
|
|
</div>
|
|
|
|
</script>
|
2014-03-26 13:56:11 -07:00
|
|
|
|
|
|
|
<!-- SEND -->
|
2014-03-26 05:18:42 -07:00
|
|
|
<script type="text/ng-template" id="send.html">
|
|
|
|
<div class="send" data-ng-controller="SendController">
|
|
|
|
<h2>{{title}}</h2>
|
2014-03-27 10:55:56 -07:00
|
|
|
<form>
|
|
|
|
<label for="address">To
|
|
|
|
<input type="text" id="address" placeholder="Send to">
|
|
|
|
</label>
|
|
|
|
<label for="amount">Amount
|
|
|
|
<input type="text" id="amount" placeholder="Amount">
|
|
|
|
<select class="form-control">
|
|
|
|
<option>mBTC</option>
|
|
|
|
<option>BTC</option>
|
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
<button type="submit" class="btn btn-default">send</button>
|
2014-03-26 13:56:11 -07:00
|
|
|
</form>
|
2014-03-26 05:18:42 -07:00
|
|
|
</div>
|
|
|
|
</script>
|
2014-03-26 13:56:11 -07:00
|
|
|
|
|
|
|
<!-- BACKUP -->
|
2014-03-26 05:18:42 -07:00
|
|
|
<script type="text/ng-template" id="backup.html">
|
|
|
|
<div class="backup" data-ng-controller="BackupController">
|
2014-04-03 12:32:17 -07:00
|
|
|
<h2>{{title}}</h2>
|
|
|
|
<div class="row text-center">
|
|
|
|
<div class="large-4 columns">
|
2014-04-07 11:05:53 -07:00
|
|
|
<a href="/" class="panel box-backup">
|
2014-04-03 12:32:17 -07:00
|
|
|
<i class="fi-download size-72"></i>
|
|
|
|
<p> Download File </p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="large-4 columns">
|
2014-04-07 11:05:53 -07:00
|
|
|
<a href="/" class="panel box-backup">
|
2014-04-03 12:32:17 -07:00
|
|
|
<i class="fi-social-dropbox size-72"></i>
|
|
|
|
<p> Backup to Dropbox </p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="large-4 columns">
|
2014-04-07 11:05:53 -07:00
|
|
|
<a href="/" class="panel box-backup">
|
2014-04-03 12:32:17 -07:00
|
|
|
<i class="fi-mail size-72"></i>
|
|
|
|
<p> Backup to email </p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-26 05:18:42 -07:00
|
|
|
</div>
|
2014-03-19 09:17:18 -07:00
|
|
|
</script>
|
2014-04-03 12:32:17 -07:00
|
|
|
<!-- / <div class="large-4 columns box-backup">Backup to Dropbox</div>
|
|
|
|
// <div class="large-4 columns box-backup">Backup to email</div> -->
|
2014-03-26 13:56:11 -07:00
|
|
|
<!-- NOT FOUND -->
|
2014-03-19 09:17:18 -07:00
|
|
|
<script type="text/ng-template" id="404.html">
|
2014-03-26 05:18:42 -07:00
|
|
|
<h2 class="text-center">404</h2>
|
|
|
|
<h3 class="text-center">Page not found</h3>
|
|
|
|
<p class="text-center"><a href="#/">go back...</a></p>
|
2014-03-19 09:17:18 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script src="lib/angular/angular.min.js"></script>
|
2014-03-26 13:56:11 -07:00
|
|
|
<script src="lib/qrcode-generator/js/qrcode.js"></script>
|
|
|
|
<script src="lib/angular-qrcode/qrcode.js"></script>
|
2014-03-19 09:17:18 -07:00
|
|
|
<script src="lib/angular-route/angular-route.min.js"></script>
|
2014-03-27 08:07:10 -07:00
|
|
|
<script src="lib/angular-foundation/mm-foundation.min.js"></script>
|
|
|
|
<script src="lib/angular-foundation/mm-foundation-tpls.min.js"></script>
|
2014-03-21 14:45:59 -07:00
|
|
|
<script src="lib/peerjs/peer.js"></script>
|
2014-04-07 11:31:41 -07:00
|
|
|
<script src="lib/bitcore.js"></script>
|
2014-04-07 20:54:38 -07:00
|
|
|
<script src="lib/copayBundle.js"></script>
|
2014-04-07 11:31:41 -07:00
|
|
|
|
2014-03-18 09:09:21 -07:00
|
|
|
|
2014-03-19 09:17:18 -07:00
|
|
|
<script src="js/app.js"></script>
|
|
|
|
<script src="js/config.js"></script>
|
2014-04-07 20:54:38 -07:00
|
|
|
<script src="js/routes.js"></script>
|
2014-03-19 09:17:18 -07:00
|
|
|
<script src="js/directives.js"></script>
|
|
|
|
<script src="js/filters.js"></script>
|
2014-03-27 12:31:42 -07:00
|
|
|
<script src="js/services/network.js"></script>
|
2014-04-01 14:22:07 -07:00
|
|
|
<script src="js/services/storage.js"></script>
|
2014-03-27 12:31:42 -07:00
|
|
|
|
2014-03-25 07:35:04 -07:00
|
|
|
<script src="js/controllers/header.js"></script>
|
2014-03-26 05:18:42 -07:00
|
|
|
<script src="js/controllers/home.js"></script>
|
|
|
|
<script src="js/controllers/transactions.js"></script>
|
|
|
|
<script src="js/controllers/send.js"></script>
|
|
|
|
<script src="js/controllers/backup.js"></script>
|
2014-03-27 12:31:42 -07:00
|
|
|
<script src="js/controllers/signin.js"></script>
|
2014-03-31 08:48:35 -07:00
|
|
|
<script src="js/controllers/peer.js"></script>
|
2014-03-25 07:35:04 -07:00
|
|
|
|
2014-03-19 09:17:18 -07:00
|
|
|
<script src="js/init.js"></script>
|
2014-03-14 13:38:27 -07:00
|
|
|
</body>
|
|
|
|
</html>
|