From 4e78fcabe911b42211dd3aff0a64365c2f96ad21 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 27 Apr 2019 03:42:44 +0200 Subject: params --- client/app.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'client/app.js') diff --git a/client/app.js b/client/app.js index d18a5aa..b1c5eb4 100644 --- a/client/app.js +++ b/client/app.js @@ -54,7 +54,7 @@ export default class PhashApp extends Component { render() { return (
-

Perceptual Hash Demo

+

Search by Image

{this.renderQuery()} {this.renderResults()}
@@ -72,11 +72,12 @@ export default class PhashApp extends Component { return (
+
) } @@ -122,13 +123,16 @@ export default class PhashApp extends Component { ) } - const { phash, score, sha256, url} = closest_match return (
-
- Closest match: {sha256}
- Score: {score}
- Phash: {phash.toString(16)} + {matches.map(({ phash, score, sha256, url }) => ( +
+
+ Match: {sha256}
+ Score: {score}
+ Phash: {phash.toString(16)} +
+ ))}
) } -- cgit v1.2.3-70-g09d2