stashed cleanup

This commit is contained in:
Jeremy Kauffman 2017-04-11 12:03:56 -04:00
parent 029b0b9c3a
commit 0ba69ff32b
2 changed files with 57 additions and 46 deletions

View file

@ -51,56 +51,68 @@ var HelpPage = React.createClass({
return ( return (
<main className="page"> <main className="page">
<section className="card"> <section className="card">
<h3>Read the FAQ</h3> <div className="card__title-primary">
<p>Our FAQ answers many common questions.</p> <h3>Read the FAQ</h3>
<p><Link href="https://lbry.io/faq" label="Read the FAQ" icon="icon-question" button="alt"/></p> </div>
<div className="card__content">
<p>Our FAQ answers many common questions.</p>
<p><Link href="https://lbry.io/faq" label="Read the FAQ" icon="icon-question" button="alt"/></p>
</div>
</section> </section>
<section className="card"> <section className="card">
<h3>Get Live Help</h3> <div className="card__title-primary">
<p> <h3>Get Live Help</h3>
Live help is available most hours in the <strong>#help</strong> channel of our Slack chat room. </div>
</p> <div className="card__content">
<p> <p>
<Link button="alt" label="Join Our Slack" icon="icon-slack" href="https://slack.lbry.io" /> Live help is available most hours in the <strong>#help</strong> channel of our Slack chat room.
</p> </p>
<p>
<Link button="alt" label="Join Our Slack" icon="icon-slack" href="https://slack.lbry.io" />
</p>
</div>
</section> </section>
<section className="card"> <section className="card">
<h3>Report a Bug</h3> <div className="card__title-primary"><h3>Report a Bug</h3></div>
<p>Did you find something wrong?</p> <div className="card__content">
<p><Link href="?report" label="Submit a Bug Report" icon="icon-bug" button="alt" /></p> <p>Did you find something wrong?</p>
<div className="meta">Thanks! LBRY is made by its users.</div> <p><Link href="?report" label="Submit a Bug Report" icon="icon-bug" button="alt" /></p>
<div className="meta">Thanks! LBRY is made by its users.</div>
</div>
</section> </section>
{!ver ? null : {!ver ? null :
<section className="card"> <section className="card">
<h3>About</h3> <div className="card__title-primary"><h3>About</h3></div>
{ver.lbrynet_update_available || ver.lbryum_update_available ? <div className="card__content">
<p>A newer version of LBRY is available. <Link href={newVerLink} label={`Download LBRY ${ver.remote_lbrynet} now!`} /></p> {ver.lbrynet_update_available || ver.lbryum_update_available ?
: <p>Your copy of LBRY is up to date.</p> <p>A newer version of LBRY is available. <Link href={newVerLink} label={`Download LBRY ${ver.remote_lbrynet} now!`} /></p>
} : <p>Your copy of LBRY is up to date.</p>
<table className="table-standard"> }
<tbody> <table className="table-standard">
<tr> <tbody>
<th>daemon (lbrynet)</th> <tr>
<td>{ver.lbrynet_version}</td> <th>daemon (lbrynet)</th>
</tr> <td>{ver.lbrynet_version}</td>
<tr> </tr>
<th>wallet (lbryum)</th> <tr>
<td>{ver.lbryum_version}</td> <th>wallet (lbryum)</th>
</tr> <td>{ver.lbryum_version}</td>
<tr> </tr>
<th>interface</th> <tr>
<td>{uiVersion}</td> <th>interface</th>
</tr> <td>{uiVersion}</td>
<tr> </tr>
<th>Platform</th> <tr>
<td>{platform}</td> <th>Platform</th>
</tr> <td>{platform}</td>
<tr> </tr>
<th>Installation ID</th> <tr>
<td>{this.state.lbryId}</td> <th>Installation ID</th>
</tr> <td>{this.state.lbryId}</td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
</section> </section>
} }
</main> </main>

View file

@ -61,7 +61,7 @@ var PublishPage = React.createClass({
var metadata = {}; var metadata = {};
} }
for (let metaField of ['title', 'author', 'description', 'thumbnail', 'license', 'license_url', 'language', 'nsfw']) { for (let metaField of ['title', 'description', 'thumbnail', 'license', 'license_url', 'language', 'nsfw']) {
var value = this.refs['meta_' + metaField].getValue(); var value = this.refs['meta_' + metaField].getValue();
if (value !== '') { if (value !== '') {
metadata[metaField] = value; metadata[metaField] = value;
@ -113,7 +113,7 @@ var PublishPage = React.createClass({
channels: null, channels: null,
rawName: '', rawName: '',
name: '', name: '',
bid: '', bid: 0.01,
hasFile: false, hasFile: false,
feeAmount: '', feeAmount: '',
feeCurrency: 'USD', feeCurrency: 'USD',
@ -491,7 +491,6 @@ var PublishPage = React.createClass({
type="number" type="number"
step="0.01" step="0.01"
label="Deposit" label="Deposit"
defaultValue="0.01"
onChange={this.handleBidChange} onChange={this.handleBidChange}
value={this.state.bid} value={this.state.bid}
placeholder={this.state.nameResolved ? this.state.topClaimValue + 10 : 100} placeholder={this.state.nameResolved ? this.state.topClaimValue + 10 : 100}