From 88e39d0c1b95c71350ddcec89225c64053caf445 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Wed, 19 Feb 2014 03:05:06 -0300 Subject: [PATCH] improved performance of list of transactions --- app/views/layouts/default.jade | 2 +- public/src/css/common.css | 8 +++ public/src/js/filters.js | 10 ++- public/views/transaction/tx.html | 104 ++++++++++++++++++------------- 4 files changed, 79 insertions(+), 45 deletions(-) diff --git a/app/views/layouts/default.jade b/app/views/layouts/default.jade index 4bf285fa..45ba09c2 100644 --- a/app/views/layouts/default.jade +++ b/app/views/layouts/default.jade @@ -1,5 +1,5 @@ doctype -html(lang='en', data-ng-app='insight') +html(lang='en', data-ng-app='insight' data-ng-csp) include ../includes/head body #wrap diff --git a/public/src/css/common.css b/public/src/css/common.css index 9d3496a3..12358f4d 100644 --- a/public/src/css/common.css +++ b/public/src/css/common.css @@ -1,5 +1,7 @@ /* Sticky footer styles -------------------------------------------------- */ +@charset "UTF-8"; + html, body { color: #373D42; @@ -13,6 +15,12 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Ubuntu', sans-serif; } +[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], +.ng-cloak, .x-ng-cloak, +.ng-hide { + display: none !important; +} + /* Styling for the ngProgress itself */ #ngProgress { background-color: #373D42 !important; diff --git a/public/src/js/filters.js b/public/src/js/filters.js index a726efc4..a1cad320 100644 --- a/public/src/js/filters.js +++ b/public/src/js/filters.js @@ -1 +1,9 @@ -'use strict'; \ No newline at end of file +'use strict'; + +angular.module('insight') + .filter('startFrom', function() { + return function(input, start) { + start = +start; //parse to int + return input.slice(start); + } +}); diff --git a/public/views/transaction/tx.html b/public/views/transaction/tx.html index 8fd3b588..0b7528fc 100644 --- a/public/views/transaction/tx.html +++ b/public/views/transaction/tx.html @@ -1,4 +1,4 @@ -
+
@@ -18,31 +18,41 @@
-
+
No Inputs (Newly Generated Coins)
-
-
-
-
{{$root.currency.getConvertion(vin.value)}}
-
- {{vin.addr}} - {{vin.addr}} - {{vin.addr}} -
-
(Input unconfirmed)
-
Incoherence in levelDB detected, please resync
-
Double spent attempt detected. From tx: +
+ + +
+
+
+
{{$root.currency.getConvertion(vin.value)}}
+
+ {{vin.addr}} + {{vin.addr}} + {{vin.addr}} +
+
(Input unconfirmed)
+
Incoherence in levelDB detected, please resync
+
Double spent attempt detected. From tx: {{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}} +
+
-
-
+ + +
+
{{$root.currency.getConvertion(vin.value)}}
@@ -68,10 +78,10 @@
-
-
@@ -83,28 +93,36 @@
-
-
-
- - {{$root.currency.getConvertion(vout.value)}} - (S) - (U) - + +
+
+
+
+ + + {{$root.currency.getConvertion(vout.value)}} + (S) + (U) + +
+ +
+ {{vout.addr}} + {{vout.addr}} + {{address}} +
- -
- {{vout.addr}} - {{vout.addr}} - {{address}} -
- - +
+
-
-
+ + +
+
{{$root.currency.getConvertion(vout.value)}} @@ -133,10 +151,10 @@
-
-
@@ -150,7 +168,7 @@
-
+
Fees: {{$root.currency.getConvertion(tx.fees)}}