Skip to content

Commit

Permalink
Animations work; fix render issue; clean up leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
sowbug committed Feb 17, 2014
1 parent ecd6cfc commit 0448412
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 22 deletions.
2 changes: 1 addition & 1 deletion chrome_app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

'use strict';

angular.module('app', [])
angular.module('app', ['ngAnimate'])
.factory('api_client', function() {
return new ApiClient();
})
Expand Down
10 changes: 5 additions & 5 deletions chrome_app/electrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ Electrum.prototype.handleResponse = function(o) {
this.callbacks[id].resolve(o["result"]);
delete this.callbacks[id];
this.pendingRpcCount--;
$.event.trigger({
"type": "apply",
"message": undefined,
time: new Date()
});
} else {
logInfo("notification from electrum", o);
var ALLOWED_METHODS = [
Expand All @@ -117,6 +112,11 @@ Electrum.prototype.handleResponse = function(o) {
});
}
}
$.event.trigger({
"type": "apply",
"message": undefined,
time: new Date()
});
};

Electrum.prototype.onSocketReceive = function(receiveInfo) {
Expand Down
3 changes: 2 additions & 1 deletion chrome_app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
</a>
</li>
<li>
<p class="navbar-text text-info small"><span ng-bind="appName"></span>&nbsp;<span ng-bind="appVersion"></span></p>
<p class="navbar-text text-info small"><span ng-bind="appVersion"></span></p>
</li>
<li>
<p class="navbar-text text-info small" ng-if="getCurrentHeight() != 0">Block <span ng-bind="getCurrentHeight()"></span></p>
Expand Down Expand Up @@ -550,6 +550,7 @@ <h4 class="modal-title" id="address-detail-label" ng-bind="w.selectedAddress"></
<script type="text/javascript" src="js/jquery/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="js/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/angular/angular.min.js"></script>
<script type="text/javascript" src="js/angular/angular-animate.min.js"></script>
<script type="text/javascript" src="happynine.min.js"></script>
</body>
</html>
27 changes: 27 additions & 0 deletions chrome_app/js/angular/angular-animate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions chrome_app/js/angular/angular-animate.min.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions chrome_app/js/angular/angular.min.js.map

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions chrome_app/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ function Node() {
this.extendedPublicBase58 = undefined;
this.fingerprint = undefined;
this.parentFingerprint = undefined;
this.path = undefined;

this.nextChangeAddressIndex = 8;
this.nextPublicAddressIndex = 8;

this.publicAddresses = {};
this.changeAddresses = {};
Expand All @@ -58,10 +54,7 @@ function Node() {
o["ext_prv_enc"] = this.extendedPrivateEncrypted;
o["ext_pub_b58"] = this.extendedPublicBase58;
o["fp"] = this.fingerprint;
o["next_change_addr"] = this.nextChangeAddressIndex;
o["next_pub_addr"] = this.nextPublicAddressIndex;
o["pfp"] = this.parentFingerprint;
o["path"] = this.path;
return o;
};

Expand Down Expand Up @@ -92,12 +85,6 @@ Node.fromStorableObject = function(o) {
s.extendedPublicBase58 = o["ext_pub_b58"];
if (o["fp"] != undefined)
s.fingerprint = o["fp"];
if (o["next_change_addr"] != undefined)
s.nextChangeAddressIndex = o["next_change_addr"];
if (o["next_pub_addr"] != undefined)
s.nextPublicAddressIndex = o["next_pub_addr"];
if (o["path"] != undefined)
s.path = o["path"];
if (o["pfp"] != undefined)
s.parentFingerprint = o["pfp"];

Expand Down
14 changes: 12 additions & 2 deletions chrome_app/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,17 @@ html, body {
color: green;
}

.recent-tx.ng-enter, .recent-tx.ng-leave {
.recent-tx.ng-enter,
.recent-tx.ng-leave {
-webkit-transition: 0.5s linear all;
transition: 0.5s linear all;
transition: 1s linear all;
}

.recent-tx.ng-enter,
.recent-tx.ng-leave.ng-leave-active {
opacity: 0;
}
.recent-tx.ng-leave,
.recent-tx.ng-enter.ng-enter-active {
opacity: 1;
}

0 comments on commit 0448412

Please sign in to comment.