From 190599db7a83f7a670e6d904c4725cc33a1e89e4 Mon Sep 17 00:00:00 2001 From: Tuan Ho Date: Thu, 15 Aug 2019 09:10:24 +0700 Subject: [PATCH 1/2] Update Bulk page for printing --- src/App.css | 17 +++++++++++ src/components/Bulk.jsx | 68 +++++++++++++++++++++++++++++++++-------- 2 files changed, 72 insertions(+), 13 deletions(-) diff --git a/src/App.css b/src/App.css index 39aad85..13751b1 100644 --- a/src/App.css +++ b/src/App.css @@ -27,6 +27,11 @@ a:hover{ text-decoration:none; opacity: 0.9; } + +.word-break-all { + word-break: break-all; +} + #layout { display: -webkit-box; display: -webkit-flex; @@ -434,6 +439,18 @@ hr{ margin-top: 20px; } + #Bulk .addr-item { + text-align: center; + padding: 20px; + border: 1px solid grey; + margin-bottom: 50px; + page-break-inside: avoid; + } + + #Bulk .addr-item h3 { + margin-top: 0; + } + #layout { display: block; } diff --git a/src/components/Bulk.jsx b/src/components/Bulk.jsx index 05e7258..92241eb 100644 --- a/src/components/Bulk.jsx +++ b/src/components/Bulk.jsx @@ -165,10 +165,11 @@ class Bulk extends Component {
{this.state.pairs[0] ? ( - - - - +
+ +
+
+ @@ -179,8 +180,8 @@ class Bulk extends Component { } - - + + {this.state.pairs.map((pair) => ( @@ -188,20 +189,61 @@ class Bulk extends Component { { this.state.type === 'Z' ? - () - : null + () + : null } ))} - -
# AddressPrivate Key
{pair.index}{pair.wif}{pair.priv}{pair.priv}
- -
+ + + + +
+ {this.state.pairs.map((pair) => ( +
+ + +

Zen Address

+
+ +
+
{pair.addr}
+ + +
+ {this.state.type === 'T' ? ( +

Private Key

+ ) : ( +

Spending Key

+ )} +
+ +
+
{pair.wif}
+
+ +
+
+ ))} +
+ ) : ( )} - {this.state.paper ? + {false && this.state.paper ? this.state.pairs.map((pair) => (
art1 From 6d06cf7fef02d03b7ed8c83ae63811bfc2327c3a Mon Sep 17 00:00:00 2001 From: Tuan Ho Date: Thu, 15 Aug 2019 09:32:19 +0700 Subject: [PATCH 2/2] Disable print background image on Bulk page --- src/components/Bulk.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Bulk.jsx b/src/components/Bulk.jsx index 92241eb..ce782b8 100644 --- a/src/components/Bulk.jsx +++ b/src/components/Bulk.jsx @@ -14,7 +14,7 @@ class Bulk extends Component { startIndex: 1, nbRows: 1, type: 'T', - paper: true, + paper: false, pairs: [] }; } @@ -243,7 +243,7 @@ class Bulk extends Component { )} - {false && this.state.paper ? + {this.state.paper ? this.state.pairs.map((pair) => (
art1