LBRY Developer Program #255
2 changed files with 30 additions and 15 deletions
|
@ -27,3 +27,10 @@ export default () => html`
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// TODO:
|
||||||
|
// Provide flow where user logs in with GitHub:
|
||||||
|
// - get access token
|
||||||
|
// - show field for user to enter their wallet address
|
||||||
|
// - send access token and wallet address to API
|
||||||
|
// - parse response
|
||||||
|
|
|
@ -48,23 +48,31 @@ export default (state, emit) => { // eslint-disable-line
|
||||||
// below should be refactored into components
|
// below should be refactored into components
|
||||||
let pageScript = "";
|
let pageScript = "";
|
||||||
|
|
||||||
if (partialPath === "glossary")
|
switch(true) {
|
||||||
|
case partialPath === "glossary":
|
||||||
pageScript =
|
pageScript =
|
||||||
"<script>" +
|
"<script>" +
|
||||||
fs.readFileSync(`${process.cwd()}/app/components/client/glossary-scripts.js`, "utf-8") +
|
fs.readFileSync(`${process.cwd()}/app/components/client/glossary-scripts.js`, "utf-8") +
|
||||||
"</script>";
|
"</script>";
|
||||||
|
break;
|
||||||
|
|
||||||
if (partialPath === "overview")
|
case partialPath === "overview":
|
||||||
pageScript =
|
pageScript =
|
||||||
"<script>" +
|
"<script>" +
|
||||||
fs.readFileSync(`${process.cwd()}/app/components/client/ecosystem-scripts.js`, "utf-8") +
|
fs.readFileSync(`${process.cwd()}/app/components/client/ecosystem-scripts.js`, "utf-8") +
|
||||||
"</script>";
|
"</script>";
|
||||||
|
break;
|
||||||
|
|
||||||
if (partialPath === "playground")
|
case partialPath === "playground":
|
||||||
pageScript =
|
pageScript =
|
||||||
"<script>" +
|
"<script>" +
|
||||||
fs.readFileSync(`${process.cwd()}/app/components/client/playground-scripts.js`, "utf-8") +
|
fs.readFileSync(`${process.cwd()}/app/components/client/playground-scripts.js`, "utf-8") +
|
||||||
"</script>";
|
"</script>";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<article class="page" itemtype="http://schema.org/BlogPosting">
|
<article class="page" itemtype="http://schema.org/BlogPosting">
|
||||||
|
|
Loading…
Reference in a new issue