diff --git a/dist/index.html b/dist/index.html index c11fd96b7..8e3557647 100644 --- a/dist/index.html +++ b/dist/index.html @@ -33,6 +33,7 @@ + diff --git a/js/app.js b/js/app.js index 94fdaf22c..04f0b875a 100644 --- a/js/app.js +++ b/js/app.js @@ -4,7 +4,7 @@ var App = React.createClass({ var match, param, val; [match, param, val] = window.location.search.match(/\??([^=]*)(?:=(.*))?/); - if (['settings', 'help', 'start', 'watch', 'report', 'files', 'claim', 'show', 'wallet'].indexOf(param) != -1) { + if (['settings', 'help', 'start', 'watch', 'report', 'files', 'claim', 'show', 'wallet', 'publish'].indexOf(param) != -1) { var viewingPage = param; } else { var viewingPage = 'home'; @@ -69,6 +69,8 @@ var App = React.createClass({ return ; } else if (this.state.viewingPage == 'wallet') { return ; + } else if (this.state.viewingPage == 'publish') { + return ; } } }); diff --git a/js/page/publish.js b/js/page/publish.js new file mode 100644 index 000000000..f124b376a --- /dev/null +++ b/js/page/publish.js @@ -0,0 +1,43 @@ +var PublishPage = React.createClass({ + publish: function() { + lbry.publish({ + name: this.refs.name, + file_path: this.refs.filePath, + bid: parseFloat(this.refs.bid), + }); + }, + render: function() { + return ( +
+ +

Publish

+
+

LBRY name

+
What LBRY name would you like to claim for this file?
+ lbry:// +
+ +
+

Choose file

+
Please choose the file you would like to upload to LBRY.
+
+
+ +
+

Bid amount

+
How much would you like to bid for this name? You must bid at least 0.0 to claim this name.
+ LBC +
+ + { /* Many more options here ... */ } + +
+ +
+
+ +
+
+ ); + } +}); \ No newline at end of file