From 279fc434c14df9ea3cdbcbdab1180a492b94ab26 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 21 Mar 2016 12:04:46 -0400 Subject: [PATCH] fix thumbnail and font paths, add default thumbnail image also remove reference to unused script (mimic.js) from index.html --- dist/img/Free-speech-flag.svg | 9 +++++++++ dist/index.html | 1 - js/gui.js | 8 ++++---- js/lbry.js | 2 +- scss/_icons.scss | 4 ++-- 5 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 dist/img/Free-speech-flag.svg diff --git a/dist/img/Free-speech-flag.svg b/dist/img/Free-speech-flag.svg new file mode 100644 index 000000000..d63adb3cc --- /dev/null +++ b/dist/img/Free-speech-flag.svg @@ -0,0 +1,9 @@ + + + + + + + ++C0 + diff --git a/dist/index.html b/dist/index.html index 5aad43e38..f6ae53ee0 100644 --- a/dist/index.html +++ b/dist/index.html @@ -20,7 +20,6 @@
- diff --git a/js/gui.js b/js/gui.js index 6772f96a0..b48d1b33e 100644 --- a/js/gui.js +++ b/js/gui.js @@ -177,7 +177,7 @@ var SearchResults = React.createClass({ console.log('results'); this.props.results.forEach(function(result) { rows.push( - ); }); @@ -191,7 +191,7 @@ var SearchResults = React.createClass({ }); var searchRowImgStyle = { - maxHeight: '200px', + maxHeight: '100px', display: 'block', marginLeft: 'auto', marginRight: 'auto', @@ -304,8 +304,8 @@ var Discover = React.createClass({
{ this.state.searching ? : null } - { !this.state.searching && this.state.result.length ? : null } - { !this.state.searching && !this.state.result.length && this.state.query ? : null } + { !this.state.searching && this.state.results.length ? : null } + { !this.state.searching && !this.state.results.length && this.state.query ? : null } ); } diff --git a/js/lbry.js b/js/lbry.js index fcb07c77b..7a44758b3 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -16,7 +16,7 @@ lbry.call = function (method, params, callback) if (method_output.code !== 200) { throw new Error('Call to method ' + method + ' failed with message: ' + method_output.message); } - + console.log(method_output.result); callback(method_output.result); }); xhr.open('POST', 'http://localhost:5279/lbryapi', true); diff --git a/scss/_icons.scss b/scss/_icons.scss index 884bce4af..91b8255bb 100644 --- a/scss/_icons.scss +++ b/scss/_icons.scss @@ -2,8 +2,8 @@ @font-face { font-family: 'FontAwesome'; - src: url('/font/fontawesome-webfont.eot?v=4.3.0'); - src: url('/font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('/font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('/font/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('/font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('/font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg'); + src: url('../font/fontawesome-webfont.eot?v=4.3.0'); + src: url('../font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('../font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('../font/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('../font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('../font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg'); font-weight: normal; font-style: normal; }