diff --git a/.env.sample b/.env.sample index ad58247..eb522f4 100644 --- a/.env.sample +++ b/.env.sample @@ -6,7 +6,7 @@ DAEMON_URL= # /developer-program GITHUB_APP_ID= GITHUB_APP_SECRET= -REWARD_URL= +REWARD_URL=api.lbry.io # https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app # We use this to show the GitHub feed on the homepage diff --git a/app/components/client/devprogram-scripts.js b/app/components/client/devprogram-scripts.js index da03f97..0017425 100644 --- a/app/components/client/devprogram-scripts.js +++ b/app/components/client/devprogram-scripts.js @@ -20,12 +20,13 @@ if (window.location.search.includes("?code=")) { +
To receive your LBC, you'll need a wallet address. While graphical wallets are available, the recommended path for engineers is to:
address_unused
command../lbrynet start
)../lbrynet address list
and copy the id
field.Awaiting response from internal LBRY API
"; + document.querySelector("developer-program").innerHTML = "Awaiting response from LBRY server...
"; }; } diff --git a/app/sass/pages/_developer.scss b/app/sass/pages/_developer.scss index 661b663..cd23817 100644 --- a/app/sass/pages/_developer.scss +++ b/app/sass/pages/_developer.scss @@ -2,7 +2,7 @@ developer-program { @extend %markdown; .button { - margin: 2rem auto 1rem; + margin: 1rem auto; display: block; } diff --git a/app/sockets.js b/app/sockets.js index f18bc32..b2258e7 100644 --- a/app/sockets.js +++ b/app/sockets.js @@ -17,14 +17,6 @@ let apiUrl = process.env.REWARD_URL; let githubAppId = process.env.GITHUB_APP_ID; 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 export default (socket, action) => { @@ -461,7 +453,7 @@ async function syncWithApi(data, socket) { console.log(error.body); // eslint-disable-line no-console return send(socket, { - html: "This reward is limited to ONE per person. Your enthusiasm is appreciated.
", + html: "You have already claimed this reward. This reward is limited to ONE per person. Your enthusiasm is appreciated.
", message: "updated html", selector: "developer-program" }); diff --git a/documents/developer-program.md b/documents/developer-program.md index fa8102b..d34f13a 100644 --- a/documents/developer-program.md +++ b/documents/developer-program.md @@ -9,4 +9,5 @@ To qualify you must: - Have a GitHub account prior to January 1st, 2018. - Have made a public pull request within the past year. +### Claim LBC