Updated GitHub module usage, formatting, typo

This commit is contained in:
ポール ウェッブ 2019-01-25 10:34:44 -06:00
parent 7cc2fb87d5
commit c28a14d907
8 changed files with 63 additions and 12 deletions

View file

@ -1,7 +1,15 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__module applications"> <div class="ecosystem__module applications">
<span class="__close" data-action="close">&times;</span> <span class="__close" data-action="close">&times;</span>

View file

@ -1,7 +1,15 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__module lbry"> <div class="ecosystem__module lbry">
<span class="__close" data-action="close">&times;</span> <span class="__close" data-action="close">&times;</span>
@ -17,7 +25,7 @@ export default () => `
<span><a href="https://github.com/lbryio/types">lbryschema</a></span> <span><a href="https://github.com/lbryio/types">lbryschema</a></span>
</div> </div>
</h2> </h2>
<div class="ecosystem__module__details"> <div class="ecosystem__module__details">
${markdown("./documents/partials/overview/lbrysdk.md")} ${markdown("./documents/partials/overview/lbrysdk.md")}
</div> </div>

View file

@ -1,7 +1,15 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__module lbrycrd"> <div class="ecosystem__module lbrycrd">
<span class="__close" data-action="close">&times;</span> <span class="__close" data-action="close">&times;</span>

View file

@ -1,7 +1,15 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__submodule chainquery"> <div class="ecosystem__submodule chainquery">
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="chainquery">chainquery</h3> <h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="chainquery">chainquery</h3>
@ -10,7 +18,7 @@ export default () => `
<div class="ecosystem__submodule__markdown"> <div class="ecosystem__submodule__markdown">
${markdown("./documents/partials/overview/chainquery.md")} ${markdown("./documents/partials/overview/chainquery.md")}
</div> </div>
<ul class="__parents"> <ul class="__parents">
<li class="__parent green" data-action="open" data-target="applications">Applications</li> <li class="__parent green" data-action="open" data-target="applications">Applications</li>
<li class="__parent red" data-action="open" data-target="lbrycrd">Blockchain</li> <li class="__parent red" data-action="open" data-target="lbrycrd">Blockchain</li>

View file

@ -1,14 +1,22 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__submodule lighthouse"> <div class="ecosystem__submodule lighthouse">
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="lighthouse">lighthouse</h3> <h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="lighthouse">lighthouse</h3>
<div class="ecosystem__submodule__description"> <div class="ecosystem__submodule__description">
<div class="ecosystem__submodule__markdown"> <div class="ecosystem__submodule__markdown">
${markdown("./documents/partials/overview/lighthouse.md")}a ${markdown("./documents/partials/overview/lighthouse.md")}
</div> </div>
<ul class="__parents"> <ul class="__parents">

View file

@ -1,7 +1,15 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__submodule reflector"> <div class="ecosystem__submodule reflector">
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="reflector">reflector</h3> <h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="reflector">reflector</h3>

View file

@ -1,7 +1,15 @@
"use strict"; "use strict";
// U T I L
import markdown from "../markdown"; import markdown from "../markdown";
// E X P O R T
export default () => ` export default () => `
<div class="ecosystem__submodule wallet"> <div class="ecosystem__submodule wallet">
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="wallet">wallet server</h3> <h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="wallet">wallet server</h3>

View file

@ -7,13 +7,14 @@
const async = require("async"); const async = require("async");
const color = require("colorette"); const color = require("colorette");
const local = require("app-root-path").require; const local = require("app-root-path").require;
const octokit = require("@octokit/rest")(); const Octokit = require("@octokit/rest");
const redis = require("redis"); const redis = require("redis");
// U T I L S // U T I L S
const messageSlack = local("/app/helpers/slack"); const messageSlack = local("/app/helpers/slack");
const relativeDate = local("/app/modules/relative-date"); const relativeDate = local("/app/modules/relative-date");
let octokit;
String.prototype.escape = function() { String.prototype.escape = function() {
const tagsToReplace = { const tagsToReplace = {
@ -30,14 +31,8 @@ String.prototype.escape = function() {
let client; let client;
if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") { if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") {
// new octokit({ octokit = new Octokit({
// auth: `token ${process.env.GITHUB_OAUTH_TOKEN}` auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
// });
// https://github.com/octokit/rest.js/issues/1207
octokit.authenticate({
type: "oauth",
token: process.env.GITHUB_OAUTH_TOKEN
}); });
} else process.stdout.write(`${color.red("[missing]")} GitHub token`); } else process.stdout.write(`${color.red("[missing]")} GitHub token`);