copy changes
This commit is contained in:
parent
d323a16d1d
commit
2400b5c465
5 changed files with 9 additions and 15 deletions
|
@ -6,7 +6,7 @@ DAEMON_URL=
|
||||||
# /developer-program
|
# /developer-program
|
||||||
GITHUB_APP_ID=
|
GITHUB_APP_ID=
|
||||||
GITHUB_APP_SECRET=
|
GITHUB_APP_SECRET=
|
||||||
REWARD_URL=
|
REWARD_URL=api.lbry.io
|
||||||
|
|
||||||
# https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app
|
# https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app
|
||||||
# We use this to show the GitHub feed on the homepage
|
# We use this to show the GitHub feed on the homepage
|
||||||
|
|
|
@ -20,12 +20,13 @@ if (window.location.search.includes("?code=")) {
|
||||||
</input-submit>
|
</input-submit>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<h4>Need An Address?</h4>
|
||||||
<p>To receive your LBC, you'll need a wallet address. While graphical wallets are available, the recommended path for engineers is to:</p>
|
<p>To receive your LBC, you'll need a wallet address. While graphical wallets are available, the recommended path for engineers is to:</p>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>Download <a href="https://github.com/lbryio/lbry">the LBRY SDK</a>.</li>
|
<li>Download <a href="https://github.com/lbryio/lbry/releases">the LBRY SDK</a>.</li>
|
||||||
<li>Launch the command-line utility.</li>
|
<li>Launch the command-line utility (<code>./lbrynet start</code>).</li>
|
||||||
<li>Run the <a href="https://lbry.tech/api/sdk#address_unused"><code>address_unused</code></a> command.</li>
|
<li>Run <code>./lbrynet address list</code> and copy the <code>id</code> field.</li>
|
||||||
</ol>
|
</ol>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -40,6 +41,6 @@ if (document.getElementById("creditsAcquire")) {
|
||||||
message: "verify github auth"
|
message: "verify github auth"
|
||||||
});
|
});
|
||||||
|
|
||||||
document.querySelector("developer-program").innerHTML = "<p><em>Awaiting response from internal LBRY API</em></p>";
|
document.querySelector("developer-program").innerHTML = "<p><em>Awaiting response from LBRY server...</em></p>";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ developer-program {
|
||||||
@extend %markdown;
|
@extend %markdown;
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
margin: 2rem auto 1rem;
|
margin: 1rem auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,14 +17,6 @@ let apiUrl = process.env.REWARD_URL;
|
||||||
let githubAppId = process.env.GITHUB_APP_ID;
|
let githubAppId = process.env.GITHUB_APP_ID;
|
||||||
let githubAppSecret = process.env.GITHUB_APP_SECRET;
|
let githubAppSecret = process.env.GITHUB_APP_SECRET;
|
||||||
|
|
||||||
if (process.env.NODE_ENV === "development") {
|
|
||||||
apiUrl = process.env.REWARD_URL_TEST;
|
|
||||||
githubAppId = process.env.GITHUB_APP_ID_TEST;
|
|
||||||
githubAppSecret = process.env.GITHUB_APP_SECRET_TEST;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// P R O G R A M
|
// P R O G R A M
|
||||||
|
|
||||||
export default (socket, action) => {
|
export default (socket, action) => {
|
||||||
|
@ -461,7 +453,7 @@ async function syncWithApi(data, socket) {
|
||||||
console.log(error.body); // eslint-disable-line no-console
|
console.log(error.body); // eslint-disable-line no-console
|
||||||
|
|
||||||
return send(socket, {
|
return send(socket, {
|
||||||
html: "<p>This reward is limited to <strong>ONE</strong> per person. Your enthusiasm is appreciated.</p>",
|
html: "<p>You have already claimed this reward. This reward is limited to <strong>ONE</strong> per person. Your enthusiasm is appreciated.</p>",
|
||||||
message: "updated html",
|
message: "updated html",
|
||||||
selector: "developer-program"
|
selector: "developer-program"
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,4 +9,5 @@ To qualify you must:
|
||||||
- Have a GitHub account prior to January 1st, 2018.
|
- Have a GitHub account prior to January 1st, 2018.
|
||||||
- Have made a public pull request within the past year.
|
- Have made a public pull request within the past year.
|
||||||
|
|
||||||
|
### Claim LBC
|
||||||
<DeveloperProgram/>
|
<DeveloperProgram/>
|
||||||
|
|
Loading…
Reference in a new issue